mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
wolfSSL: Client cert loading API fix
Client cert loading API should check equality to SSL_SUCCESS for success. Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
This commit is contained in:
parent
297050b460
commit
0225301fde
@ -469,7 +469,7 @@ static int tls_connection_client_cert(struct tls_connection *conn,
|
|||||||
if (client_cert_blob) {
|
if (client_cert_blob) {
|
||||||
if (wolfSSL_use_certificate_chain_buffer_format(
|
if (wolfSSL_use_certificate_chain_buffer_format(
|
||||||
conn->ssl, client_cert_blob, blob_len,
|
conn->ssl, client_cert_blob, blob_len,
|
||||||
SSL_FILETYPE_ASN1) < 0) {
|
SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||||
wpa_printf(MSG_INFO,
|
wpa_printf(MSG_INFO,
|
||||||
"SSL: use client cert DER blob failed");
|
"SSL: use client cert DER blob failed");
|
||||||
return -1;
|
return -1;
|
||||||
@ -479,13 +479,13 @@ static int tls_connection_client_cert(struct tls_connection *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (client_cert) {
|
if (client_cert) {
|
||||||
if (wolfSSL_use_certificate_chain_file(conn->ssl,
|
if (wolfSSL_use_certificate_chain_file(
|
||||||
client_cert) < 0) {
|
conn->ssl, client_cert) != SSL_SUCCESS) {
|
||||||
wpa_printf(MSG_INFO,
|
wpa_printf(MSG_INFO,
|
||||||
"SSL: use client cert PEM file failed");
|
"SSL: use client cert PEM file failed");
|
||||||
if (wolfSSL_use_certificate_chain_file_format(
|
if (wolfSSL_use_certificate_chain_file_format(
|
||||||
conn->ssl, client_cert,
|
conn->ssl, client_cert,
|
||||||
SSL_FILETYPE_ASN1) < 0) {
|
SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||||
wpa_printf(MSG_INFO,
|
wpa_printf(MSG_INFO,
|
||||||
"SSL: use client cert DER file failed");
|
"SSL: use client cert DER file failed");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user