summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-03-15 13:33:30 +0000
committerschwarze <schwarze@openbsd.org>2019-03-15 13:33:30 +0000
commit3dbefff2b88b35dbbe0643ac5b56a5587541a16f (patch)
treea3640d139634689fa6891618b6ab3b85fa63affd
parentOpenSSL documents the macro OPENSSL_VERSION_TEXT since Sep 24, 2018; (diff)
downloadwireguard-openbsd-3dbefff2b88b35dbbe0643ac5b56a5587541a16f.tar.xz
wireguard-openbsd-3dbefff2b88b35dbbe0643ac5b56a5587541a16f.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.
-rw-r--r--lib/libcrypto/man/X509v3_get_ext_by_NID.326
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/libcrypto/man/X509v3_get_ext_by_NID.3 b/lib/libcrypto/man/X509v3_get_ext_by_NID.3
index d823c0b4efc..d82a29730ee 100644
--- a/lib/libcrypto/man/X509v3_get_ext_by_NID.3
+++ b/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 <steve@openssl.org>.
.\" 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 ,