summaryrefslogtreecommitdiffstats
path: root/md-sha256.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-15 03:12:41 +0100
committerDamien Miller <djm@mindrot.org>2006-03-15 03:12:41 +0100
commit41e364bcfa11d5a72c242d0b27ead364b0ebaa5d (patch)
treebfcb3a08819bdd4acb3419b68a136c4f5b8084c7 /md-sha256.c
parent - (djm) [Makefile.in openbsd-compat/Makefile.in] Add added files (diff)
downloadopenssh-41e364bcfa11d5a72c242d0b27ead364b0ebaa5d.tar.xz
openssh-41e364bcfa11d5a72c242d0b27ead364b0ebaa5d.zip
- (djm) [md-sha256.c configure.ac] md-sha256.c needs sha2.h if present
Diffstat (limited to '')
-rw-r--r--md-sha256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/md-sha256.c b/md-sha256.c
index 82c526d33..ff7f38157 100644
--- a/md-sha256.c
+++ b/md-sha256.c
@@ -20,7 +20,11 @@
#ifndef HAVE_EVP_SHA256
+#include <string.h>
#include <openssl/evp.h>
+#if defined(HAVE_SHA2_H) && defined(HAVE_SHA256_UPDATE)
+# include <sha2.h>
+#endif
RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $");