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 /md-sha256.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 'md-sha256.c')
-rw-r--r-- | md-sha256.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/md-sha256.c b/md-sha256.c index 08848f841..82c526d33 100644 --- a/md-sha256.c +++ b/md-sha256.c | |||
@@ -17,8 +17,10 @@ | |||
17 | /* EVP wrapper for SHA256 */ | 17 | /* EVP wrapper for SHA256 */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | |||
21 | #ifndef HAVE_EVP_SHA256 | ||
22 | |||
20 | #include <openssl/evp.h> | 23 | #include <openssl/evp.h> |
21 | #include <sha2.h> | ||
22 | 24 | ||
23 | RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $"); | 25 | RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $"); |
24 | 26 | ||
@@ -69,3 +71,6 @@ evp_ssh_sha256(void) | |||
69 | 71 | ||
70 | return (&ssh_sha256); | 72 | return (&ssh_sha256); |
71 | } | 73 | } |
74 | |||
75 | #endif /* HAVE_EVP_SHA256 */ | ||
76 | |||