mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Drop support for SSLeay.
This commit is contained in:
parent
001e565577
commit
ca81b49f82
100
configure
vendored
100
configure
vendored
@ -2386,7 +2386,7 @@ if test "${with_tls+set}" = set; then
|
|||||||
withval="$with_tls"
|
withval="$with_tls"
|
||||||
|
|
||||||
ol_arg=invalid
|
ol_arg=invalid
|
||||||
for ol_val in auto ssleay openssl yes no ; do
|
for ol_val in auto openssl yes no ; do
|
||||||
if test "$withval" = "$ol_val" ; then
|
if test "$withval" = "$ol_val" ; then
|
||||||
ol_arg="$ol_val"
|
ol_arg="$ol_val"
|
||||||
fi
|
fi
|
||||||
@ -19164,8 +19164,7 @@ fi
|
|||||||
ol_link_tls=no
|
ol_link_tls=no
|
||||||
if test $ol_with_tls != no ; then
|
if test $ol_with_tls != no ; then
|
||||||
|
|
||||||
|
for ac_header in openssl/ssl.h
|
||||||
for ac_header in openssl/ssl.h ssl.h
|
|
||||||
do
|
do
|
||||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
||||||
@ -19315,82 +19314,8 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if test $ac_cv_header_openssl_ssl_h = yes ||
|
if test $ac_cv_header_openssl_ssl_h = yes ; then
|
||||||
test $ac_cv_header_ssl_h = yes ; then
|
echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
|
||||||
echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
|
|
||||||
echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
|
|
||||||
if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
|
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
||||||
else
|
|
||||||
ac_check_lib_save_LIBS=$LIBS
|
|
||||||
LIBS="-lssl -lcrypto $LIBS"
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
|
||||||
/* confdefs.h. */
|
|
||||||
_ACEOF
|
|
||||||
cat confdefs.h >>conftest.$ac_ext
|
|
||||||
cat >>conftest.$ac_ext <<_ACEOF
|
|
||||||
/* end confdefs.h. */
|
|
||||||
|
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C"
|
|
||||||
#endif
|
|
||||||
/* We use char because int might match the return type of a gcc2
|
|
||||||
builtin and then its argument prototype would still apply. */
|
|
||||||
char SSLeay_add_ssl_algorithms ();
|
|
||||||
int
|
|
||||||
main ()
|
|
||||||
{
|
|
||||||
SSLeay_add_ssl_algorithms ();
|
|
||||||
;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
_ACEOF
|
|
||||||
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
||||||
(eval $ac_link) 2>conftest.er1
|
|
||||||
ac_status=$?
|
|
||||||
grep -v '^ *+' conftest.er1 >conftest.err
|
|
||||||
rm -f conftest.er1
|
|
||||||
cat conftest.err >&5
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); } &&
|
|
||||||
{ ac_try='test -z "$ac_c_werror_flag"
|
|
||||||
|| test ! -s conftest.err'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; } &&
|
|
||||||
{ ac_try='test -s conftest$ac_exeext'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
|
|
||||||
else
|
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
sed 's/^/| /' conftest.$ac_ext >&5
|
|
||||||
|
|
||||||
ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
|
|
||||||
fi
|
|
||||||
rm -f conftest.err conftest.$ac_objext \
|
|
||||||
conftest$ac_exeext conftest.$ac_ext
|
|
||||||
LIBS=$ac_check_lib_save_LIBS
|
|
||||||
fi
|
|
||||||
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
|
|
||||||
echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
|
|
||||||
if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
|
|
||||||
have_ssleay=yes
|
|
||||||
need_rsaref=no
|
|
||||||
else
|
|
||||||
have_ssleay=no
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if test $have_ssleay = no ; then
|
|
||||||
echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
|
|
||||||
echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
|
echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
|
||||||
if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
|
if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
|
||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
@ -19455,15 +19380,14 @@ fi
|
|||||||
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
|
||||||
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
|
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
|
||||||
if test $ac_cv_lib_ssl_SSL_library_init = yes; then
|
if test $ac_cv_lib_ssl_SSL_library_init = yes; then
|
||||||
have_ssleay=yes
|
have_openssl=yes
|
||||||
need_rsaref=no
|
need_rsaref=no
|
||||||
else
|
else
|
||||||
have_ssleay=no
|
have_openssl=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $have_ssleay = no ; then
|
if test $have_openssl = no ; then
|
||||||
echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
|
echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
|
||||||
echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
|
echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
|
||||||
if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
|
if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
|
||||||
@ -19529,21 +19453,21 @@ fi
|
|||||||
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
|
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
|
||||||
echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
|
echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
|
||||||
if test $ac_cv_lib_ssl_ssl3_accept = yes; then
|
if test $ac_cv_lib_ssl_ssl3_accept = yes; then
|
||||||
have_ssleay=yes
|
have_openssl=yes
|
||||||
need_rsaref=yes
|
need_rsaref=yes
|
||||||
else
|
else
|
||||||
have_ssleay=no
|
have_openssl=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $have_ssleay = yes ; then
|
if test $have_openssl = yes ; then
|
||||||
ol_with_tls=found
|
ol_with_tls=found
|
||||||
ol_link_tls=yes
|
ol_link_tls=yes
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define HAVE_SSLEAY 1
|
#define HAVE_OPENSSL 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
37
configure.in
37
configure.in
@ -245,7 +245,7 @@ ol_with_kerberos=${ol_with_kerberos-auto}
|
|||||||
OL_ARG_WITH(threads,[ --with-threads with threads],
|
OL_ARG_WITH(threads,[ --with-threads with threads],
|
||||||
auto, [auto nt posix mach pth lwp yes no manual] )
|
auto, [auto nt posix mach pth lwp yes no manual] )
|
||||||
OL_ARG_WITH(tls,[ --with-tls with TLS/SSL support],
|
OL_ARG_WITH(tls,[ --with-tls with TLS/SSL support],
|
||||||
auto, [auto ssleay openssl yes no] )
|
auto, [auto openssl yes no] )
|
||||||
OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
|
OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
|
||||||
auto, [auto yes no manual] )
|
auto, [auto yes no manual] )
|
||||||
OL_ARG_WITH(multiple_precision,[ --with-multiple-precision
|
OL_ARG_WITH(multiple_precision,[ --with-multiple-precision
|
||||||
@ -1312,40 +1312,31 @@ dnl TLS/SSL
|
|||||||
|
|
||||||
ol_link_tls=no
|
ol_link_tls=no
|
||||||
if test $ol_with_tls != no ; then
|
if test $ol_with_tls != no ; then
|
||||||
AC_CHECK_HEADERS(openssl/ssl.h ssl.h)
|
AC_CHECK_HEADERS(openssl/ssl.h)
|
||||||
|
|
||||||
if test $ac_cv_header_openssl_ssl_h = yes ||
|
if test $ac_cv_header_openssl_ssl_h = yes ; then
|
||||||
test $ac_cv_header_ssl_h = yes ; then
|
AC_CHECK_LIB(ssl, SSL_library_init,
|
||||||
AC_CHECK_LIB(ssl, SSLeay_add_ssl_algorithms,
|
[have_openssl=yes
|
||||||
[have_ssleay=yes
|
need_rsaref=no], [have_openssl=no],
|
||||||
need_rsaref=no],
|
|
||||||
[have_ssleay=no],
|
|
||||||
[-lcrypto])
|
[-lcrypto])
|
||||||
|
|
||||||
if test $have_ssleay = no ; then
|
|
||||||
AC_CHECK_LIB(ssl, SSL_library_init,
|
|
||||||
[have_ssleay=yes
|
|
||||||
need_rsaref=no], [have_ssleay=no],
|
|
||||||
[-lcrypto])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $have_ssleay = no ; then
|
if test $have_openssl = no ; then
|
||||||
AC_CHECK_LIB(ssl, ssl3_accept,
|
AC_CHECK_LIB(ssl, ssl3_accept,
|
||||||
[have_ssleay=yes
|
[have_openssl=yes
|
||||||
need_rsaref=yes], [have_ssleay=no],
|
need_rsaref=yes], [have_openssl=no],
|
||||||
[-lcrypto -lRSAglue -lrsaref])
|
[-lcrypto -lRSAglue -lrsaref])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $have_ssleay = yes ; then
|
if test $have_openssl = yes ; then
|
||||||
ol_with_tls=found
|
ol_with_tls=found
|
||||||
ol_link_tls=yes
|
ol_link_tls=yes
|
||||||
|
|
||||||
AC_DEFINE(HAVE_SSLEAY, 1,
|
AC_DEFINE(HAVE_OPENSSL, 1,
|
||||||
[define if you have SSLeay or OpenSSL])
|
[define if you have OpenSSL])
|
||||||
|
|
||||||
if test $need_rsaref = yes; then
|
if test $need_rsaref = yes; then
|
||||||
AC_DEFINE(HAVE_RSAREF, 1,
|
AC_DEFINE(HAVE_RSAREF, 1,
|
||||||
[define if you have RSAref])
|
[define if OpenSSL needs RSAref])
|
||||||
|
|
||||||
TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
|
TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
|
||||||
else
|
else
|
||||||
@ -2408,7 +2399,7 @@ if test "$ol_with_multiple_precision" != "no" ; then
|
|||||||
case "$ol_mp_support" in
|
case "$ol_mp_support" in
|
||||||
bignum)
|
bignum)
|
||||||
AC_DEFINE(HAVE_BIGNUM, 1,
|
AC_DEFINE(HAVE_BIGNUM, 1,
|
||||||
[define if you have SSLeay or OpenSSL's BIGNUM])
|
[define if you have OpenSSL's BIGNUM])
|
||||||
;;
|
;;
|
||||||
gmp)
|
gmp)
|
||||||
AC_DEFINE(HAVE_GMP, 1, [define if you have -lgmp])
|
AC_DEFINE(HAVE_GMP, 1, [define if you have -lgmp])
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
/* define if Berkeley DB has DB_THREAD support */
|
/* define if Berkeley DB has DB_THREAD support */
|
||||||
#undef HAVE_BERKELEY_DB_THREAD
|
#undef HAVE_BERKELEY_DB_THREAD
|
||||||
|
|
||||||
/* define if you have SSLeay or OpenSSL's BIGNUM */
|
/* define if you have OpenSSL's BIGNUM */
|
||||||
#undef HAVE_BIGNUM
|
#undef HAVE_BIGNUM
|
||||||
|
|
||||||
/* Define to 1 if you have the <bits/types.h> header file. */
|
/* Define to 1 if you have the <bits/types.h> header file. */
|
||||||
@ -427,6 +427,9 @@
|
|||||||
/* if you have NT Threads */
|
/* if you have NT Threads */
|
||||||
#undef HAVE_NT_THREADS
|
#undef HAVE_NT_THREADS
|
||||||
|
|
||||||
|
/* define if you have OpenSSL */
|
||||||
|
#undef HAVE_OPENSSL
|
||||||
|
|
||||||
/* Define to 1 if you have the <openssl/bn.h> header file. */
|
/* Define to 1 if you have the <openssl/bn.h> header file. */
|
||||||
#undef HAVE_OPENSSL_BN_H
|
#undef HAVE_OPENSSL_BN_H
|
||||||
|
|
||||||
@ -508,7 +511,7 @@
|
|||||||
/* define if you have res_query() */
|
/* define if you have res_query() */
|
||||||
#undef HAVE_RES_QUERY
|
#undef HAVE_RES_QUERY
|
||||||
|
|
||||||
/* define if you have RSAref */
|
/* define if OpenSSL needs RSAref */
|
||||||
#undef HAVE_RSAREF
|
#undef HAVE_RSAREF
|
||||||
|
|
||||||
/* Define to 1 if you have the <sasl.h> header file. */
|
/* Define to 1 if you have the <sasl.h> header file. */
|
||||||
@ -589,12 +592,6 @@
|
|||||||
/* Define to 1 if you have the <sql.h> header file. */
|
/* Define to 1 if you have the <sql.h> header file. */
|
||||||
#undef HAVE_SQL_H
|
#undef HAVE_SQL_H
|
||||||
|
|
||||||
/* define if you have SSLeay or OpenSSL */
|
|
||||||
#undef HAVE_SSLEAY
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ssl.h> header file. */
|
|
||||||
#undef HAVE_SSL_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stddef.h> header file. */
|
/* Define to 1 if you have the <stddef.h> header file. */
|
||||||
#undef HAVE_STDDEF_H
|
#undef HAVE_STDDEF_H
|
||||||
|
|
||||||
@ -984,9 +981,6 @@
|
|||||||
/* define for Dynamic List overlay */
|
/* define for Dynamic List overlay */
|
||||||
#undef SLAPD_OVER_DYNLIST
|
#undef SLAPD_OVER_DYNLIST
|
||||||
|
|
||||||
/* define for Backend Glue overlay */
|
|
||||||
#undef SLAPD_OVER_GLUE
|
|
||||||
|
|
||||||
/* define for Last Modification overlay */
|
/* define for Last Modification overlay */
|
||||||
#undef SLAPD_OVER_LASTMOD
|
#undef SLAPD_OVER_LASTMOD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user