=pod =head1 NAME SSL_CTX_set_client_CA_list, SSL_set_client_CA_list, SSL_CTX_add_client_CA, SSL_add_client_CA - set list of CAs sent to the client when requesting a client certificate =head1 SYNOPSIS #include void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *list); void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *list); int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *cacert); int SSL_add_client_CA(SSL *ssl, X509 *cacert); =head1 DESCRIPTION SSL_CTX_set_client_CA_list() sets the B of CAs sent to the client when requesting a client certificate for B. SSL_set_client_CA_list() sets the B of CAs sent to the client when requesting a client certificate for the chosen B, overriding the setting valid for B's SSL_CTX object. SSL_CTX_add_client_CA() adds the CA name extracted from B to the list of CAs sent to the client when requesting a client certificate for B. SSL_add_client_CA() adds the CA name extracted from B to the list of CAs sent to the client when requesting a client certificate for the chosen B, overriding the setting valid for B's SSL_CTX object. =head1 NOTES When a TLS/SSL server requests a client certificate (see B), it sends a list of CAs, for which it will accept certificates, to the client. If no special list is provided, the CAs available using the B option in L are sent. This list can be explicitly set using the SSL_CTX_set_client_CA_list() for B and SSL_set_client_CA_list() for the specific B. The list specified overrides the previous setting. The CAs listed do not become trusted (B only contains the names, not the complete certificates); use L to additionally load them for verification. SSL_CTX_add_client_CA() and SSL_add_client_CA() can be used to add additional items the list of client CAs. If no list was specified before using SSL_CTX_set_client_CA_list() or SSL_set_client_CA_list(), a new client CA list for B or B (as appropriate) is opened. The CAs implicitly specified using L are no longer used automatically. These functions are only useful for TLS/SSL servers. =head1 RETURN VALUES SSL_CTX_set_client_CA_list() and SSL_set_client_CA_list() do not return diagnostic information. SSL_CTX_add_client_CA() and SSL_add_client_CA() have the following return values: =over 4 =item 1 The operation succeeded. =item 0 A failure while manipulating the STACK_OF(X509_NAME) object occurred or the X509_NAME could not be extracted from B. Check the error stack to find out the reason. =back =head1 SEE ALSO L, L, L L =cut