diff options
Diffstat (limited to 'src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3')
| -rw-r--r-- | src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3 | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3 b/src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3 new file mode 100644 index 0000000000..2664c67a5a --- /dev/null +++ b/src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3 | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | .Dd $Mdocdate: October 12 2014 $ | ||
| 2 | .Dt SSL_CTX_ADD_EXTRA_CHAIN_CERT 3 | ||
| 3 | .Os | ||
| 4 | .Sh NAME | ||
| 5 | .Nm SSL_CTX_add_extra_chain_cert | ||
| 6 | .Nd add certificate to chain | ||
| 7 | .Sh SYNOPSIS | ||
| 8 | .In openssl/ssl.h | ||
| 9 | .Ft long | ||
| 10 | .Fn SSL_CTX_add_extra_chain_cert "SSL_CTX ctx" "X509 *x509" | ||
| 11 | .Sh DESCRIPTION | ||
| 12 | .Fn SSL_CTX_add_extra_chain_cert | ||
| 13 | adds the certificate | ||
| 14 | .Fa x509 | ||
| 15 | to the certificate chain presented together with the certificate. | ||
| 16 | Several certificates can be added one after the other. | ||
| 17 | .Sh NOTES | ||
| 18 | When constructing the certificate chain, the chain will be formed from | ||
| 19 | these certificates explicitly specified. | ||
| 20 | If no chain is specified, the library will try to complete the chain from the | ||
| 21 | available CA certificates in the trusted CA storage, see | ||
| 22 | .Xr SSL_CTX_load_verify_locations 3 . | ||
| 23 | .Pp | ||
| 24 | The x509 certificate provided to | ||
| 25 | .Fn SSL_CTX_add_extra_chain_cert | ||
| 26 | will be freed by the library when the | ||
| 27 | .Vt SSL_CTX | ||
| 28 | is destroyed. | ||
| 29 | An application | ||
| 30 | .Em should not | ||
| 31 | free the | ||
| 32 | .Fa x509 | ||
| 33 | object. | ||
| 34 | .Sh RETURN VALUES | ||
| 35 | .Fn SSL_CTX_add_extra_chain_cert | ||
| 36 | returns 1 on success. | ||
| 37 | Check out the error stack to find out the reason for failure otherwise. | ||
| 38 | .Sh SEE ALSO | ||
| 39 | .Xr ssl 3 , | ||
| 40 | .Xr SSL_CTX_load_verify_locations 3 , | ||
| 41 | .Xr SSL_CTX_set_client_cert_cb 3 , | ||
| 42 | .Xr SSL_CTX_use_certificate 3 | ||
