Skip to content

Commit d2fee4b

Browse files
author
afjoseph
committed
fixup! Load all certs in a CaBuffer
1 parent 8cfc332 commit d2fee4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpr/ssl_ctx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CURLcode sslctx_function_load_ca_cert_from_buffer(CURL* /*curl*/, void* sslctx,
7070
// Create a memory BIO using the data of cert_buf
7171
// Note: It is assumed, that cert_buf is nul terminated and its length is determined by strlen
7272
char* cert_buf = static_cast<char*>(raw_cert_buf);
73-
bio_ptr bio = BIO_new_mem_buf(cert_buf, -1);
73+
BIO* bio = BIO_new_mem_buf(cert_buf, -1);
7474

7575
// Get a pointer to the current certificate verification storage
7676
X509_STORE* store = SSL_CTX_get_cert_store(static_cast<SSL_CTX*>(sslctx));

0 commit comments

Comments
 (0)