aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Strogin <stefan.strogin@gmail.com>2019-01-09 11:19:53 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-12 13:26:07 (GMT)
commit67d35396cbf3ba14a5ec3abc159edb9428b469cd (patch)
tree9daab479194aaebd3c54714364d7f558df67cb17
parent5a3319ab1b23a588d608ead1e85c28a5b7149bbe (diff)
downloadhostap-67d35396cbf3ba14a5ec3abc159edb9428b469cd.zip
hostap-67d35396cbf3ba14a5ec3abc159edb9428b469cd.tar.gz
hostap-67d35396cbf3ba14a5ec3abc159edb9428b469cd.tar.bz2
Fix build with LibreSSL
When using LibreSSL build fails with: ../src/crypto/tls_openssl.o: in function `tls_connection_client_cert': ../src/crypto/tls_openssl.c:2817: undefined reference to `SSL_use_certificate_chain_file' collect2: error: ld returned 1 exit status make: *** [Makefile:1901: wpa_supplicant] Error 1 There is no such function in LibreSSL. Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
-rw-r--r--src/crypto/tls_openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index cb70e2c..705fa29 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -2804,7 +2804,7 @@ static int tls_connection_client_cert(struct tls_connection *conn,
return 0;
}
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
if (SSL_use_certificate_chain_file(conn->ssl, client_cert) == 1) {
ERR_clear_error();
wpa_printf(MSG_DEBUG, "OpenSSL: SSL_use_certificate_chain_file"