Remove tests of #define's that don't exist

This commit is contained in:
Gilles Peskine 2018-06-04 12:01:18 +02:00
parent 1bd9d58b21
commit a7fe25d5a5

View File

@ -2021,9 +2021,9 @@ static int ssl_decrypt_buf( mbedtls_ssl_context *ssl )
break; break;
#endif #endif
#if defined(MBEDTLS_MD4_C) || defined(MBEDTLS_MD5_C) || \ #if defined(MBEDTLS_MD4_C) || defined(MBEDTLS_MD5_C) || \
defined(MBEDTLS_SHA1_C) || defined(MBEDTLS_SHA224_C) || \
defined(MBEDTLS_SHA256_C) || defined(MBEDTLS_RIPEMD160_C)
case MBEDTLS_MD_MD4: case MBEDTLS_MD_MD4:
defined(MBEDTLS_SHA1_C) || defined(MBEDTLS_SHA256_C) \
defined(MBEDTLS_RIPEMD160_C)
case MBEDTLS_MD_MD5: case MBEDTLS_MD_MD5:
case MBEDTLS_MD_SHA1: case MBEDTLS_MD_SHA1:
case MBEDTLS_MD_SHA224: case MBEDTLS_MD_SHA224:
@ -2034,7 +2034,7 @@ static int ssl_decrypt_buf( mbedtls_ssl_context *ssl )
( 13 + ssl->in_msglen + 8 ) / 64; ( 13 + ssl->in_msglen + 8 ) / 64;
break; break;
#endif #endif
#if defined(MBEDTLS_SHA384_C) || defined(MBEDTLS_SHA512_C) #if defined(MBEDTLS_SHA512_C)
case MBEDTLS_MD_SHA384: case MBEDTLS_MD_SHA384:
case MBEDTLS_MD_SHA512: case MBEDTLS_MD_SHA512:
/* 16 bytes of message size, 128-byte compression blocks */ /* 16 bytes of message size, 128-byte compression blocks */