提交 9784ec04 编写于 作者: D Dr. Stephen Henson

Don't use client specific functions to retrieve CA list

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3015)
上级 d2add501
...@@ -992,7 +992,7 @@ static int tls_construct_certificate_authorities(SSL *s, WPACKET *pkt, ...@@ -992,7 +992,7 @@ static int tls_construct_certificate_authorities(SSL *s, WPACKET *pkt,
unsigned int context, X509 *x, unsigned int context, X509 *x,
size_t chainidx, int *al) size_t chainidx, int *al)
{ {
STACK_OF(X509_NAME) *ca_sk = SSL_get_client_CA_list(s); const STACK_OF(X509_NAME) *ca_sk = SSL_get0_CA_list(s);
if (ca_sk == NULL || sk_X509_NAME_num(ca_sk) == 0) if (ca_sk == NULL || sk_X509_NAME_num(ca_sk) == 0)
return 1; return 1;
......
...@@ -2038,7 +2038,7 @@ int parse_ca_names(SSL *s, PACKET *pkt, int *al) ...@@ -2038,7 +2038,7 @@ int parse_ca_names(SSL *s, PACKET *pkt, int *al)
int construct_ca_names(SSL *s, WPACKET *pkt) int construct_ca_names(SSL *s, WPACKET *pkt)
{ {
STACK_OF(X509_NAME) *ca_sk = SSL_get_client_CA_list(s); const STACK_OF(X509_NAME) *ca_sk = SSL_get0_CA_list(s);
/* Start sub-packet for client CA list */ /* Start sub-packet for client CA list */
if (!WPACKET_start_sub_packet_u16(pkt)) if (!WPACKET_start_sub_packet_u16(pkt))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册