EVP_MD_CTX_cleanup replaced with EVP_MD_CTX_reset
[openssl.git] / doc / man3 / SSL_get_client_CA_list.pod
1 =pod
2
3 =head1 NAME
4
5 SSL_get_client_CA_list, SSL_CTX_get_client_CA_list - get list of client CAs
6
7 =head1 SYNOPSIS
8
9  #include <openssl/ssl.h>
10
11  STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
12  STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *ctx);
13
14 =head1 DESCRIPTION
15
16 SSL_CTX_get_client_CA_list() returns the list of client CAs explicitly set for
17 B<ctx> using L<SSL_CTX_set_client_CA_list(3)>.
18
19 SSL_get_client_CA_list() returns the list of client CAs explicitly
20 set for B<ssl> using SSL_set_client_CA_list() or B<ssl>'s SSL_CTX object with
21 L<SSL_CTX_set_client_CA_list(3)>, when in
22 server mode. In client mode, SSL_get_client_CA_list returns the list of
23 client CAs sent from the server, if any.
24
25 =head1 RETURN VALUES
26
27 SSL_CTX_set_client_CA_list() and SSL_set_client_CA_list() do not return
28 diagnostic information.
29
30 SSL_CTX_add_client_CA() and SSL_add_client_CA() have the following return
31 values:
32
33 =over 4
34
35 =item STACK_OF(X509_NAMES)
36
37 List of CA names explicitly set (for B<ctx> or in server mode) or send
38 by the server (client mode).
39
40 =item NULL
41
42 No client CA list was explicitly set (for B<ctx> or in server mode) or
43 the server did not send a list of CAs (client mode).
44
45 =back
46
47 =head1 SEE ALSO
48
49 L<ssl(7)>,
50 L<SSL_CTX_set_client_CA_list(3)>,
51 L<SSL_CTX_set_client_cert_cb(3)>
52
53 =head1 COPYRIGHT
54
55 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
56
57 Licensed under the OpenSSL license (the "License").  You may not use
58 this file except in compliance with the License.  You can obtain a copy
59 in the file LICENSE in the source distribution or at
60 L<https://www.openssl.org/source/license.html>.
61
62 =cut