Skip to content

Commit

Permalink
Make openssl/cmac.h included for version < 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wumiaont committed Mar 20, 2024
1 parent 563acd4 commit 8691926
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crypto/crypto_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
#include <openssl/dh.h>
#include <openssl/hmac.h>
#include <openssl/rand.h>
#ifdef CONFIG_OPENSSL_CMAC
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
#else /* OpenSSL version >= 3.0 */
#include <openssl/cmac.h>
#endif /* CONFIG_OPENSSL_CMAC */
#endif /* OpenSSL version >= 3.0 */
#ifdef CONFIG_ECC
#include <openssl/ec.h>
#include <openssl/x509.h>
Expand Down

0 comments on commit 8691926

Please sign in to comment.