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>
This commit is contained in:
parent
5a3319ab1b
commit
67d35396cb
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue