]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
LibreSSL: Fix compatibility for EAP-FAST
authorJulian Ospald <hasufell@hasufell.de>
Fri, 7 Oct 2016 15:51:05 +0000 (17:51 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 7 Oct 2016 21:36:18 +0000 (00:36 +0300)
This basically just follows commit
587b0457e0238b7b1800d46f5cdd5e1d2b06732f ('LibreSSL: Fix build with
LibreSSL') with the same pattern, which was missed here.

Signed-off-by: Julian Ospald <hasufell@hasufell.de>
src/crypto/tls_openssl.c

index b07931e2dd74ee41108868b1dc7fa89a904817d0..a7d4880031c935a08aeda215ce78304e331956ba 100644 (file)
@@ -3976,7 +3976,7 @@ int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
                engine_id = "pkcs11";
 
 #if defined(EAP_FAST) || defined(EAP_FAST_DYNAMIC) || defined(EAP_SERVER_FAST)
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
        if (params->flags & TLS_CONN_EAP_FAST) {
                wpa_printf(MSG_DEBUG,
                           "OpenSSL: Use TLSv1_method() for EAP-FAST");