diff options
Diffstat (limited to 'src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3')
-rw-r--r-- | src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3 | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3 b/src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3 index 1feee4265c..a6d869b335 100644 --- a/src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3 +++ b/src/lib/libssl/man/SSL_CTX_add_extra_chain_cert.3 | |||
@@ -1,5 +1,5 @@ | |||
1 | .\" $OpenBSD: SSL_CTX_add_extra_chain_cert.3,v 1.5 2018/03/23 05:50:30 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_CTX_add_extra_chain_cert.3,v 1.6 2019/04/05 18:29:43 schwarze Exp $ |
2 | .\" OpenSSL f0d6ee6be Feb 15 07:41:42 2002 +0000 | 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org> and | 4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org> and |
5 | .\" Dr. Stephen Henson <steve@openssl.org>. | 5 | .\" Dr. Stephen Henson <steve@openssl.org>. |
@@ -50,18 +50,21 @@ | |||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
52 | .\" | 52 | .\" |
53 | .Dd $Mdocdate: March 23 2018 $ | 53 | .Dd $Mdocdate: April 5 2019 $ |
54 | .Dt SSL_CTX_ADD_EXTRA_CHAIN_CERT 3 | 54 | .Dt SSL_CTX_ADD_EXTRA_CHAIN_CERT 3 |
55 | .Os | 55 | .Os |
56 | .Sh NAME | 56 | .Sh NAME |
57 | .Nm SSL_CTX_add_extra_chain_cert , | 57 | .Nm SSL_CTX_add_extra_chain_cert , |
58 | .Nm SSL_CTX_get_extra_chain_certs , | ||
58 | .Nm SSL_CTX_clear_extra_chain_certs | 59 | .Nm SSL_CTX_clear_extra_chain_certs |
59 | .Nd add or clear extra chain certificates | 60 | .Nd add, retrieve, and clear extra chain certificates |
60 | .Sh SYNOPSIS | 61 | .Sh SYNOPSIS |
61 | .In openssl/ssl.h | 62 | .In openssl/ssl.h |
62 | .Ft long | 63 | .Ft long |
63 | .Fn SSL_CTX_add_extra_chain_cert "SSL_CTX *ctx" "X509 *x509" | 64 | .Fn SSL_CTX_add_extra_chain_cert "SSL_CTX *ctx" "X509 *x509" |
64 | .Ft long | 65 | .Ft long |
66 | .Fn SSL_CTX_get_extra_chain_certs "SSL_CTX *ctx" "STACK_OF(X509) **certs" | ||
67 | .Ft long | ||
65 | .Fn SSL_CTX_clear_extra_chain_certs "SSL_CTX *ctx" | 68 | .Fn SSL_CTX_clear_extra_chain_certs "SSL_CTX *ctx" |
66 | .Sh DESCRIPTION | 69 | .Sh DESCRIPTION |
67 | .Fn SSL_CTX_add_extra_chain_cert | 70 | .Fn SSL_CTX_add_extra_chain_cert |
@@ -71,6 +74,11 @@ to the extra chain certificates associated with | |||
71 | .Fa ctx . | 74 | .Fa ctx . |
72 | Several certificates can be added one after another. | 75 | Several certificates can be added one after another. |
73 | .Pp | 76 | .Pp |
77 | .Fn SSL_CTX_get_extra_chain_certs | ||
78 | retrieves an internal pointer to the stack of extra chain certificates | ||
79 | associated with | ||
80 | .Fa ctx . | ||
81 | .Pp | ||
74 | .Fn SSL_CTX_clear_extra_chain_certs | 82 | .Fn SSL_CTX_clear_extra_chain_certs |
75 | clears all extra chain certificates associated with | 83 | clears all extra chain certificates associated with |
76 | .Fa ctx . | 84 | .Fa ctx . |
@@ -91,14 +99,16 @@ will be freed by the library when the | |||
91 | is destroyed. | 99 | is destroyed. |
92 | An application should not free the | 100 | An application should not free the |
93 | .Fa x509 | 101 | .Fa x509 |
94 | object. | 102 | object, nor the |
103 | .Pf * Fa certs | ||
104 | object retrieved by | ||
105 | .Fn SSL_CTX_get_extra_chain_certs . | ||
95 | .Sh RETURN VALUES | 106 | .Sh RETURN VALUES |
96 | .Fn SSL_CTX_add_extra_chain_cert | 107 | These functions return 1 on success or 0 for failure. |
97 | and | ||
98 | .Fn SSL_CTX_clear_extra_chain_certs | ||
99 | return 1 on success or 0 for failure. | ||
100 | Check out the error stack to find out the reason for failure. | 108 | Check out the error stack to find out the reason for failure. |
101 | .Sh SEE ALSO | 109 | .Sh SEE ALSO |
110 | .Xr ssl 3 , | ||
111 | .Xr SSL_CTX_add1_chain_cert 3 , | ||
102 | .Xr SSL_CTX_ctrl 3 , | 112 | .Xr SSL_CTX_ctrl 3 , |
103 | .Xr SSL_CTX_load_verify_locations 3 , | 113 | .Xr SSL_CTX_load_verify_locations 3 , |
104 | .Xr SSL_CTX_set_client_cert_cb 3 , | 114 | .Xr SSL_CTX_set_client_cert_cb 3 , |
@@ -108,15 +118,26 @@ Check out the error stack to find out the reason for failure. | |||
108 | first appeared in SSLeay 0.9.1 and has been available since | 118 | first appeared in SSLeay 0.9.1 and has been available since |
109 | .Ox 2.6 . | 119 | .Ox 2.6 . |
110 | .Pp | 120 | .Pp |
121 | .Fn SSL_CTX_get_extra_chain_certs | ||
122 | and | ||
111 | .Fn SSL_CTX_clear_extra_chain_certs | 123 | .Fn SSL_CTX_clear_extra_chain_certs |
112 | first appeared in OpenSSL 1.0.1 and has been available since | 124 | first appeared in OpenSSL 1.0.1 and have been available since |
113 | .Ox 5.3 . | 125 | .Ox 5.3 . |
114 | .Sh CAVEATS | 126 | .Sh CAVEATS |
127 | Certificates added with | ||
128 | .Fn SSL_CTX_add_extra_chain_cert | ||
129 | are ignored when certificates are also available that have been | ||
130 | added using the functions documented in | ||
131 | .Xr SSL_CTX_set1_chain 3 . | ||
132 | .Pp | ||
115 | Only one set of extra chain certificates can be specified per | 133 | Only one set of extra chain certificates can be specified per |
116 | .Vt SSL_CTX | 134 | .Vt SSL_CTX |
117 | structure. | 135 | structure using |
136 | .Fn SSL_CTX_add_extra_chain_cert . | ||
118 | Different chains for different certificates (for example if both | 137 | Different chains for different certificates (for example if both |
119 | RSA and DSA certificates are specified by the same server) or | 138 | RSA and DSA certificates are specified by the same server) or |
120 | different SSL structures with the same parent | 139 | different SSL structures with the same parent |
121 | .Vt SSL_CTX | 140 | .Vt SSL_CTX |
122 | cannot be specified using this function. | 141 | require using the functions documented in |
142 | .Xr SSL_CTX_set1_chain 3 | ||
143 | instead. | ||