summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/man/X509_OBJECT_get0_X509.325
1 files changed, 21 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 b/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3
index 1008edc9c8..2b716d7090 100644
--- a/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3
+++ b/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.6 2018/03/27 17:35:50 schwarze Exp $ 1.\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.7 2018/04/02 01:22:03 schwarze Exp $
2.\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> 2.\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org>
3.\" 3.\"
4.\" Permission to use, copy, modify, and distribute this software for any 4.\" Permission to use, copy, modify, and distribute this software for any
@@ -13,10 +13,11 @@
13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15.\" 15.\"
16.Dd $Mdocdate: March 27 2018 $ 16.Dd $Mdocdate: April 2 2018 $
17.Dt X509_OBJECT_GET0_X509 3 17.Dt X509_OBJECT_GET0_X509 3
18.Os 18.Os
19.Sh NAME 19.Sh NAME
20.Nm X509_OBJECT_get_type ,
20.Nm X509_OBJECT_up_ref_count , 21.Nm X509_OBJECT_up_ref_count ,
21.Nm X509_OBJECT_free_contents , 22.Nm X509_OBJECT_free_contents ,
22.Nm X509_OBJECT_get0_X509 , 23.Nm X509_OBJECT_get0_X509 ,
@@ -27,6 +28,10 @@
27.Nd certificate, CRL, private key, and string wrapper for certificate stores 28.Nd certificate, CRL, private key, and string wrapper for certificate stores
28.Sh SYNOPSIS 29.Sh SYNOPSIS
29.In openssl/x509_vfy.h 30.In openssl/x509_vfy.h
31.Ft int
32.Fo X509_OBJECT_get_type
33.Fa "const X509_OBJECT *obj"
34.Fc
30.Ft void 35.Ft void
31.Fo X509_OBJECT_up_ref_count 36.Fo X509_OBJECT_up_ref_count
32.Fa "X509_OBJECT *obj" 37.Fa "X509_OBJECT *obj"
@@ -72,7 +77,8 @@ certificate revocation list object, one
72private key object, or one 77private key object, or one
73.Vt char * 78.Vt char *
74string. 79string.
75It also remembers which type of object it contains at any given time. 80The type of object stored at any given time can be inspected with
81.Fn X509_OBJECT_get_type .
76.Pp 82.Pp
77Each 83Each
78.Vt X509_STORE 84.Vt X509_STORE
@@ -145,6 +151,16 @@ otherwise, it searches for an
145.Vt X509_OBJECT 151.Vt X509_OBJECT
146with a matching type. 152with a matching type.
147.Sh RETURN VALUES 153.Sh RETURN VALUES
154.Fn X509_OBJECT_get_type
155returns
156.Dv X509_LU_X509
157if
158.Fa obj
159contains a certificate,
160.Dv X509_LU_CRL
161if it contains a certificate revocation list,
162or 0 if an error occurs.
163.Pp
148.Fn X509_OBJECT_get0_X509 164.Fn X509_OBJECT_get0_X509
149returns an internal pointer to the certificate contained in 165returns an internal pointer to the certificate contained in
150.Fa obj 166.Fa obj
@@ -229,7 +245,8 @@ and
229first appeared in OpenSSL 0.9.6 and have been available since 245first appeared in OpenSSL 0.9.6 and have been available since
230.Ox 2.9 . 246.Ox 2.9 .
231.Pp 247.Pp
232.Fn X509_OBJECT_get0_X509 248.Fn X509_OBJECT_get_type ,
249.Fn X509_OBJECT_get0_X509 ,
233and 250and
234.Fn X509_OBJECT_get0_X509_CRL 251.Fn X509_OBJECT_get0_X509_CRL
235first appeared in OpenSSL 1.1.0 and have been available since 252first appeared in OpenSSL 1.1.0 and have been available since