diff options
Diffstat (limited to 'src/lib/libcrypto/man')
| -rw-r--r-- | src/lib/libcrypto/man/X509_REQ_new.3 | 30 |
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 , |
| 56 | setting the reference count of the copy to 1. | 59 | setting the reference count of the copy to 1. |
| 57 | .Pp | 60 | .Pp |
| 61 | .Fn X509_to_X509_REQ | ||
| 62 | allocates a new certification request object, copies | ||
| 63 | the subject name and the public key into it from the certificate | ||
| 64 | .Fa x , | ||
| 65 | and sets the version to zero. | ||
| 66 | Unless | ||
| 67 | .Fa pkey | ||
| 68 | is | ||
| 69 | .Dv NULL , | ||
| 70 | it also signs the request with | ||
| 71 | .Xr X509_REQ_sign 3 | ||
| 72 | using | ||
| 73 | .Fa pkey | ||
| 74 | and | ||
| 75 | .Fa md . | ||
| 76 | .Pp | ||
| 58 | .Fn X509_REQ_free | 77 | .Fn X509_REQ_free |
| 59 | frees | 78 | frees |
| 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 , | ||
| 88 | and | 108 | and |
| 89 | .Fn X509_REQ_INFO_new | 109 | .Fn X509_REQ_INFO_new |
| 90 | return the new | 110 | return 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 , |
| 116 | and | 136 | and |
| 117 | .Fn X509_REQ_INFO_free | 137 | .Fn X509_REQ_INFO_free |
| 118 | first appeared in SSLeay 0.4.4 and | 138 | first appeared in SSLeay 0.4.4, |
| 119 | .Fn X509_REQ_dup | 139 | .Fn X509_REQ_dup |
| 120 | in SSLeay 0.5.1. | 140 | in SSLeay 0.5.1, and |
| 141 | .Fn X509_to_X509_REQ | ||
| 142 | in SSLeay 0.6.0. | ||
| 121 | These functions have been available since | 143 | These functions have been available since |
| 122 | .Ox 2.4 . | 144 | .Ox 2.4 . |
