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 /kex.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 'kex.c')
-rw-r--r-- | kex.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -44,11 +44,13 @@ RCSID("$OpenBSD: kex.c,v 1.66 2006/03/07 09:07:40 djm Exp $"); | |||
44 | 44 | ||
45 | #define KEX_COOKIE_LEN 16 | 45 | #define KEX_COOKIE_LEN 16 |
46 | 46 | ||
47 | #ifdef HAVE_EVP_SHA256 | 47 | #if OPENSSL_VERSION_NUMBER < 0x00907000L |
48 | # define evp_ssh_sha256() NULL | ||
49 | #elif defined(HAVE_EVP_SHA256) | ||
48 | # define evp_ssh_sha256 EVP_sha256 | 50 | # define evp_ssh_sha256 EVP_sha256 |
49 | #else /* HAVE_EVP_SHA256 */ | 51 | #else |
50 | extern const EVP_MD *evp_ssh_sha256(void); | 52 | extern const EVP_MD *evp_ssh_sha256(void); |
51 | #endif /* HAVE_EVP_SHA256 */ | 53 | #endif |
52 | 54 | ||
53 | /* prototype */ | 55 | /* prototype */ |
54 | static void kex_kexinit_finish(Kex *); | 56 | static void kex_kexinit_finish(Kex *); |