提交 9330a85e 编写于 作者: K Kaspar Brand 提交者: Dr. Stephen Henson

Fix SSL_CTX_get{first,next}_certificate.

Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working.
上级 0dd5b94a
...@@ -670,7 +670,7 @@ int ssl_cert_set_current(CERT *c, long op) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册