Merge pull request #1989 from Sp1l/v3.0.x
authorAlan DeKok <aland@freeradius.org>
Fri, 19 May 2017 18:06:40 +0000 (14:06 -0400)
committerGitHub <noreply@github.com>
Fri, 19 May 2017 18:06:40 +0000 (14:06 -0400)
Fix build with LibreSSL

src/main/tls.c

index c676882..088ea23 100644 (file)
@@ -2218,7 +2218,7 @@ int cbtls_verify(int ok, X509_STORE_CTX *ctx)
        }
 
        if (lookup == 0) {
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
                ext_list = X509_get0_extensions(client_cert);
 #else
                X509_CINF       *client_inf;