LibreSSL: Fix build with LibreSSL versions older than 2.9.1
SSL_add0_chain_cert() was not available in LibreSSL before version
2.9.1.
Fixes: 4b834df5e0
("OpenSSL: Support PEM encoded chain from client_cert blob")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5dedbd582a
commit
2caff11d7a
1 changed files with 5 additions and 0 deletions
|
@ -3252,6 +3252,10 @@ static int tls_connection_client_cert(struct tls_connection *conn,
|
|||
"OK");
|
||||
return 0;
|
||||
} else if (client_cert_blob) {
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20901000L
|
||||
tls_show_errors(MSG_DEBUG, __func__,
|
||||
"SSL_use_certificate_ASN1 failed");
|
||||
#else
|
||||
BIO *bio;
|
||||
X509 *x509;
|
||||
|
||||
|
@ -3277,6 +3281,7 @@ static int tls_connection_client_cert(struct tls_connection *conn,
|
|||
}
|
||||
BIO_free(bio);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (client_cert == NULL)
|
||||
|
|
Loading…
Reference in a new issue