diff options
author | schwarze <> | 2021-10-26 10:50:08 +0000 |
---|---|---|
committer | schwarze <> | 2021-10-26 10:50:08 +0000 |
commit | 53b1fe7c3ba3ab4556b524551fd5e1818a9267c0 (patch) | |
tree | a114f2f483d3e06c5e30a9cae27983d7d2fe2f22 | |
parent | b248a05249e04992fd8e79e4fcdcb27358d175bc (diff) | |
download | openbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.tar.gz openbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.tar.bz2 openbsd-53b1fe7c3ba3ab4556b524551fd5e1818a9267c0.zip |
document X509_REQ_dup(3)
-rw-r--r-- | src/lib/libcrypto/man/X509_REQ_new.3 | 25 |
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 |
45 | object discussed below together with a cryptographic signature and | 48 | object discussed below together with a cryptographic signature and |
46 | information about the signature algorithm used. | 49 | information about the signature algorithm used. |
50 | .Pp | ||
51 | .Fn X509_REQ_dup | ||
52 | creates a deep copy of | ||
53 | .Fa req | ||
54 | using | ||
55 | .Xr ASN1_item_dup 3 , | ||
56 | setting the reference count of the copy to 1. | ||
57 | .Pp | ||
47 | .Fn X509_REQ_free | 58 | .Fn X509_REQ_free |
48 | frees | 59 | frees |
49 | .Fa req . | 60 | .Fa req . |
@@ -72,7 +83,8 @@ is a | |||
72 | .Dv NULL | 83 | .Dv NULL |
73 | pointer, no action occurs. | 84 | pointer, 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 , | ||
76 | and | 88 | and |
77 | .Fn X509_REQ_INFO_new | 89 | .Fn X509_REQ_INFO_new |
78 | return the new | 90 | return 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 , |
102 | and | 114 | and |
103 | .Fn X509_REQ_INFO_free | 115 | .Fn X509_REQ_INFO_free |
104 | first appeared in SSLeay 0.4.4 and have been available since | 116 | first appeared in SSLeay 0.4.4 and |
117 | .Fn X509_REQ_dup | ||
118 | in SSLeay 0.5.1. | ||
119 | These functions have been available since | ||
105 | .Ox 2.4 . | 120 | .Ox 2.4 . |