- (dtucker) [configure.ac md-sha256.c] NetBSD has sha2.h in

/usr/include/crypto.  Hint from djm@.
This commit is contained in:
Darren Tucker 2006-03-16 08:14:34 +11:00
parent d82cbcb9da
commit c495301bf8
3 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,7 @@
20060316
- (dtucker) [entropy.c] Add headers for WIFEXITED and friends.
- (dtucker) [configure.ac md-sha256.c] NetBSD has sha2.h in
/usr/include/crypto. Hint from djm@.
20060315
- (djm) OpenBSD CVS Sync:
@ -4176,4 +4178,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.4225 2006/03/15 20:21:35 dtucker Exp $
$Id: ChangeLog,v 1.4226 2006/03/15 21:14:34 dtucker Exp $

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.337 2006/03/15 11:28:17 dtucker Exp $
# $Id: configure.ac,v 1.338 2006/03/15 21:14:34 dtucker Exp $
#
# Copyright (c) 1999-2004 Damien Miller
#
@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
AC_REVISION($Revision: 1.337 $)
AC_REVISION($Revision: 1.338 $)
AC_CONFIG_SRCDIR([ssh.c])
AC_CONFIG_HEADER(config.h)
@ -669,6 +669,7 @@ dnl Checks for header files.
AC_CHECK_HEADERS( \
bstring.h \
crypt.h \
crypto/sha2.h \
dirent.h \
endian.h \
features.h \

View File

@ -22,8 +22,12 @@
#include <string.h>
#include <openssl/evp.h>
#if defined(HAVE_SHA2_H) && defined(HAVE_SHA256_UPDATE)
# include <sha2.h>
#ifdef HAVE_SHA256_UPDATE
# ifdef HAVE_SHA2_H
# include <sha2.h>
# elif defined(HAVE_CRYPTO_SHA2_H)
# include <crypto/sha2.h>
# endif
#endif
RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $");