summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2021-10-28 13:23:19 +0000
committerschwarze <>2021-10-28 13:23:19 +0000
commit101ff688b32ef87a7b79df9dedbd70e565730368 (patch)
treee8577dc439509ddb8c550540a31ad6cf1cd9b6d2 /src/lib
parent353ece873e83791be3cdf988795d8b9388c73396 (diff)
downloadopenbsd-101ff688b32ef87a7b79df9dedbd70e565730368.tar.gz
openbsd-101ff688b32ef87a7b79df9dedbd70e565730368.tar.bz2
openbsd-101ff688b32ef87a7b79df9dedbd70e565730368.zip
document X509_to_X509_REQ(3)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_REQ_new.330
1 files changed, 26 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/X509_REQ_new.3 b/src/lib/libcrypto/man/X509_REQ_new.3
index 7396b3610c..be408b5edf 100644
--- a/src/lib/libcrypto/man/X509_REQ_new.3
+++ b/src/lib/libcrypto/man/X509_REQ_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_REQ_new.3,v 1.9 2021/10/27 14:54:07 schwarze Exp $ 1.\" $OpenBSD: X509_REQ_new.3,v 1.10 2021/10/28 13:23:19 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,12 +14,13 @@
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: October 27 2021 $ 17.Dd $Mdocdate: October 28 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_dup ,
23.Nm X509_to_X509_REQ ,
23.Nm X509_REQ_free , 24.Nm X509_REQ_free ,
24.Nm X509_REQ_INFO_new , 25.Nm X509_REQ_INFO_new ,
25.Nm X509_REQ_INFO_free 26.Nm X509_REQ_INFO_free
@@ -30,6 +31,8 @@
30.Fn X509_REQ_new void 31.Fn X509_REQ_new void
31.Ft X509_REQ * 32.Ft X509_REQ *
32.Fn X509_REQ_dup "X509_REQ *req" 33.Fn X509_REQ_dup "X509_REQ *req"
34.Ft X509_REQ *
35.Fn X509_to_X509_REQ "X509 *x" "EVP_PKEY *pkey" "const EVP_MD *md"
33.Ft void 36.Ft void
34.Fn X509_REQ_free "X509_REQ *req" 37.Fn X509_REQ_free "X509_REQ *req"
35.Ft X509_REQ_INFO * 38.Ft X509_REQ_INFO *
@@ -55,6 +58,22 @@ using
55.Xr ASN1_item_dup 3 , 58.Xr ASN1_item_dup 3 ,
56setting the reference count of the copy to 1. 59setting the reference count of the copy to 1.
57.Pp 60.Pp
61.Fn X509_to_X509_REQ
62allocates a new certification request object, copies
63the subject name and the public key into it from the certificate
64.Fa x ,
65and sets the version to zero.
66Unless
67.Fa pkey
68is
69.Dv NULL ,
70it also signs the request with
71.Xr X509_REQ_sign 3
72using
73.Fa pkey
74and
75.Fa md .
76.Pp
58.Fn X509_REQ_free 77.Fn X509_REQ_free
59frees 78frees
60.Fa req . 79.Fa req .
@@ -85,6 +104,7 @@ pointer, no action occurs.
85.Sh RETURN VALUES 104.Sh RETURN VALUES
86.Fn X509_REQ_new , 105.Fn X509_REQ_new ,
87.Fn X509_REQ_dup , 106.Fn X509_REQ_dup ,
107.Fn X509_to_X509_REQ ,
88and 108and
89.Fn X509_REQ_INFO_new 109.Fn X509_REQ_INFO_new
90return the new 110return the new
@@ -115,8 +135,10 @@ RFC 2986: PKCS #10: Certification Request Syntax Specification
115.Fn X509_REQ_INFO_new , 135.Fn X509_REQ_INFO_new ,
116and 136and
117.Fn X509_REQ_INFO_free 137.Fn X509_REQ_INFO_free
118first appeared in SSLeay 0.4.4 and 138first appeared in SSLeay 0.4.4,
119.Fn X509_REQ_dup 139.Fn X509_REQ_dup
120in SSLeay 0.5.1. 140in SSLeay 0.5.1, and
141.Fn X509_to_X509_REQ
142in SSLeay 0.6.0.
121These functions have been available since 143These functions have been available since
122.Ox 2.4 . 144.Ox 2.4 .