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