mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:21:42 +03:00
parent
74af81ca03
commit
65bbb5e6f4
1 changed files with 4 additions and 2 deletions
|
|
@ -793,9 +793,10 @@ int cert_stuff(struct Curl_easy *data,
|
|||
SSL_CTX_use_certificate_chain_file(ctx, cert_file);
|
||||
if(cert_use_result != 1) {
|
||||
failf(data,
|
||||
"could not load PEM client certificate, " OSSL_PACKAGE
|
||||
"could not load PEM client certificate from %s, " OSSL_PACKAGE
|
||||
" error %s, "
|
||||
"(no key found, wrong pass phrase, or wrong file format?)",
|
||||
(cert_blob ? "CURLOPT_SSLCERT_BLOB" : cert_file),
|
||||
ossl_strerror(ERR_get_error(), error_buffer,
|
||||
sizeof(error_buffer)) );
|
||||
return 0;
|
||||
|
|
@ -813,9 +814,10 @@ int cert_stuff(struct Curl_easy *data,
|
|||
SSL_CTX_use_certificate_file(ctx, cert_file, file_type);
|
||||
if(cert_use_result != 1) {
|
||||
failf(data,
|
||||
"could not load ASN1 client certificate, " OSSL_PACKAGE
|
||||
"could not load ASN1 client certificate from %s, " OSSL_PACKAGE
|
||||
" error %s, "
|
||||
"(no key found, wrong pass phrase, or wrong file format?)",
|
||||
(cert_blob ? "CURLOPT_SSLCERT_BLOB" : cert_file),
|
||||
ossl_strerror(ERR_get_error(), error_buffer,
|
||||
sizeof(error_buffer)) );
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue