summaryrefslogtreecommitdiff
path: root/md-sha256.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-15 02:02:28 +0000
committerdjm <djm>2006-03-15 02:02:28 +0000
commitf6607471f48483c732b36816abda1794250a643a (patch)
treeff7a9cc2b2020b22ea943fdcf988d6c8ee7d7582 /md-sha256.c
parent36da4b3feb159bafcd05d6c4c583eada8e1d55c4 (diff)
downloadopenssh-f6607471f48483c732b36816abda1794250a643a.tar.gz
- (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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/md-sha256.c b/md-sha256.c
index 08848f84..82c526d3 100644
--- a/md-sha256.c
+++ b/md-sha256.c
@@ -17,8 +17,10 @@
/* EVP wrapper for SHA256 */
#include "includes.h"
+
+#ifndef HAVE_EVP_SHA256
+
#include <openssl/evp.h>
-#include <sha2.h>
RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $");
@@ -69,3 +71,6 @@ evp_ssh_sha256(void)
return (&ssh_sha256);
}
+
+#endif /* HAVE_EVP_SHA256 */
+