Re: configure and have crypt or DES_crypt

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Tue, 3 Mar 2015, Roumen Petrov wrote:

> Hello,
> 
> With current portable master source tree HAVE_CRYPT and HAVE_DES_CRYPT are not
> defined.
> It seems to me this is regression introduced with implementation of configure
> options --with-openssl.
...
> Proposed patch restore previous behavior.

I think that might break some systems that configure --without-openssl,
so it probably better to move the test out of the if-else entirely.

diff --git a/configure.ac b/configure.ac
index 2ef9db6..9a22539 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2710,9 +2710,10 @@ if test "x$openssl" = "xyes" ; then
 	AC_SUBST([COMMENT_OUT_ECC])
 else
 	AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
-	AC_CHECK_FUNCS([crypt DES_crypt])
 fi
 
+AC_CHECK_FUNCS([crypt DES_crypt])
+
 AC_CHECK_FUNCS([ \
 	arc4random \
 	arc4random_buf \

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux