[Pkg-voip-commits] [janus] 185/282: Fix SSL library detection

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit d739758f10cc6ef102683357ce3c5b95f0936a97
Author: Adam Duskett <aduskett at gmail.com>
Date:   Thu Nov 16 10:34:49 2017 -0500

    Fix SSL library detection
    
    Currently, searching for RAND_egd doesn't seem to work properly against
    OpenSSL 1.1, as it always returns false.
    
    Instead, searching for the function tls_config_set_ca_mem in libtls seems to
    be the preferred way to determine if LibreSSL is being compiled against, as
    this function does not exist in OpenSSL.
    
    Openntpd uses this callout in their configure.ac. Because Openntpd is
    maintained by the OpenBSD foundation, and they also maintain LibreSSL, it would
    be a good idea to follow their example.
---
 configure.ac | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9b520e6..dbb710a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -225,10 +225,9 @@ AS_IF([test "x$enable_dtls_settimeout" = "xyes"],
       ])
 AM_CONDITIONAL([ENABLE_DTLS_SETTIMEOUT], [test "x$enable_dtls_settimeout" = "xyes"])
 
-AC_CHECK_LIB([crypto],
-             [RAND_egd],
-             [AM_CONDITIONAL([LIBRESSL_DETECTED], false)],
-             [AM_CONDITIONAL([LIBRESSL_DETECTED], true)]
+AC_SEARCH_LIBS([tls_config_set_ca_mem],[tls],
+             [AM_CONDITIONAL([LIBRESSL_DETECTED], true)],
+             [AM_CONDITIONAL([LIBRESSL_DETECTED], false)]
              )
 
 AC_CHECK_LIB([nice],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list