diff options
author | Tim Rice <tim@multitalents.net> | 2006-03-15 20:17:05 -0800 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2006-03-15 20:17:05 -0800 |
commit | 425a6886f99235e61faf8ea67c8f573f188eb2b2 (patch) | |
tree | 5351bc87a8e9cdc499b20b698cdbc8beb8d4ba59 /md-sha256.c | |
parent | c495301bf8cd3a05512e702af212631abab52b88 (diff) |
- (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/md-sha256.c b/md-sha256.c index 0b1ed5828..064228a4a 100644 --- a/md-sha256.c +++ b/md-sha256.c | |||
@@ -17,8 +17,9 @@ | |||
17 | /* EVP wrapper for SHA256 */ | 17 | /* EVP wrapper for SHA256 */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | #include <openssl/opensslv.h> | ||
20 | 21 | ||
21 | #ifndef HAVE_EVP_SHA256 | 22 | #if !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L) |
22 | 23 | ||
23 | #include <string.h> | 24 | #include <string.h> |
24 | #include <openssl/evp.h> | 25 | #include <openssl/evp.h> |
@@ -80,5 +81,5 @@ evp_ssh_sha256(void) | |||
80 | return (&ssh_sha256); | 81 | return (&ssh_sha256); |
81 | } | 82 | } |
82 | 83 | ||
83 | #endif /* HAVE_EVP_SHA256 */ | 84 | #endif /* !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L) */ |
84 | 85 | ||