diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-15 03:12:41 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-15 03:12:41 +0100 |
commit | 41e364bcfa11d5a72c242d0b27ead364b0ebaa5d (patch) | |
tree | bfcb3a08819bdd4acb3419b68a136c4f5b8084c7 /md-sha256.c | |
parent | - (djm) [Makefile.in openbsd-compat/Makefile.in] Add added files (diff) | |
download | openssh-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.c | 4 |
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 $"); |