Fix build with LibreSSL
authorBernard Spil <Sp1l@users.noreply.github.com>
Sun, 14 May 2017 13:45:23 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Sun, 14 May 2017 13:45:23 +0000 (15:45 +0200)
LibreSSL does not have X509_get0_extensions and was forked from 0x1000200fL

See also: https://bugs.freebsd.org/218225

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;