From a8451e4ce9acd74a5da3bf7e569a617a26cf3a25 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Fri, 15 Mar 2019 13:33:30 +0000 Subject: 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. --- src/lib/libcrypto/man/X509v3_get_ext_by_NID.3 | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'src') 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 @@ -.\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.9 2018/05/19 22:37:10 schwarze Exp $ -.\" OpenSSL c952780c Jun 21 07:03:34 2016 -0400 +.\" $OpenBSD: X509v3_get_ext_by_NID.3,v 1.10 2019/03/15 13:33:30 schwarze Exp $ +.\" full merge up to: OpenSSL fd38836b Jun 20 15:25:43 2018 +0100 .\" .\" This file was written by Dr. Stephen Henson . .\" Copyright (c) 2015 The OpenSSL Project. All rights reserved. @@ -48,7 +48,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 19 2018 $ +.Dd $Mdocdate: March 15 2019 $ .Dt X509V3_GET_EXT_BY_NID 3 .Os .Sh NAME @@ -161,28 +161,28 @@ .Fc .Ft int .Fo X509_CRL_get_ext_count -.Fa "X509_CRL *x" +.Fa "const X509_CRL *x" .Fc .Ft X509_EXTENSION * .Fo X509_CRL_get_ext -.Fa "X509_CRL *x" +.Fa "const X509_CRL *x" .Fa "int loc" .Fc .Ft int .Fo X509_CRL_get_ext_by_NID -.Fa "X509_CRL *x" +.Fa "const X509_CRL *x" .Fa "int nid" .Fa "int lastpos" .Fc .Ft int .Fo X509_CRL_get_ext_by_OBJ -.Fa "X509_CRL *x" -.Fa "ASN1_OBJECT *obj" +.Fa "const X509_CRL *x" +.Fa "const ASN1_OBJECT *obj" .Fa "int lastpos" .Fc .Ft int .Fo X509_CRL_get_ext_by_critical -.Fa "X509_CRL *x" +.Fa "const X509_CRL *x" .Fa "int crit" .Fa "int lastpos" .Fc @@ -364,9 +364,10 @@ If it is set to 0, the initial extension will not be checked. .Fn X509v3_get_ext_count returns the extension count. .Pp -.Fn X509v3_get_ext +.Fn X509v3_get_ext , +.Fn X509v3_delete_ext , and -.Fn X509v3_delete_ext +.Fn X509_delete_ext return an .Vt X509_EXTENSION pointer or @@ -383,6 +384,9 @@ return the extension index or -1 if an error occurs. returns a stack of extensions or .Dv NULL on error. +.Pp +.Fn X509_add_ext +returns 1 on success or 0 on error. .Sh SEE ALSO .Xr X509_EXTENSION_new 3 , .Xr X509_REVOKED_new 3 , -- cgit v1.2.3-55-g6feb