提交 59088e43 编写于 作者: D Dr. Stephen Henson

Set current certificate to selected certificate.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2637)
上级 399976c7
...@@ -2444,6 +2444,7 @@ int tls_choose_sigalg(SSL *s, int *al) ...@@ -2444,6 +2444,7 @@ int tls_choose_sigalg(SSL *s, int *al)
} }
} }
s->s3->tmp.cert = &s->cert->pkeys[idx]; s->s3->tmp.cert = &s->cert->pkeys[idx];
s->cert->key = s->s3->tmp.cert;
s->s3->tmp.sigalg = lu; s->s3->tmp.sigalg = lu;
return 1; return 1;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册