SSL_CTX_add1_to_CA_list

Append a CA subject name from a certificate to an SSL context's peer CA list.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_add1_to_CA_list(
    SSL_CTX* ctx,
    X509 const* x);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxSSL context whose CA list is updated.
xCertificate whose subject name is duplicated onto the list.