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