mirror of
https://github.com/curl/curl.git
synced 2026-07-23 15:07:17 +03:00
usercertinmem: use the correct cert BIO
PEM_read_bio_PrivateKey() is called with the wrong BIO, so the private
key is not loaded.
Follow-up to 8494012196
Pointed out by Codex Security
Closes #20800
This commit is contained in:
parent
ad58e07b54
commit
7079f1d39c
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ static CURLcode sslctx_function(CURL *curl, void *sslctx, void *pointer)
|
|||
printf("BIO_new_mem_buf failed\n");
|
||||
}
|
||||
|
||||
pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
|
||||
pkey = PEM_read_bio_PrivateKey(kbio, NULL, NULL, NULL);
|
||||
if(!pkey) {
|
||||
printf("Failed EVP_PKEY_new()\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue