mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Merge remote-tracking branch 'upstream-restricted/pr/399' into development-restricted
This commit is contained in:
		
						commit
						7ca6d1fdd4
					
				@ -21,6 +21,8 @@ Security
 | 
				
			|||||||
   * Tighten should-be-constant-time memcmp against compiler optimizations.
 | 
					   * Tighten should-be-constant-time memcmp against compiler optimizations.
 | 
				
			||||||
   * Ensure that buffers are cleared after use if they contain sensitive data.
 | 
					   * Ensure that buffers are cleared after use if they contain sensitive data.
 | 
				
			||||||
     Changes were introduced in multiple places in the library.
 | 
					     Changes were introduced in multiple places in the library.
 | 
				
			||||||
 | 
					   * Set PEM buffer to zero before freeing it, to avoid decoded private keys
 | 
				
			||||||
 | 
					     being leaked to memory after release.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Features
 | 
					Features
 | 
				
			||||||
   * Allow comments in test data files.
 | 
					   * Allow comments in test data files.
 | 
				
			||||||
 | 
				
			|||||||
@ -391,6 +391,8 @@ int mbedtls_pem_read_buffer( mbedtls_pem_context *ctx, const char *header, const
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void mbedtls_pem_free( mbedtls_pem_context *ctx )
 | 
					void mbedtls_pem_free( mbedtls_pem_context *ctx )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    if( ctx->buf != NULL )
 | 
				
			||||||
 | 
					        mbedtls_zeroize( ctx->buf, ctx->buflen );
 | 
				
			||||||
    mbedtls_free( ctx->buf );
 | 
					    mbedtls_free( ctx->buf );
 | 
				
			||||||
    mbedtls_free( ctx->info );
 | 
					    mbedtls_free( ctx->info );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user