@@ -9524,9 +9524,9 @@ $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9524
9524
fi
9525
9525
9526
9526
9527
- { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9528
- $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9529
- if test "${ac_cv_lib_ssl_SSL_library_init +set}" = set; then
9527
+ { $as_echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
9528
+ $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9529
+ if test "${ac_cv_lib_ssl_SSL_new +set}" = set; then
9530
9530
$as_echo_n "(cached) " >&6
9531
9531
else
9532
9532
ac_check_lib_save_LIBS=$LIBS
@@ -9544,11 +9544,11 @@ cat >>conftest.$ac_ext <<_ACEOF
9544
9544
#ifdef __cplusplus
9545
9545
extern "C"
9546
9546
#endif
9547
- char SSL_library_init ();
9547
+ char SSL_new ();
9548
9548
int
9549
9549
main ()
9550
9550
{
9551
- return SSL_library_init ();
9551
+ return SSL_new ();
9552
9552
;
9553
9553
return 0;
9554
9554
}
@@ -9574,22 +9574,22 @@ $as_echo "$ac_try_echo") >&5
9574
9574
test "$cross_compiling" = yes ||
9575
9575
$as_test_x conftest$ac_exeext
9576
9576
}; then
9577
- ac_cv_lib_ssl_SSL_library_init =yes
9577
+ ac_cv_lib_ssl_SSL_new =yes
9578
9578
else
9579
9579
$as_echo "$as_me: failed program was:" >&5
9580
9580
sed 's/^/| /' conftest.$ac_ext >&5
9581
9581
9582
- ac_cv_lib_ssl_SSL_library_init =no
9582
+ ac_cv_lib_ssl_SSL_new =no
9583
9583
fi
9584
9584
9585
9585
rm -rf conftest.dSYM
9586
9586
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587
9587
conftest$ac_exeext conftest.$ac_ext
9588
9588
LIBS=$ac_check_lib_save_LIBS
9589
9589
fi
9590
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init " >&5
9591
- $as_echo "$ac_cv_lib_ssl_SSL_library_init " >&6; }
9592
- if test "x$ac_cv_lib_ssl_SSL_library_init " = x""yes; then
9590
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new " >&5
9591
+ $as_echo "$ac_cv_lib_ssl_SSL_new " >&6; }
9592
+ if test "x$ac_cv_lib_ssl_SSL_new " = x""yes; then
9593
9593
cat >>confdefs.h <<_ACEOF
9594
9594
#define HAVE_LIBSSL 1
9595
9595
_ACEOF
@@ -9694,9 +9694,9 @@ $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&
9694
9694
{ (exit 1); exit 1; }; }
9695
9695
fi
9696
9696
9697
- { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init " >&5
9698
- $as_echo_n "checking for library containing SSL_library_init ... " >&6; }
9699
- if test "${ac_cv_search_SSL_library_init +set}" = set; then
9697
+ { $as_echo "$as_me:$LINENO: checking for library containing SSL_new " >&5
9698
+ $as_echo_n "checking for library containing SSL_new ... " >&6; }
9699
+ if test "${ac_cv_search_SSL_new +set}" = set; then
9700
9700
$as_echo_n "(cached) " >&6
9701
9701
else
9702
9702
ac_func_search_save_LIBS=$LIBS
@@ -9713,11 +9713,11 @@ cat >>conftest.$ac_ext <<_ACEOF
9713
9713
#ifdef __cplusplus
9714
9714
extern "C"
9715
9715
#endif
9716
- char SSL_library_init ();
9716
+ char SSL_new ();
9717
9717
int
9718
9718
main ()
9719
9719
{
9720
- return SSL_library_init ();
9720
+ return SSL_new ();
9721
9721
;
9722
9722
return 0;
9723
9723
}
@@ -9750,7 +9750,7 @@ $as_echo "$ac_try_echo") >&5
9750
9750
test "$cross_compiling" = yes ||
9751
9751
$as_test_x conftest$ac_exeext
9752
9752
}; then
9753
- ac_cv_search_SSL_library_init =$ac_res
9753
+ ac_cv_search_SSL_new =$ac_res
9754
9754
else
9755
9755
$as_echo "$as_me: failed program was:" >&5
9756
9756
sed 's/^/| /' conftest.$ac_ext >&5
@@ -9761,21 +9761,21 @@ fi
9761
9761
rm -rf conftest.dSYM
9762
9762
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763
9763
conftest$ac_exeext
9764
- if test "${ac_cv_search_SSL_library_init +set}" = set; then
9764
+ if test "${ac_cv_search_SSL_new +set}" = set; then
9765
9765
break
9766
9766
fi
9767
9767
done
9768
- if test "${ac_cv_search_SSL_library_init +set}" = set; then
9768
+ if test "${ac_cv_search_SSL_new +set}" = set; then
9769
9769
:
9770
9770
else
9771
- ac_cv_search_SSL_library_init =no
9771
+ ac_cv_search_SSL_new =no
9772
9772
fi
9773
9773
rm conftest.$ac_ext
9774
9774
LIBS=$ac_func_search_save_LIBS
9775
9775
fi
9776
- { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init " >&5
9777
- $as_echo "$ac_cv_search_SSL_library_init " >&6; }
9778
- ac_res=$ac_cv_search_SSL_library_init
9776
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_new " >&5
9777
+ $as_echo "$ac_cv_search_SSL_new " >&6; }
9778
+ ac_res=$ac_cv_search_SSL_new
9779
9779
if test "$ac_res" != no; then
9780
9780
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9781
9781
@@ -9786,6 +9786,219 @@ $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&
9786
9786
fi
9787
9787
9788
9788
fi
9789
+ # Functions introduced in OpenSSL 1.1.0. We used to check for
9790
+ # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
9791
+ # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
9792
+ # doesn't have these OpenSSL 1.1.0 functions. So check for individual
9793
+ # functions.
9794
+
9795
+
9796
+
9797
+
9798
+ for ac_func in OPENSSL_init_ssl BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
9799
+ do
9800
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9801
+ { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9802
+ $as_echo_n "checking for $ac_func... " >&6; }
9803
+ if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9804
+ $as_echo_n "(cached) " >&6
9805
+ else
9806
+ cat >conftest.$ac_ext <<_ACEOF
9807
+ /* confdefs.h. */
9808
+ _ACEOF
9809
+ cat confdefs.h >>conftest.$ac_ext
9810
+ cat >>conftest.$ac_ext <<_ACEOF
9811
+ /* end confdefs.h. */
9812
+ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9813
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814
+ #define $ac_func innocuous_$ac_func
9815
+
9816
+ /* System header to define __stub macros and hopefully few prototypes,
9817
+ which can conflict with char $ac_func (); below.
9818
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819
+ <limits.h> exists even on freestanding compilers. */
9820
+
9821
+ #ifdef __STDC__
9822
+ # include <limits.h>
9823
+ #else
9824
+ # include <assert.h>
9825
+ #endif
9826
+
9827
+ #undef $ac_func
9828
+
9829
+ /* Override any GCC internal prototype to avoid an error.
9830
+ Use char because int might match the return type of a GCC
9831
+ builtin and then its argument prototype would still apply. */
9832
+ #ifdef __cplusplus
9833
+ extern "C"
9834
+ #endif
9835
+ char $ac_func ();
9836
+ /* The GNU C library defines this for functions which it implements
9837
+ to always fail with ENOSYS. Some functions are actually named
9838
+ something starting with __ and the normal name is an alias. */
9839
+ #if defined __stub_$ac_func || defined __stub___$ac_func
9840
+ choke me
9841
+ #endif
9842
+
9843
+ int
9844
+ main ()
9845
+ {
9846
+ return $ac_func ();
9847
+ ;
9848
+ return 0;
9849
+ }
9850
+ _ACEOF
9851
+ rm -f conftest.$ac_objext conftest$ac_exeext
9852
+ if { (ac_try="$ac_link"
9853
+ case "(($ac_try" in
9854
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855
+ *) ac_try_echo=$ac_try;;
9856
+ esac
9857
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9858
+ $as_echo "$ac_try_echo") >&5
9859
+ (eval "$ac_link") 2>conftest.er1
9860
+ ac_status=$?
9861
+ grep -v '^ *+' conftest.er1 >conftest.err
9862
+ rm -f conftest.er1
9863
+ cat conftest.err >&5
9864
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865
+ (exit $ac_status); } && {
9866
+ test -z "$ac_c_werror_flag" ||
9867
+ test ! -s conftest.err
9868
+ } && test -s conftest$ac_exeext && {
9869
+ test "$cross_compiling" = yes ||
9870
+ $as_test_x conftest$ac_exeext
9871
+ }; then
9872
+ eval "$as_ac_var=yes"
9873
+ else
9874
+ $as_echo "$as_me: failed program was:" >&5
9875
+ sed 's/^/| /' conftest.$ac_ext >&5
9876
+
9877
+ eval "$as_ac_var=no"
9878
+ fi
9879
+
9880
+ rm -rf conftest.dSYM
9881
+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882
+ conftest$ac_exeext conftest.$ac_ext
9883
+ fi
9884
+ ac_res=`eval 'as_val=${'$as_ac_var'}
9885
+ $as_echo "$as_val"'`
9886
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9887
+ $as_echo "$ac_res" >&6; }
9888
+ as_val=`eval 'as_val=${'$as_ac_var'}
9889
+ $as_echo "$as_val"'`
9890
+ if test "x$as_val" = x""yes; then
9891
+ cat >>confdefs.h <<_ACEOF
9892
+ #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9893
+ _ACEOF
9894
+
9895
+ fi
9896
+ done
9897
+
9898
+ # OpenSSL versions before 1.1.0 required setting callback functions, for
9899
+ # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
9900
+ # function was removed.
9901
+
9902
+ for ac_func in CRYPTO_lock
9903
+ do
9904
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905
+ { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9906
+ $as_echo_n "checking for $ac_func... " >&6; }
9907
+ if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9908
+ $as_echo_n "(cached) " >&6
9909
+ else
9910
+ cat >conftest.$ac_ext <<_ACEOF
9911
+ /* confdefs.h. */
9912
+ _ACEOF
9913
+ cat confdefs.h >>conftest.$ac_ext
9914
+ cat >>conftest.$ac_ext <<_ACEOF
9915
+ /* end confdefs.h. */
9916
+ /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9917
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918
+ #define $ac_func innocuous_$ac_func
9919
+
9920
+ /* System header to define __stub macros and hopefully few prototypes,
9921
+ which can conflict with char $ac_func (); below.
9922
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923
+ <limits.h> exists even on freestanding compilers. */
9924
+
9925
+ #ifdef __STDC__
9926
+ # include <limits.h>
9927
+ #else
9928
+ # include <assert.h>
9929
+ #endif
9930
+
9931
+ #undef $ac_func
9932
+
9933
+ /* Override any GCC internal prototype to avoid an error.
9934
+ Use char because int might match the return type of a GCC
9935
+ builtin and then its argument prototype would still apply. */
9936
+ #ifdef __cplusplus
9937
+ extern "C"
9938
+ #endif
9939
+ char $ac_func ();
9940
+ /* The GNU C library defines this for functions which it implements
9941
+ to always fail with ENOSYS. Some functions are actually named
9942
+ something starting with __ and the normal name is an alias. */
9943
+ #if defined __stub_$ac_func || defined __stub___$ac_func
9944
+ choke me
9945
+ #endif
9946
+
9947
+ int
9948
+ main ()
9949
+ {
9950
+ return $ac_func ();
9951
+ ;
9952
+ return 0;
9953
+ }
9954
+ _ACEOF
9955
+ rm -f conftest.$ac_objext conftest$ac_exeext
9956
+ if { (ac_try="$ac_link"
9957
+ case "(($ac_try" in
9958
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959
+ *) ac_try_echo=$ac_try;;
9960
+ esac
9961
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9962
+ $as_echo "$ac_try_echo") >&5
9963
+ (eval "$ac_link") 2>conftest.er1
9964
+ ac_status=$?
9965
+ grep -v '^ *+' conftest.er1 >conftest.err
9966
+ rm -f conftest.er1
9967
+ cat conftest.err >&5
9968
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969
+ (exit $ac_status); } && {
9970
+ test -z "$ac_c_werror_flag" ||
9971
+ test ! -s conftest.err
9972
+ } && test -s conftest$ac_exeext && {
9973
+ test "$cross_compiling" = yes ||
9974
+ $as_test_x conftest$ac_exeext
9975
+ }; then
9976
+ eval "$as_ac_var=yes"
9977
+ else
9978
+ $as_echo "$as_me: failed program was:" >&5
9979
+ sed 's/^/| /' conftest.$ac_ext >&5
9980
+
9981
+ eval "$as_ac_var=no"
9982
+ fi
9983
+
9984
+ rm -rf conftest.dSYM
9985
+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986
+ conftest$ac_exeext conftest.$ac_ext
9987
+ fi
9988
+ ac_res=`eval 'as_val=${'$as_ac_var'}
9989
+ $as_echo "$as_val"'`
9990
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9991
+ $as_echo "$ac_res" >&6; }
9992
+ as_val=`eval 'as_val=${'$as_ac_var'}
9993
+ $as_echo "$as_val"'`
9994
+ if test "x$as_val" = x""yes; then
9995
+ cat >>confdefs.h <<_ACEOF
9996
+ #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9997
+ _ACEOF
9998
+
9999
+ fi
10000
+ done
10001
+
9789
10002
fi
9790
10003
9791
10004
if test "$with_pam" = yes ; then
0 commit comments