From ffd58e27ef4d4ed1e6b16ecfeeff7a94f47e4bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Guimar=C3=A3es?= Date: Thu, 12 Dec 2013 21:05:31 -0300 Subject: [PATCH] removing deprecated TRUNCATED_HMAC_SIZE --- cyassl/internal.h | 2 -- src/internal.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cyassl/internal.h b/cyassl/internal.h index 5c69e622a..d961fcd09 100644 --- a/cyassl/internal.h +++ b/cyassl/internal.h @@ -1169,8 +1169,6 @@ CYASSL_LOCAL int TLSX_UseMaxFragment(TLSX** extensions, byte mfl); #ifdef HAVE_TRUNCATED_HMAC -#define TRUNCATED_HMAC_SIZE 10 - CYASSL_LOCAL int TLSX_UseTruncatedHMAC(TLSX** extensions); #endif /* HAVE_TRUNCATED_HMAC */ diff --git a/src/internal.c b/src/internal.c index 0fb680359..4c24d67e8 100644 --- a/src/internal.c +++ b/src/internal.c @@ -4330,7 +4330,7 @@ static INLINE int Decrypt(CYASSL* ssl, byte* plain, const byte* input, static int SanityCheckCipherText(CYASSL* ssl, word32 encryptSz) { #ifdef HAVE_TRUNCATED_HMAC - word32 minLength = ssl->truncated_hmac ? TRUNCATED_HMAC_SIZE + word32 minLength = ssl->truncated_hmac ? TRUNCATED_HMAC_SZ : ssl->specs.hash_size; #else word32 minLength = ssl->specs.hash_size; /* covers stream */