diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 | 17 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_new.3 | 59 |
2 files changed, 57 insertions, 19 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 b/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 index 3a871ef307..5caf4cefe4 100644 --- a/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 +++ b/src/lib/libcrypto/man/X509_STORE_CTX_get_error.3 | |||
@@ -1,5 +1,6 @@ | |||
1 | .\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.5 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_get_error.3,v 1.6 2018/02/15 11:09:34 schwarze Exp $ |
2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 | 2 | .\" full merge up to: OpenSSL f0e0fd51 Apr 14 23:59:26 2016 -0400 |
3 | .\" selective merge up to: OpenSSL 2947af32 Nov 19 00:10:05 2016 +0100 | ||
3 | .\" | 4 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
5 | .\" Copyright (c) 2009, 2013, 2015, 2016 The OpenSSL Project. | 6 | .\" Copyright (c) 2009, 2013, 2015, 2016 The OpenSSL Project. |
@@ -49,7 +50,7 @@ | |||
49 | .\" 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 |
50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
51 | .\" | 52 | .\" |
52 | .Dd $Mdocdate: December 25 2016 $ | 53 | .Dd $Mdocdate: February 15 2018 $ |
53 | .Dt X509_STORE_CTX_GET_ERROR 3 | 54 | .Dt X509_STORE_CTX_GET_ERROR 3 |
54 | .Os | 55 | .Os |
55 | .Sh NAME | 56 | .Sh NAME |
@@ -57,6 +58,7 @@ | |||
57 | .Nm X509_STORE_CTX_set_error , | 58 | .Nm X509_STORE_CTX_set_error , |
58 | .Nm X509_STORE_CTX_get_error_depth , | 59 | .Nm X509_STORE_CTX_get_error_depth , |
59 | .Nm X509_STORE_CTX_get_current_cert , | 60 | .Nm X509_STORE_CTX_get_current_cert , |
61 | .Nm X509_STORE_CTX_get0_cert , | ||
60 | .Nm X509_STORE_CTX_get1_chain , | 62 | .Nm X509_STORE_CTX_get1_chain , |
61 | .Nm X509_verify_cert_error_string | 63 | .Nm X509_verify_cert_error_string |
62 | .Nd get or set certificate verification status information | 64 | .Nd get or set certificate verification status information |
@@ -79,6 +81,10 @@ | |||
79 | .Fo X509_STORE_CTX_get_current_cert | 81 | .Fo X509_STORE_CTX_get_current_cert |
80 | .Fa "X509_STORE_CTX *ctx" | 82 | .Fa "X509_STORE_CTX *ctx" |
81 | .Fc | 83 | .Fc |
84 | .Ft X509 * | ||
85 | .Fo X509_STORE_CTX_get0_cert | ||
86 | .Fa "X509_STORE_CTX *ctx" | ||
87 | .Fc | ||
82 | .Ft STACK_OF(X509) * | 88 | .Ft STACK_OF(X509) * |
83 | .Fo X509_STORE_CTX_get1_chain | 89 | .Fo X509_STORE_CTX_get1_chain |
84 | .Fa "X509_STORE_CTX *ctx" | 90 | .Fa "X509_STORE_CTX *ctx" |
@@ -172,6 +178,10 @@ returns the certificate which caused the error or | |||
172 | .Dv NULL | 178 | .Dv NULL |
173 | if no certificate is relevant to the error. | 179 | if no certificate is relevant to the error. |
174 | .Pp | 180 | .Pp |
181 | .Fn X509_STORE_CTX_get0_cert | ||
182 | retrieves an internal pointer to the certificate being verified by | ||
183 | .Fa ctx . | ||
184 | .Pp | ||
175 | .Fn X509_verify_cert_error_string | 185 | .Fn X509_verify_cert_error_string |
176 | returns a human readable error string for verification error | 186 | returns a human readable error string for verification error |
177 | .Fa n . | 187 | .Fa n . |
@@ -346,4 +356,5 @@ An application specific error. | |||
346 | This will never be returned unless explicitly set by an application. | 356 | This will never be returned unless explicitly set by an application. |
347 | .El | 357 | .El |
348 | .Sh SEE ALSO | 358 | .Sh SEE ALSO |
359 | .Xr X509_up_ref 3 , | ||
349 | .Xr X509_verify_cert 3 | 360 | .Xr X509_verify_cert 3 |
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_new.3 b/src/lib/libcrypto/man/X509_STORE_CTX_new.3 index 639eba1648..ca3c43ecbd 100644 --- a/src/lib/libcrypto/man/X509_STORE_CTX_new.3 +++ b/src/lib/libcrypto/man/X509_STORE_CTX_new.3 | |||
@@ -1,8 +1,10 @@ | |||
1 | .\" $OpenBSD: X509_STORE_CTX_new.3,v 1.6 2018/02/14 02:05:55 schwarze Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_new.3,v 1.7 2018/02/15 11:09:34 schwarze Exp $ |
2 | .\" OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 | 2 | .\" full merge up to: OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 |
3 | .\" selective merge up to: OpenSSL 7643a172 Apr 21 13:35:51 2017 +0200 | ||
3 | .\" | 4 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 5 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org> |
5 | .\" Copyright (c) 2009, 2015 The OpenSSL Project. All rights reserved. | 6 | .\" and Rich Salz <rsalz@openssl.org>. |
7 | .\" Copyright (c) 2009, 2015, 2016 The OpenSSL Project. All rights reserved. | ||
6 | .\" | 8 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 9 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 10 | .\" modification, are permitted provided that the following conditions |
@@ -48,7 +50,7 @@ | |||
48 | .\" 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 |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 52 | .\" |
51 | .Dd $Mdocdate: February 14 2018 $ | 53 | .Dd $Mdocdate: February 15 2018 $ |
52 | .Dt X509_STORE_CTX_NEW 3 | 54 | .Dt X509_STORE_CTX_NEW 3 |
53 | .Os | 55 | .Os |
54 | .Sh NAME | 56 | .Sh NAME |
@@ -56,12 +58,15 @@ | |||
56 | .Nm X509_STORE_CTX_cleanup , | 58 | .Nm X509_STORE_CTX_cleanup , |
57 | .Nm X509_STORE_CTX_free , | 59 | .Nm X509_STORE_CTX_free , |
58 | .Nm X509_STORE_CTX_init , | 60 | .Nm X509_STORE_CTX_init , |
61 | .Nm X509_STORE_CTX_set0_trusted_stack , | ||
59 | .Nm X509_STORE_CTX_trusted_stack , | 62 | .Nm X509_STORE_CTX_trusted_stack , |
60 | .Nm X509_STORE_CTX_set_cert , | 63 | .Nm X509_STORE_CTX_set_cert , |
61 | .Nm X509_STORE_CTX_set_chain , | 64 | .Nm X509_STORE_CTX_set_chain , |
62 | .Nm X509_STORE_CTX_set0_crls , | 65 | .Nm X509_STORE_CTX_set0_crls , |
63 | .Nm X509_STORE_CTX_get0_param , | 66 | .Nm X509_STORE_CTX_get0_param , |
64 | .Nm X509_STORE_CTX_set0_param , | 67 | .Nm X509_STORE_CTX_set0_param , |
68 | .Nm X509_STORE_CTX_get0_untrusted , | ||
69 | .Nm X509_STORE_CTX_set0_untrusted , | ||
65 | .Nm X509_STORE_CTX_set_default | 70 | .Nm X509_STORE_CTX_set_default |
66 | .Nd X509_STORE_CTX initialisation | 71 | .Nd X509_STORE_CTX initialisation |
67 | .Sh SYNOPSIS | 72 | .Sh SYNOPSIS |
@@ -84,6 +89,11 @@ | |||
84 | .Fa "STACK_OF(X509) *chain" | 89 | .Fa "STACK_OF(X509) *chain" |
85 | .Fc | 90 | .Fc |
86 | .Ft void | 91 | .Ft void |
92 | .Fo X509_STORE_CTX_set0_trusted_stack | ||
93 | .Fa "X509_STORE_CTX *ctx" | ||
94 | .Fa "STACK_OF(X509) *sk" | ||
95 | .Fc | ||
96 | .Ft void | ||
87 | .Fo X509_STORE_CTX_trusted_stack | 97 | .Fo X509_STORE_CTX_trusted_stack |
88 | .Fa "X509_STORE_CTX *ctx" | 98 | .Fa "X509_STORE_CTX *ctx" |
89 | .Fa "STACK_OF(X509) *sk" | 99 | .Fa "STACK_OF(X509) *sk" |
@@ -117,6 +127,15 @@ | |||
117 | .Fa "X509_STORE_CTX *ctx" | 127 | .Fa "X509_STORE_CTX *ctx" |
118 | .Fa "const char *name" | 128 | .Fa "const char *name" |
119 | .Fc | 129 | .Fc |
130 | .Ft STACK_OF(X509)* | ||
131 | .Fo X509_STORE_CTX_get0_untrusted | ||
132 | .Fa "X509_STORE_CTX *ctx" | ||
133 | .Fc | ||
134 | .Ft void | ||
135 | .Fo X509_STORE_CTX_set0_untrusted | ||
136 | .Fa "X509_STORE_CTX *ctx" | ||
137 | .Fa "STACK_OF(X509) *sk" | ||
138 | .Fc | ||
120 | .Sh DESCRIPTION | 139 | .Sh DESCRIPTION |
121 | These functions initialise an | 140 | These functions initialise an |
122 | .Vt X509_STORE_CTX | 141 | .Vt X509_STORE_CTX |
@@ -166,7 +185,7 @@ and | |||
166 | parameters can be | 185 | parameters can be |
167 | .Dv NULL . | 186 | .Dv NULL . |
168 | .Pp | 187 | .Pp |
169 | .Fn X509_STORE_CTX_trusted_stack | 188 | .Fn X509_STORE_CTX_set0_trusted_stack |
170 | sets the set of trusted certificates of | 189 | sets the set of trusted certificates of |
171 | .Fa ctx | 190 | .Fa ctx |
172 | to | 191 | to |
@@ -174,6 +193,9 @@ to | |||
174 | This is an alternative way of specifying trusted certificates instead of | 193 | This is an alternative way of specifying trusted certificates instead of |
175 | using an | 194 | using an |
176 | .Vt X509_STORE . | 195 | .Vt X509_STORE . |
196 | .Fn X509_STORE_CTX_trusted_stack | ||
197 | is a deprecated alias for | ||
198 | .Fn X509_STORE_CTX_set0_trusted_stack . | ||
177 | .Pp | 199 | .Pp |
178 | .Fn X509_STORE_CTX_set_cert | 200 | .Fn X509_STORE_CTX_set_cert |
179 | sets the certificate to be verified in | 201 | sets the certificate to be verified in |
@@ -217,6 +239,18 @@ This uses the function | |||
217 | to find an appropriate set of parameters from | 239 | to find an appropriate set of parameters from |
218 | .Fa name . | 240 | .Fa name . |
219 | .Pp | 241 | .Pp |
242 | .Fn X509_STORE_CTX_get0_untrusted | ||
243 | retrieves an internal pointer | ||
244 | to the stack of untrusted certificates associated with | ||
245 | .Fa ctx . | ||
246 | .Pp | ||
247 | .Fn X509_STORE_CTX_set0_untrusted | ||
248 | sets the internal pointer | ||
249 | to the stack of untrusted certificates associated with | ||
250 | .Fa ctx | ||
251 | to | ||
252 | .Fa sk . | ||
253 | .Pp | ||
220 | The certificates and CRLs in a store are used internally and should | 254 | The certificates and CRLs in a store are used internally and should |
221 | .Sy not | 255 | .Sy not |
222 | be freed up until after the associated | 256 | be freed up until after the associated |
@@ -257,18 +291,11 @@ structure or | |||
257 | .Dv NULL | 291 | .Dv NULL |
258 | if an error occurred. | 292 | if an error occurred. |
259 | .Pp | 293 | .Pp |
260 | .Fn X509_STORE_CTX_cleanup , | ||
261 | .Fn X509_STORE_CTX_free , | ||
262 | .Fn X509_STORE_CTX_trusted_stack , | ||
263 | .Fn X509_STORE_CTX_set_cert , | ||
264 | .Fn X509_STORE_CTX_set_chain , | ||
265 | .Fn X509_STORE_CTX_set0_crls , | ||
266 | and | ||
267 | .Fn X509_STORE_CTX_set0_param | ||
268 | do not return values. | ||
269 | .Pp | ||
270 | .Fn X509_STORE_CTX_set_default | 294 | .Fn X509_STORE_CTX_set_default |
271 | returns 1 for success or 0 if an error occurred. | 295 | returns 1 for success or 0 if an error occurred. |
296 | .Pp | ||
297 | .Fn X509_STORE_CTX_get0_untrusted | ||
298 | returns an internal pointer. | ||
272 | .Sh SEE ALSO | 299 | .Sh SEE ALSO |
273 | .Xr X509_verify_cert 3 , | 300 | .Xr X509_verify_cert 3 , |
274 | .Xr X509_VERIFY_PARAM_set_flags 3 | 301 | .Xr X509_VERIFY_PARAM_set_flags 3 |