mirror of
https://github.com/curl/curl.git
synced 2026-06-05 09:54:16 +03:00
parent
60080202bb
commit
30aea2b1ed
1 changed files with 12 additions and 1 deletions
|
|
@ -3953,9 +3953,20 @@ static CURLcode servercert(struct Curl_easy *data,
|
||||||
|
|
||||||
/* e.g. match issuer name with provided issuer certificate */
|
/* e.g. match issuer name with provided issuer certificate */
|
||||||
if(SSL_CONN_CONFIG(issuercert) || SSL_CONN_CONFIG(issuercert_blob)) {
|
if(SSL_CONN_CONFIG(issuercert) || SSL_CONN_CONFIG(issuercert_blob)) {
|
||||||
if(SSL_CONN_CONFIG(issuercert_blob))
|
if(SSL_CONN_CONFIG(issuercert_blob)) {
|
||||||
fp = BIO_new_mem_buf(SSL_CONN_CONFIG(issuercert_blob)->data,
|
fp = BIO_new_mem_buf(SSL_CONN_CONFIG(issuercert_blob)->data,
|
||||||
(int)SSL_CONN_CONFIG(issuercert_blob)->len);
|
(int)SSL_CONN_CONFIG(issuercert_blob)->len);
|
||||||
|
if(!fp) {
|
||||||
|
failf(data,
|
||||||
|
"BIO_new_mem_buf NULL, " OSSL_PACKAGE
|
||||||
|
" error %s",
|
||||||
|
ossl_strerror(ERR_get_error(), error_buffer,
|
||||||
|
sizeof(error_buffer)) );
|
||||||
|
X509_free(backend->server_cert);
|
||||||
|
backend->server_cert = NULL;
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
fp = BIO_new(BIO_s_file());
|
fp = BIO_new(BIO_s_file());
|
||||||
if(!fp) {
|
if(!fp) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue