diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-15 13:02:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-15 13:02:28 +1100 |
commit | af87af165f25b7db22e32c0b2e55606bc68c450c (patch) | |
tree | c0c8557324164e41b9b09b9db942b7193be69c02 /kex.c | |
parent | a63128d1a8a4077bc992e09d00e2683d1592e500 (diff) |
- (djm) [configure.ac defines.h kex.c md-sha256.c]
[openbsd-compat/sha2.h openbsd-compat/openbsd-compat.h]
[openbsd-compat/sha2.c] First stab at portability glue for SHA256
KEX support, should work with libc SHA256 support or OpenSSL
EVP_sha256 if present
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,7 +44,11 @@ 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 | ||
48 | # define evp_ssh_sha256 EVP_sha256 | ||
49 | #else /* HAVE_EVP_SHA256 */ | ||
47 | extern const EVP_MD *evp_ssh_sha256(void); | 50 | extern const EVP_MD *evp_ssh_sha256(void); |
51 | #endif /* HAVE_EVP_SHA256 */ | ||
48 | 52 | ||
49 | /* prototype */ | 53 | /* prototype */ |
50 | static void kex_kexinit_finish(Kex *); | 54 | static void kex_kexinit_finish(Kex *); |