mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Disable MD5 in handshake signatures by default
This commit is contained in:
		
							parent
							
								
									1630888aa0
								
							
						
					
					
						commit
						47229c7cbb
					
				@ -1,5 +1,10 @@
 | 
			
		||||
mbed TLS ChangeLog (Sorted per branch, date)
 | 
			
		||||
 | 
			
		||||
= mbed TLS 2.2.1 released 2015-12-xx
 | 
			
		||||
 | 
			
		||||
Security
 | 
			
		||||
   * Disable MD5 for handshake signatures by default.
 | 
			
		||||
 | 
			
		||||
= mbed TLS 2.2.0 released 2015-11-04
 | 
			
		||||
 | 
			
		||||
Security
 | 
			
		||||
 | 
			
		||||
@ -1610,7 +1610,7 @@ void mbedtls_ssl_conf_curves( mbedtls_ssl_config *conf,
 | 
			
		||||
#if defined(MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED)
 | 
			
		||||
/**
 | 
			
		||||
 * \brief          Set the allowed hashes for signatures during the handshake.
 | 
			
		||||
 *                 (Default: all available hashes.)
 | 
			
		||||
 *                 (Default: all available hashes except MD5.)
 | 
			
		||||
 *
 | 
			
		||||
 * \note           This only affects which hashes are offered and can be used
 | 
			
		||||
 *                 for signatures during the handshake. Hashes for message
 | 
			
		||||
 | 
			
		||||
@ -7071,6 +7071,21 @@ void mbedtls_ssl_config_init( mbedtls_ssl_config *conf )
 | 
			
		||||
    memset( conf, 0, sizeof( mbedtls_ssl_config ) );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int ssl_preset_default_hashes[] = {
 | 
			
		||||
#if defined(MBEDTLS_SHA512_C)
 | 
			
		||||
    MBEDTLS_MD_SHA512,
 | 
			
		||||
    MBEDTLS_MD_SHA384,
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(MBEDTLS_SHA256_C)
 | 
			
		||||
    MBEDTLS_MD_SHA256,
 | 
			
		||||
    MBEDTLS_MD_SHA224,
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(MBEDTLS_SHA1_C)
 | 
			
		||||
    MBEDTLS_MD_SHA1,
 | 
			
		||||
#endif
 | 
			
		||||
    MBEDTLS_MD_NONE
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static int ssl_preset_suiteb_ciphersuites[] = {
 | 
			
		||||
    MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
 | 
			
		||||
    MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
 | 
			
		||||
@ -7227,7 +7242,7 @@ int mbedtls_ssl_config_defaults( mbedtls_ssl_config *conf,
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_KEY_EXCHANGE__WITH_CERT__ENABLED)
 | 
			
		||||
            conf->sig_hashes = mbedtls_md_list();
 | 
			
		||||
            conf->sig_hashes = ssl_preset_default_hashes;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_ECP_C)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user