commit | 41e364bcfa11d5a72c242d0b27ead364b0ebaa5d | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Wed Mar 15 13:12:41 2006 +1100 |
committer | Damien Miller <djm@mindrot.org> | Wed Mar 15 13:12:41 2006 +1100 |
tree | bfcb3a08819bdd4acb3419b68a136c4f5b8084c7 | |
parent | 471e9b3ca6500cff8f97f0a472719b01fa3eeb09 [diff] [blame] |
- (djm) [md-sha256.c configure.ac] md-sha256.c needs sha2.h if present
diff --git a/md-sha256.c b/md-sha256.c index 82c526d..ff7f381 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 $");