summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit78332233d01faa45e0bb0b1583d47cb5ad1ddc19 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_CTX_add_extra_chain_cert.3
parent4e737c824fafe5f105e5f4849a9db2569b5d53d8 (diff)
downloadopenbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.tar.gz
openbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.tar.bz2
openbsd-78332233d01faa45e0bb0b1583d47cb5ad1ddc19.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
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.342
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
13adds the certificate
14.Fa x509
15to the certificate chain presented together with the certificate.
16Several certificates can be added one after the other.
17.Sh NOTES
18When constructing the certificate chain, the chain will be formed from
19these certificates explicitly specified.
20If no chain is specified, the library will try to complete the chain from the
21available CA certificates in the trusted CA storage, see
22.Xr SSL_CTX_load_verify_locations 3 .
23.Pp
24The x509 certificate provided to
25.Fn SSL_CTX_add_extra_chain_cert
26will be freed by the library when the
27.Vt SSL_CTX
28is destroyed.
29An application
30.Em should not
31free the
32.Fa x509
33object.
34.Sh RETURN VALUES
35.Fn SSL_CTX_add_extra_chain_cert
36returns 1 on success.
37Check 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