Define OPENSSL_NO_SHA including OpenSSL from test.

We don't use SHA256 from OpenSSL in the sk-dummy module and the
definitions can conflict with system sha2.h (eg on NetBSD) so define
OPENSSL_NO_SHA so we don't attempt to redefine them.
This commit is contained in:
Darren Tucker 2021-10-06 17:09:31 +11:00
parent 8f4be526a3
commit 639c440f6c
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@
#endif #endif
#ifdef WITH_OPENSSL #ifdef WITH_OPENSSL
/* We don't use sha2 from OpenSSL and they can conflict with system sha2.h */
#define OPENSSL_NO_SHA
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/evp.h> #include <openssl/evp.h>