OpenSSL: Fix build with current BoringSSL
SSL_use_certificate_chain_file() is not available in the current BoringSSL even though the defined OPENSSL_VERSION_NUMBER is large enough to claim that this function would be present in the OpenSSL API. Fall back to using SSL_use_certificate_file() with BoringSSL to fix the build. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
7f1eeda2df
commit
bf84e78cbc
1 changed files with 2 additions and 1 deletions
|
@ -3119,7 +3119,8 @@ static int tls_connection_client_cert(struct tls_connection *conn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
|
||||||
|
!defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_IS_BORINGSSL)
|
||||||
if (SSL_use_certificate_chain_file(conn->ssl, client_cert) == 1) {
|
if (SSL_use_certificate_chain_file(conn->ssl, client_cert) == 1) {
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
wpa_printf(MSG_DEBUG, "OpenSSL: SSL_use_certificate_chain_file"
|
wpa_printf(MSG_DEBUG, "OpenSSL: SSL_use_certificate_chain_file"
|
||||||
|
|
Loading…
Reference in a new issue