use libcrypt before libcrypto

Jun-ichiro itojun Hagino itojun at itojun.org
Tue Jun 25 11:58:58 EST 2002


	these days many unix-based systems contain crypt() with more than
	DES support (for instance, MD5 in freebsd/openbsd/netbsd, bcrypt in
	openbsd/netbsd).  we need to use crypt() in libcrypt, not in licrypto,
	as much as possible.

itojun

--- configure.ac.orig	Tue Jun 25 10:56:47 2002
+++ configure.ac	Tue Jun 25 10:57:25 2002
@@ -697,6 +702,9 @@
 	)
 fi
 
+# use libcrypt if there is
+AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
+
 # Search for OpenSSL
 saved_CPPFLAGS="$CPPFLAGS"
 saved_LDFLAGS="$LDFLAGS"
@@ -761,12 +769,6 @@
 	]
 )
 
-# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the 
-# version in OpenSSL. Skip this for PAM
-if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then
-	AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
-fi
-
 
 ### Configure cryptographic random number support
 



More information about the openssh-unix-dev mailing list