Fix SSL_CTX_get{first,next}_certificate.
Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working.
(cherry picked from commit 9330a85e04
)
This commit is contained in:
parent
6e85eba11b
commit
5aeb43393b
@ -664,7 +664,7 @@ int ssl_cert_set_current(CERT *c, long op)
|
||||
return 0;
|
||||
for (i = idx; i < SSL_PKEY_NUM; i++)
|
||||
{
|
||||
CERT_PKEY *cpk = c->key + i;
|
||||
CERT_PKEY *cpk = c->pkeys + i;
|
||||
if (cpk->x509 && cpk->privatekey)
|
||||
{
|
||||
c->key = cpk;
|
||||
|
Loading…
Reference in New Issue
Block a user