Skip to content

Commit 7ae7d9f

Browse files
committed
Fix from review
1 parent 97bf5fb commit 7ae7d9f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/api/test_hmac.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,8 @@ int test_wc_Sha384HmacFinal(void)
697697
int test_tls_hmac_size_overflow(void)
698698
{
699699
EXPECT_DECLS;
700-
#if !defined(NO_HMAC) && !defined(WOLFSSL_AEAD_ONLY) && !defined(NO_TLS)
700+
#if !defined(NO_HMAC) && !defined(WOLFSSL_AEAD_ONLY) && !defined(NO_TLS) && \
701+
defined(NO_OLD_TLS)
701702
WOLFSSL_CTX* ctx = NULL;
702703
WOLFSSL* ssl = NULL;
703704
byte digest[WC_MAX_DIGEST_SIZE];
@@ -748,7 +749,7 @@ int test_tls_hmac_size_overflow(void)
748749

749750
wolfSSL_free(ssl);
750751
wolfSSL_CTX_free(ctx);
751-
#endif /* !NO_HMAC && !WOLFSSL_AEAD_ONLY && !NO_TLS */
752+
#endif /* !NO_HMAC && !WOLFSSL_AEAD_ONLY && !NO_TLS && NO_OLD_TLS */
752753
return EXPECT_RESULT();
753754
} /* END test_tls_hmac_size_overflow */
754755

0 commit comments

Comments
 (0)