SSL_CTX_add_extra_chain_cert.pod revision 100928
1160994Ssam=pod
2160994Ssam
3160994Ssam=head1 NAME
4160994Ssam
5160994SsamSSL_CTX_add_extra_chain_cert - add certificate to chain
6160994Ssam
7160994Ssam=head1 SYNOPSIS
8160994Ssam
9160994Ssam #include <openssl/ssl.h>
10160994Ssam
11160994Ssam long SSL_CTX_add_extra_chain_cert(SSL_CTX ctx, X509 *x509)
12160994Ssam
13160994Ssam=head1 DESCRIPTION
14160994Ssam
15160994SsamSSL_CTX_add_extra_chain_cert() adds the certificate B<x509> to the certificate
16160994Ssamchain presented together with the certificate. Several certificates
17160994Ssamcan be added one after the other.
18160994Ssam
19160994Ssam=head1 NOTES
20160994Ssam
21160994SsamWhen constructing the certificate chain, the chain will be formed from
22160994Ssamthese certificates explicitly specified. If no chain is specified,
23160994Ssamthe library will try to complete the chain from the available CA
24160994Ssamcertificates in the trusted CA storage, see
25160994SsamL<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>.
26160994Ssam
27160994Ssam=head1 RETURN VALUES
28160994Ssam
29160994SsamSSL_CTX_add_extra_chain_cert() returns 1 on success. Check out the
30160994Ssamerror stack to find out the reason for failure otherwise.
31160994Ssam
32160994Ssam=head1 SEE ALSO
33160994Ssam
34160994SsamL<ssl(3)|ssl(3)>,
35160994SsamL<SSL_CTX_use_certificate(3)|SSL_CTX_use_certificate(3)>,
36160994SsamL<SSL_CTX_set_client_cert_cb(3)|SSL_CTX_set_client_cert_cb(3)>,
37160994SsamL<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>
38160994Ssam
39160994Ssam=cut
40160994Ssam