mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 19:20:40 -04:00 
			
		
		
		
	Wrong identifier used to check Encrypt-then-MAC flag
This commit fixes a comparison of ssl_session->encrypt_then_mac against the ETM-unrelated constant MBEDTLS_SSL_EXTENDED_MS_DISABLED. Instead, MBEDTLS_SSL_ETM_DISABLED should be used. The typo is has no functional effect since both constants have the same value 0.
This commit is contained in:
		
							parent
							
								
									005939db98
								
							
						
					
					
						commit
						27b34d5bad
					
				| @ -2042,7 +2042,7 @@ static void ssl_write_encrypt_then_mac_ext( mbedtls_ssl_context *ssl, | |||||||
|     const mbedtls_ssl_ciphersuite_t *suite = NULL; |     const mbedtls_ssl_ciphersuite_t *suite = NULL; | ||||||
|     const mbedtls_cipher_info_t *cipher = NULL; |     const mbedtls_cipher_info_t *cipher = NULL; | ||||||
| 
 | 
 | ||||||
|     if( ssl->session_negotiate->encrypt_then_mac == MBEDTLS_SSL_EXTENDED_MS_DISABLED || |     if( ssl->session_negotiate->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED || | ||||||
|         ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 ) |         ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 ) | ||||||
|     { |     { | ||||||
|         *olen = 0; |         *olen = 0; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hanno Becker
						Hanno Becker