removing deprecated TRUNCATED_HMAC_SIZE
This commit is contained in:
parent
5efbf98f31
commit
ffd58e27ef
@ -1169,8 +1169,6 @@ CYASSL_LOCAL int TLSX_UseMaxFragment(TLSX** extensions, byte mfl);
|
|||||||
|
|
||||||
#ifdef HAVE_TRUNCATED_HMAC
|
#ifdef HAVE_TRUNCATED_HMAC
|
||||||
|
|
||||||
#define TRUNCATED_HMAC_SIZE 10
|
|
||||||
|
|
||||||
CYASSL_LOCAL int TLSX_UseTruncatedHMAC(TLSX** extensions);
|
CYASSL_LOCAL int TLSX_UseTruncatedHMAC(TLSX** extensions);
|
||||||
|
|
||||||
#endif /* HAVE_TRUNCATED_HMAC */
|
#endif /* HAVE_TRUNCATED_HMAC */
|
||||||
|
@ -4330,7 +4330,7 @@ static INLINE int Decrypt(CYASSL* ssl, byte* plain, const byte* input,
|
|||||||
static int SanityCheckCipherText(CYASSL* ssl, word32 encryptSz)
|
static int SanityCheckCipherText(CYASSL* ssl, word32 encryptSz)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_TRUNCATED_HMAC
|
#ifdef HAVE_TRUNCATED_HMAC
|
||||||
word32 minLength = ssl->truncated_hmac ? TRUNCATED_HMAC_SIZE
|
word32 minLength = ssl->truncated_hmac ? TRUNCATED_HMAC_SZ
|
||||||
: ssl->specs.hash_size;
|
: ssl->specs.hash_size;
|
||||||
#else
|
#else
|
||||||
word32 minLength = ssl->specs.hash_size; /* covers stream */
|
word32 minLength = ssl->specs.hash_size; /* covers stream */
|
||||||
|
Loading…
Reference in New Issue
Block a user