diff options
Diffstat (limited to 'openbsd-compat/sha2.c')
-rw-r--r-- | openbsd-compat/sha2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c index 36ab60e62..cf8e0ad66 100644 --- a/openbsd-compat/sha2.c +++ b/openbsd-compat/sha2.c | |||
@@ -38,7 +38,10 @@ | |||
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | 40 | ||
41 | #if !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256) | 41 | #include <openssl/opensslv.h> |
42 | |||
43 | #if !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \ | ||
44 | (OPENSSL_VERSION_NUMBER >= 0x00907000L) | ||
42 | #include <sys/types.h> | 45 | #include <sys/types.h> |
43 | #include <string.h> | 46 | #include <string.h> |
44 | #include "sha2.h" | 47 | #include "sha2.h" |
@@ -875,4 +878,5 @@ SHA384_Final(u_int8_t digest[SHA384_DIGEST_LENGTH], SHA384_CTX *context) | |||
875 | } | 878 | } |
876 | #endif | 879 | #endif |
877 | 880 | ||
878 | #endif /* !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256) */ | 881 | #endif /* !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \ |
882 | (OPENSSL_VERSION_NUMBER >= 0x00907000L) */ | ||