Commit 9784ec04 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Don't use client specific functions to retrieve CA list

parent d2add501
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -992,7 +992,7 @@ static int tls_construct_certificate_authorities(SSL *s, WPACKET *pkt,
                                                 unsigned int context, X509 *x,
                                                 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)
        return 1;
+1 −1
Original line number Diff line number Diff line
@@ -2038,7 +2038,7 @@ int parse_ca_names(SSL *s, PACKET *pkt, int *al)

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 */
    if (!WPACKET_start_sub_packet_u16(pkt))