summaryrefslogtreecommitdiff
path: root/md-sha256.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-15 13:12:41 +1100
committerDamien Miller <djm@mindrot.org>2006-03-15 13:12:41 +1100
commit41e364bcfa11d5a72c242d0b27ead364b0ebaa5d (patch)
treebfcb3a08819bdd4acb3419b68a136c4f5b8084c7 /md-sha256.c
parent471e9b3ca6500cff8f97f0a472719b01fa3eeb09 (diff)
- (djm) [md-sha256.c configure.ac] md-sha256.c needs sha2.h if present
Diffstat (limited to 'md-sha256.c')
-rw-r--r--md-sha256.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/md-sha256.c b/md-sha256.c
index 82c526d3..ff7f3815 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 $");