aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-07-13 19:40:50 (GMT)
committerJouni Malinen <j@w1.fi>2019-07-13 19:49:46 (GMT)
commitb8491ae5ac0d7e835fb2b81d32b01e0cb1065f47 (patch)
treec3d4f944d6b461bc64d6b2e355794a6271df93f5
parent7456cf57d35df8301e39a956ba2f778ba92e815f (diff)
downloadhostap-b8491ae5ac0d7e835fb2b81d32b01e0cb1065f47.zip
hostap-b8491ae5ac0d7e835fb2b81d32b01e0cb1065f47.tar.gz
hostap-b8491ae5ac0d7e835fb2b81d32b01e0cb1065f47.tar.bz2
OpenSSL: Fix build with LibreSSL and BoringSSL
The new certificate chain debug dumps used functions that are not available with LibreSSL or BoringSSL. Fixes: 857edf4bf43e ("OpenSSL: More debug prints of configured ciphers and certificates") Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--src/crypto/tls_openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index d58cb82..07d38e4 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -5137,6 +5137,8 @@ static void openssl_debug_dump_cipher_list(SSL_CTX *ssl_ctx)
}
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION)
+
static const char * openssl_pkey_type_str(const EVP_PKEY *pkey)
{
if (!pkey)
@@ -5194,9 +5196,12 @@ static void openssl_debug_dump_certificates(SSL_CTX *ssl_ctx)
openssl_debug_dump_certificate(0, SSL_CTX_get0_certificate(ssl_ctx));
}
+#endif
+
static void openssl_debug_dump_certificate_chains(SSL_CTX *ssl_ctx)
{
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION)
int res;
for (res = SSL_CTX_set_current_cert(ssl_ctx, SSL_CERT_SET_FIRST);
@@ -5205,6 +5210,7 @@ static void openssl_debug_dump_certificate_chains(SSL_CTX *ssl_ctx)
openssl_debug_dump_certificates(ssl_ctx);
SSL_CTX_set_current_cert(ssl_ctx, SSL_CERT_SET_FIRST);
+#endif
}