[mod_secdownload] fix compile w/ NSS on FreeBSD

(thx dirk)

nss/alghmac.h might not exist
This commit is contained in:
Glenn Strauss 2020-10-26 22:24:24 -04:00
parent 988fa8ecfa
commit 1f1b3bcc55
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#elif defined(USE_WOLFSSL_CRYPTO)
#include <wolfssl/wolfcrypt/hmac.h>
#elif defined(USE_NSS_CRYPTO)
#if 0 /*(nss/alghmac.h might not be present)*/
#ifdef NSS_VER_INCLUDE
#include <nss3/alghmac.h>
#else
@ -32,6 +33,7 @@
#endif
#endif
#endif
#endif
#if defined(USE_OPENSSL_CRYPTO) && OPENSSL_VERSION_NUMBER >= 0x30000000L
#define HMAC EVP_HMAC