summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-10-06 17:09:31 +1100
committerDarren Tucker <dtucker@dtucker.net>2021-10-06 17:09:31 +1100
commit639c440f6c3c2a8216a5eb9455ef13bf4204089c (patch)
tree26a8d1c4f6f0a32cdf4806c27fadb9172c118b1d /regress
parent8f4be526a338d06624f146fa26007bb9dd3a4f7b (diff)
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.
Diffstat (limited to 'regress')
-rw-r--r--regress/misc/sk-dummy/sk-dummy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/misc/sk-dummy/sk-dummy.c b/regress/misc/sk-dummy/sk-dummy.c
index 928d556b..579d6098 100644
--- a/regress/misc/sk-dummy/sk-dummy.c
+++ b/regress/misc/sk-dummy/sk-dummy.c
@@ -36,6 +36,8 @@
#endif
#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/crypto.h>
#include <openssl/evp.h>