summaryrefslogtreecommitdiff
path: root/md-sha256.c
diff options
context:
space:
mode:
authortim <tim>2006-03-16 04:17:05 +0000
committertim <tim>2006-03-16 04:17:05 +0000
commit6ad7e512d2a843af39508749f4713d83aaa5d19f (patch)
tree8b3bfb7d6e1614c02944a950d85017b0086601fa /md-sha256.c
parent276a97570f39f8fcc94ae59b4087fabfa5aad990 (diff)
downloadopenssh-6ad7e512d2a843af39508749f4713d83aaa5d19f.tar.gz
- (tim) [kex.c myproposal.h md-sha256.c openbsd-compat/sha2.c,h] Disable
sha256 when openssl < 0.9.7. Patch from djm@. Corrections/testing by me.
Diffstat (limited to 'md-sha256.c')
-rw-r--r--md-sha256.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/md-sha256.c b/md-sha256.c
index 0b1ed582..064228a4 100644
--- a/md-sha256.c
+++ b/md-sha256.c
@@ -17,8 +17,9 @@
/* EVP wrapper for SHA256 */
#include "includes.h"
+#include <openssl/opensslv.h>
-#ifndef HAVE_EVP_SHA256
+#if !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L)
#include <string.h>
#include <openssl/evp.h>
@@ -80,5 +81,5 @@ evp_ssh_sha256(void)
return (&ssh_sha256);
}
-#endif /* HAVE_EVP_SHA256 */
+#endif /* !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L) */