From: orbea Date: Wed, 12 Apr 2023 19:55:46 +0000 (-0700) Subject: ITS#10039 Test for SSL_CTX_set_ciphersuites() X-Git-Tag: OPENLDAP_REL_ENG_2_5_15~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9701abb45822f7ef25893f076f1cbdb86d37f68d;p=thirdparty%2Fopenldap.git ITS#10039 Test for SSL_CTX_set_ciphersuites() When configuring OpenLDAP using --with-tls=openssl with LibreSSL the configure will fail to detect SSL_export_keyring_material_early() since LibreSSL doesn't support this function yet. However OpenLDAP doesn't actually use this function and only checks for it to ensure a modern OpenSSL API is used. This can be easily solved by checking for an equivalent modern OpenSSL function which both LibreSSL and OpenSSL both support such as SSL_CTX_set_ciphersuites(). Doing this allows the build and tests to succeed with modern LibreSSL versions. This was tested with LibreSSL >= 3.6. Bug: https://bugs.openldap.org/show_bug.cgi?id=10039 --- diff --git a/configure.ac b/configure.ac index 83ef528047..8e71453eec 100644 --- a/configure.ac +++ b/configure.ac @@ -1236,7 +1236,7 @@ if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then [#endif]])], , [AC_MSG_FAILURE([OpenSSL 1.1.1 or newer required])]) - AC_CHECK_LIB(ssl, SSL_export_keying_material_early, + AC_CHECK_LIB(ssl, SSL_CTX_set_ciphersuites, [have_openssl=yes], [have_openssl=no], [-lcrypto])