diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/X509V3_get_d2i.3 | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/X509V3_get_d2i.3 b/src/lib/libcrypto/man/X509V3_get_d2i.3 index 9ba4572a6b..b28b84089c 100644 --- a/src/lib/libcrypto/man/X509V3_get_d2i.3 +++ b/src/lib/libcrypto/man/X509V3_get_d2i.3 | |||
@@ -1,8 +1,9 @@ | |||
1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.6 2017/07/05 11:43:09 schwarze Exp $ | 1 | .\" $OpenBSD: X509V3_get_d2i.3,v 1.7 2018/02/19 07:59:23 schwarze Exp $ |
2 | .\" OpenSSL 047dd81e Jul 4 23:03:17 2014 +0100 | 2 | .\" full merge up to: OpenSSL 047dd81e Jul 4 23:03:17 2014 +0100 |
3 | .\" selective merge up to: OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 | ||
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) 2014, 2016 The OpenSSL Project. All rights reserved. | 6 | .\" Copyright (c) 2014, 2015, 2016 The OpenSSL Project. All rights reserved. |
6 | .\" | 7 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 8 | .\" Redistribution and use in source and binary forms, with or without |
8 | .\" modification, are permitted provided that the following conditions | 9 | .\" modification, are permitted provided that the following conditions |
@@ -48,7 +49,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 51 | .\" |
51 | .Dd $Mdocdate: July 5 2017 $ | 52 | .Dd $Mdocdate: February 19 2018 $ |
52 | .Dt X509V3_GET_D2I 3 | 53 | .Dt X509V3_GET_D2I 3 |
53 | .Os | 54 | .Os |
54 | .Sh NAME | 55 | .Sh NAME |
@@ -61,7 +62,8 @@ | |||
61 | .Nm X509_CRL_get_ext_d2i , | 62 | .Nm X509_CRL_get_ext_d2i , |
62 | .Nm X509_CRL_add1_ext_i2d , | 63 | .Nm X509_CRL_add1_ext_i2d , |
63 | .Nm X509_REVOKED_get_ext_d2i , | 64 | .Nm X509_REVOKED_get_ext_d2i , |
64 | .Nm X509_REVOKED_add1_ext_i2d | 65 | .Nm X509_REVOKED_add1_ext_i2d , |
66 | .Nm X509_get0_extensions | ||
65 | .Nd X509 extension decode and encode functions | 67 | .Nd X509 extension decode and encode functions |
66 | .Sh SYNOPSIS | 68 | .Sh SYNOPSIS |
67 | .In openssl/x509v3.h | 69 | .In openssl/x509v3.h |
@@ -135,6 +137,10 @@ | |||
135 | .Fa "int crit" | 137 | .Fa "int crit" |
136 | .Fa "unsigned long flags" | 138 | .Fa "unsigned long flags" |
137 | .Fc | 139 | .Fc |
140 | .Ft const STACK_OF(X509_EXTENSION) | ||
141 | .Fo X509_get0_extensions | ||
142 | .Fa "const X509 *x" | ||
143 | .Fc | ||
138 | .Sh DESCRIPTION | 144 | .Sh DESCRIPTION |
139 | .Fn X509V3_get_d2i | 145 | .Fn X509V3_get_d2i |
140 | looks for an extension with OID | 146 | looks for an extension with OID |
@@ -228,6 +234,9 @@ structure | |||
228 | and | 234 | and |
229 | .Fn X509V3_add1_i2d 3 . | 235 | .Fn X509V3_add1_i2d 3 . |
230 | .Pp | 236 | .Pp |
237 | .Fn X509_get0_extensions | ||
238 | returns a stack of all the extensions of a certificate. | ||
239 | .Pp | ||
231 | In almost all cases an extension can occur at most once and multiple | 240 | In almost all cases an extension can occur at most once and multiple |
232 | occurrences is an error. | 241 | occurrences is an error. |
233 | Therefore the | 242 | Therefore the |
@@ -363,6 +372,9 @@ if an error occurs. | |||
363 | returns 1 if the operation is successful, 0 if it fails due to a | 372 | returns 1 if the operation is successful, 0 if it fails due to a |
364 | non-fatal error (extension not found, already exists, cannot be encoded), | 373 | non-fatal error (extension not found, already exists, cannot be encoded), |
365 | or -1 due to a fatal error such as a memory allocation failure. | 374 | or -1 due to a fatal error such as a memory allocation failure. |
375 | .Pp | ||
376 | .Fn X509_get0_extensions | ||
377 | returns a stack of extensions. | ||
366 | .Sh SEE ALSO | 378 | .Sh SEE ALSO |
367 | .Xr d2i_X509 3 , | 379 | .Xr d2i_X509 3 , |
368 | .Xr d2i_X509_EXTENSION 3 , | 380 | .Xr d2i_X509_EXTENSION 3 , |