summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-10-26 10:50:08 +0000
committerschwarze <>2021-10-26 10:50:08 +0000
commit53b1fe7c3ba3ab4556b524551fd5e1818a9267c0 (patch)
treea114f2f483d3e06c5e30a9cae27983d7d2fe2f22 /src
parentb248a05249e04992fd8e79e4fcdcb27358d175bc (diff)
downloadopenbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.tar.gz
openbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.tar.bz2
openbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.zip
document X509_REQ_dup(3)
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/X509_REQ_new.325
1 files changed, 20 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/X509_REQ_new.3 b/src/lib/libcrypto/man/X509_REQ_new.3
index 26460048d3..76d3d35277 100644
--- a/src/lib/libcrypto/man/X509_REQ_new.3
+++ b/src/lib/libcrypto/man/X509_REQ_new.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: X509_REQ_new.3,v 1.6 2019/06/06 01:06:59 schwarze Exp $ 1.\" $OpenBSD: X509_REQ_new.3,v 1.7 2021/10/26 10:50:08 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
5.\" Permission to use, copy, modify, and distribute this software for any 5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above 6.\" purpose with or without fee is hereby granted, provided that the above
@@ -14,11 +14,12 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: June 6 2019 $ 17.Dd $Mdocdate: October 26 2021 $
18.Dt X509_REQ_NEW 3 18.Dt X509_REQ_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
21.Nm X509_REQ_new , 21.Nm X509_REQ_new ,
22.Nm X509_REQ_dup ,
22.Nm X509_REQ_free , 23.Nm X509_REQ_free ,
23.Nm X509_REQ_INFO_new , 24.Nm X509_REQ_INFO_new ,
24.Nm X509_REQ_INFO_free 25.Nm X509_REQ_INFO_free
@@ -27,6 +28,8 @@
27.In openssl/x509.h 28.In openssl/x509.h
28.Ft X509_REQ * 29.Ft X509_REQ *
29.Fn X509_REQ_new void 30.Fn X509_REQ_new void
31.Ft X509_REQ *
32.Fn X509_REQ_dup "X509_REQ *req"
30.Ft void 33.Ft void
31.Fn X509_REQ_free "X509_REQ *req" 34.Fn X509_REQ_free "X509_REQ *req"
32.Ft X509_REQ_INFO * 35.Ft X509_REQ_INFO *
@@ -44,6 +47,14 @@ It can hold a pointer to an
44.Vt X509_REQ_INFO 47.Vt X509_REQ_INFO
45object discussed below together with a cryptographic signature and 48object discussed below together with a cryptographic signature and
46information about the signature algorithm used. 49information about the signature algorithm used.
50.Pp
51.Fn X509_REQ_dup
52creates a deep copy of
53.Fa req
54using
55.Xr ASN1_item_dup 3 ,
56setting the reference count of the copy to 1.
57.Pp
47.Fn X509_REQ_free 58.Fn X509_REQ_free
48frees 59frees
49.Fa req . 60.Fa req .
@@ -72,7 +83,8 @@ is a
72.Dv NULL 83.Dv NULL
73pointer, no action occurs. 84pointer, no action occurs.
74.Sh RETURN VALUES 85.Sh RETURN VALUES
75.Fn X509_REQ_new 86.Fn X509_REQ_new ,
87.Fn X509_REQ_dup ,
76and 88and
77.Fn X509_REQ_INFO_new 89.Fn X509_REQ_INFO_new
78return the new 90return the new
@@ -101,5 +113,8 @@ RFC 2986: PKCS #10: Certification Request Syntax Specification
101.Fn X509_REQ_INFO_new , 113.Fn X509_REQ_INFO_new ,
102and 114and
103.Fn X509_REQ_INFO_free 115.Fn X509_REQ_INFO_free
104first appeared in SSLeay 0.4.4 and have been available since 116first appeared in SSLeay 0.4.4 and
117.Fn X509_REQ_dup
118in SSLeay 0.5.1.
119These functions have been available since
105.Ox 2.4 . 120.Ox 2.4 .