summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2019-03-15 13:33:30 +0000
committerschwarze <>2019-03-15 13:33:30 +0000
commita8451e4ce9acd74a5da3bf7e569a617a26cf3a25 (patch)
tree782cec344d5f477432b64c9653c137d5578d02fd /src
parenteb60b36bd1759c07e8fd17dad4710c7d2e5a7952 (diff)
downloadopenbsd-a8451e4ce9acd74a5da3bf7e569a617a26cf3a25.tar.gz
openbsd-a8451e4ce9acd74a5da3bf7e569a617a26cf3a25.tar.bz2
openbsd-a8451e4ce9acd74a5da3bf7e569a617a26cf3a25.zip
Document the return values of X509_delete_ext(3) and X509_add_ext(3).
From Viktor Dukhovni via OpenSSL commit 0df65d82 Jun 12 11:51:53 2018 -0400 which is still under a free license because it is before the 1.1.1 branch point. While here, add several missing const qualifiers.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509v3_get_ext_by_NID.326
1 files changed, 15 insertions, 11 deletions
diff --git a/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 b/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3
index d823c0b4ef..d82a29730e 100644
--- a/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3
+++ b/src/lib/libcrypto/man/X509v3_get_ext_by_NID.3
@@ -1,5 +1,5 @@
1.\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.9 2018/05/19 22:37:10 schwarze Exp $ 1.\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.10 2019/03/15 13:33:30 schwarze Exp $
2.\" OpenSSL c952780c Jun 21 07:03:34 2016 -0400 2.\" full merge up to: OpenSSL fd38836b Jun 20 15:25:43 2018 +0100
3.\" 3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>. 4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2015 The OpenSSL Project. All rights reserved. 5.\" Copyright (c) 2015 The OpenSSL Project. All rights reserved.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: May 19 2018 $ 51.Dd $Mdocdate: March 15 2019 $
52.Dt X509V3_GET_EXT_BY_NID 3 52.Dt X509V3_GET_EXT_BY_NID 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -161,28 +161,28 @@
161.Fc 161.Fc
162.Ft int 162.Ft int
163.Fo X509_CRL_get_ext_count 163.Fo X509_CRL_get_ext_count
164.Fa "X509_CRL *x" 164.Fa "const X509_CRL *x"
165.Fc 165.Fc
166.Ft X509_EXTENSION * 166.Ft X509_EXTENSION *
167.Fo X509_CRL_get_ext 167.Fo X509_CRL_get_ext
168.Fa "X509_CRL *x" 168.Fa "const X509_CRL *x"
169.Fa "int loc" 169.Fa "int loc"
170.Fc 170.Fc
171.Ft int 171.Ft int
172.Fo X509_CRL_get_ext_by_NID 172.Fo X509_CRL_get_ext_by_NID
173.Fa "X509_CRL *x" 173.Fa "const X509_CRL *x"
174.Fa "int nid" 174.Fa "int nid"
175.Fa "int lastpos" 175.Fa "int lastpos"
176.Fc 176.Fc
177.Ft int 177.Ft int
178.Fo X509_CRL_get_ext_by_OBJ 178.Fo X509_CRL_get_ext_by_OBJ
179.Fa "X509_CRL *x" 179.Fa "const X509_CRL *x"
180.Fa "ASN1_OBJECT *obj" 180.Fa "const ASN1_OBJECT *obj"
181.Fa "int lastpos" 181.Fa "int lastpos"
182.Fc 182.Fc
183.Ft int 183.Ft int
184.Fo X509_CRL_get_ext_by_critical 184.Fo X509_CRL_get_ext_by_critical
185.Fa "X509_CRL *x" 185.Fa "const X509_CRL *x"
186.Fa "int crit" 186.Fa "int crit"
187.Fa "int lastpos" 187.Fa "int lastpos"
188.Fc 188.Fc
@@ -364,9 +364,10 @@ If it is set to 0, the initial extension will not be checked.
364.Fn X509v3_get_ext_count 364.Fn X509v3_get_ext_count
365returns the extension count. 365returns the extension count.
366.Pp 366.Pp
367.Fn X509v3_get_ext 367.Fn X509v3_get_ext ,
368.Fn X509v3_delete_ext ,
368and 369and
369.Fn X509v3_delete_ext 370.Fn X509_delete_ext
370return an 371return an
371.Vt X509_EXTENSION 372.Vt X509_EXTENSION
372pointer or 373pointer or
@@ -383,6 +384,9 @@ return the extension index or -1 if an error occurs.
383returns a stack of extensions or 384returns a stack of extensions or
384.Dv NULL 385.Dv NULL
385on error. 386on error.
387.Pp
388.Fn X509_add_ext
389returns 1 on success or 0 on error.
386.Sh SEE ALSO 390.Sh SEE ALSO
387.Xr X509_EXTENSION_new 3 , 391.Xr X509_EXTENSION_new 3 ,
388.Xr X509_REVOKED_new 3 , 392.Xr X509_REVOKED_new 3 ,