diff options
Diffstat (limited to 'md-sha256.c')
-rw-r--r-- | md-sha256.c | 8 |
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 @@ | |||
22 | 22 | ||
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include <openssl/evp.h> | 24 | #include <openssl/evp.h> |
25 | #if defined(HAVE_SHA2_H) && defined(HAVE_SHA256_UPDATE) | 25 | #ifdef HAVE_SHA256_UPDATE |
26 | # include <sha2.h> | 26 | # ifdef HAVE_SHA2_H |
27 | # include <sha2.h> | ||
28 | # elif defined(HAVE_CRYPTO_SHA2_H) | ||
29 | # include <crypto/sha2.h> | ||
30 | # endif | ||
27 | #endif | 31 | #endif |
28 | 32 | ||
29 | RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $"); | 33 | RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $"); |