]> andersk Git - openssh.git/blobdiff - openbsd-compat/sha2.c
- (djm) [openbsd-compat/bsd-snprintf.c] Fix integer overflow in return
[openssh.git] / openbsd-compat / sha2.c
index 36ab60e62697163aba3a0591489266f73f3832f7..cf8e0ad667ba68b59b9db3c34f1d11afdab55237 100755 (executable)
 
 #include "includes.h"
 
-#if !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256)
+#include <openssl/opensslv.h>
+
+#if !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \
+    (OPENSSL_VERSION_NUMBER >= 0x00907000L)
 #include <sys/types.h>
 #include <string.h>
 #include "sha2.h"
@@ -875,4 +878,5 @@ SHA384_Final(u_int8_t digest[SHA384_DIGEST_LENGTH], SHA384_CTX *context)
 }
 #endif
 
-#endif /* !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256) */
+#endif /* !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \
+    (OPENSSL_VERSION_NUMBER >= 0x00907000L) */
This page took 0.116234 seconds and 4 git commands to generate.