mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Extend TLS/SSL detection for use RSAref if necessary.
This commit is contained in:
parent
e8605dc9f1
commit
3028424f68
10
configure.in
10
configure.in
@ -58,7 +58,7 @@ OL_ARG_WITH(threads,[ --with-threads use threads],
|
||||
auto, [auto posix mach lwp yes no manual] )
|
||||
OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
|
||||
auto, [auto yes no manual] )
|
||||
OL_ARG_WITH(tls,[ --with-tls use tls/ssl],
|
||||
OL_ARG_WITH(tls,[ --with-tls with TLS/SSL support],
|
||||
auto, [auto ssleay openssl yes no] )
|
||||
|
||||
dnl Server options
|
||||
@ -458,8 +458,7 @@ dnl
|
||||
dnl Check for SSL/TLS
|
||||
dnl
|
||||
ol_link_tls=no
|
||||
if test $ol_with_tls = auto -o $ol_with_tls = ssleay \
|
||||
-o $ol_with_tls = openssl ; then
|
||||
if test $ol_with_tls != no ; then
|
||||
|
||||
AC_CHECK_HEADERS(ssl.h)
|
||||
|
||||
@ -467,6 +466,11 @@ if test $ol_with_tls = auto -o $ol_with_tls = ssleay \
|
||||
AC_CHECK_LIB( ssl, SSLeay_add_ssl_algorithms,
|
||||
[have_ssleay=yes], [have_ssleay=no], [-lcrypto])
|
||||
|
||||
if test $have_ssleay = no ; then
|
||||
AC_CHECK_LIB( ssl, ssl3_accept,
|
||||
[have_ssleay=yes], [have_ssleay=no], [-lcrypto -lRSAglue -lrsaref])
|
||||
fi
|
||||
|
||||
if test $have_ssleay = yes ; then
|
||||
ol_with_tls=found
|
||||
ol_link_tls=yes
|
||||
|
Loading…
Reference in New Issue
Block a user