diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | md-sha256.c | 8 |
3 files changed, 12 insertions, 5 deletions
@@ -1,5 +1,7 @@ | |||
1 | 20060316 | 1 | 20060316 |
2 | - (dtucker) [entropy.c] Add headers for WIFEXITED and friends. | 2 | - (dtucker) [entropy.c] Add headers for WIFEXITED and friends. |
3 | - (dtucker) [configure.ac md-sha256.c] NetBSD has sha2.h in | ||
4 | /usr/include/crypto. Hint from djm@. | ||
3 | 5 | ||
4 | 20060315 | 6 | 20060315 |
5 | - (djm) OpenBSD CVS Sync: | 7 | - (djm) OpenBSD CVS Sync: |
@@ -4176,4 +4178,4 @@ | |||
4176 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 4178 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
4177 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 4179 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
4178 | 4180 | ||
4179 | $Id: ChangeLog,v 1.4225 2006/03/15 20:21:35 dtucker Exp $ | 4181 | $Id: ChangeLog,v 1.4226 2006/03/15 21:14:34 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index f8faa2660..9e037ab0e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.337 2006/03/15 11:28:17 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.338 2006/03/15 21:14:34 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.337 $) | 18 | AC_REVISION($Revision: 1.338 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -669,6 +669,7 @@ dnl Checks for header files. | |||
669 | AC_CHECK_HEADERS( \ | 669 | AC_CHECK_HEADERS( \ |
670 | bstring.h \ | 670 | bstring.h \ |
671 | crypt.h \ | 671 | crypt.h \ |
672 | crypto/sha2.h \ | ||
672 | dirent.h \ | 673 | dirent.h \ |
673 | endian.h \ | 674 | endian.h \ |
674 | features.h \ | 675 | features.h \ |
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 $"); |