1=pod 2 3=head1 NAME 4 5SSL_CTX_add_extra_chain_cert - add certificate to chain 6 7=head1 SYNOPSIS 8 9 #include <openssl/ssl.h> 10 11 long SSL_CTX_add_extra_chain_cert(SSL_CTX ctx, X509 *x509) 12 13=head1 DESCRIPTION 14 15SSL_CTX_add_extra_chain_cert() adds the certificate B<x509> to the certificate 16chain presented together with the certificate. Several certificates 17can be added one after the other. 18 19=head1 NOTES 20 21When constructing the certificate chain, the chain will be formed from 22these certificates explicitly specified. If no chain is specified, 23the library will try to complete the chain from the available CA 24certificates in the trusted CA storage, see 25L<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)>. 26 27=head1 RETURN VALUES 28 29SSL_CTX_add_extra_chain_cert() returns 1 on success. Check out the 30error stack to find out the reason for failure otherwise. 31 32=head1 SEE ALSO 33 34L<ssl(3)|ssl(3)>, 35L<SSL_CTX_use_certificate(3)|SSL_CTX_use_certificate(3)>, 36L<SSL_CTX_set_client_cert_cb(3)|SSL_CTX_set_client_cert_cb(3)>, 37L<SSL_CTX_load_verify_locations(3)|SSL_CTX_load_verify_locations(3)> 38 39=cut 40