summaryrefslogtreecommitdiffstats
path: root/md-sha256.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-03-15 22:14:34 +0100
committerDarren Tucker <dtucker@zip.com.au>2006-03-15 22:14:34 +0100
commitc495301bf8cd3a05512e702af212631abab52b88 (patch)
tree0ed4cbf68850523a00a13420e8507f1d900469dd /md-sha256.c
parent - (dtucker) [entropy.c] Add headers for WIFEXITED and friends. (diff)
downloadopenssh-c495301bf8cd3a05512e702af212631abab52b88.tar.xz
openssh-c495301bf8cd3a05512e702af212631abab52b88.zip
- (dtucker) [configure.ac md-sha256.c] NetBSD has sha2.h in
/usr/include/crypto. Hint from djm@.
Diffstat (limited to 'md-sha256.c')
-rw-r--r--md-sha256.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/md-sha256.c b/md-sha256.c
index ff7f38157..0b1ed5828 100644
--- a/md-sha256.c
+++ b/md-sha256.c
@@ -22,8 +22,12 @@
#include <string.h>
#include <openssl/evp.h>
-#if defined(HAVE_SHA2_H) && defined(HAVE_SHA256_UPDATE)
-# include <sha2.h>
+#ifdef HAVE_SHA256_UPDATE
+# ifdef HAVE_SHA2_H
+# include <sha2.h>
+# elif defined(HAVE_CRYPTO_SHA2_H)
+# include <crypto/sha2.h>
+# endif
#endif
RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $");