diff options
author | schwarze <> | 2018-02-25 09:49:08 +0000 |
---|---|---|
committer | schwarze <> | 2018-02-25 09:49:08 +0000 |
commit | 5ebe5ec2803b740f39c5ab9d2e0bf1301194f6b6 (patch) | |
tree | 6cfe218e518c862cb7d30b443414f20ceda6f44c | |
parent | 805879b6ec72d79ca47323f19a352a45a1566b71 (diff) | |
download | openbsd-5ebe5ec2803b740f39c5ab9d2e0bf1301194f6b6.tar.gz openbsd-5ebe5ec2803b740f39c5ab9d2e0bf1301194f6b6.tar.bz2 openbsd-5ebe5ec2803b740f39c5ab9d2e0bf1301194f6b6.zip |
In x509.h rev. 1.35 2018/02/22 16:53:42, jsing@ provided
X509_CRL_up_ref(3). Since it is undocumented in OpenSSL,
write some documentation from scratch. While here, also
correct the description of X509_CRL_free(3) and mention
X509_CRL_dup(3), too.
-rw-r--r-- | src/lib/libcrypto/man/X509_CRL_new.3 | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/X509_CRL_new.3 b/src/lib/libcrypto/man/X509_CRL_new.3 index 2f35b100cb..31f85113a5 100644 --- a/src/lib/libcrypto/man/X509_CRL_new.3 +++ b/src/lib/libcrypto/man/X509_CRL_new.3 | |||
@@ -1,6 +1,6 @@ | |||
1 | .\" $OpenBSD: X509_CRL_new.3,v 1.3 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: X509_CRL_new.3,v 1.4 2018/02/25 09:49:08 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016, 2018 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,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: December 25 2016 $ | 17 | .Dd $Mdocdate: February 25 2018 $ |
18 | .Dt X509_CRL_NEW 3 | 18 | .Dt X509_CRL_NEW 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
21 | .Nm X509_CRL_new , | 21 | .Nm X509_CRL_new , |
22 | .Nm X509_CRL_dup , | ||
23 | .Nm X509_CRL_up_ref , | ||
22 | .Nm X509_CRL_free , | 24 | .Nm X509_CRL_free , |
23 | .Nm X509_CRL_INFO_new , | 25 | .Nm X509_CRL_INFO_new , |
24 | .Nm X509_CRL_INFO_free | 26 | .Nm X509_CRL_INFO_free |
@@ -27,6 +29,10 @@ | |||
27 | .In openssl/x509.h | 29 | .In openssl/x509.h |
28 | .Ft X509_CRL * | 30 | .Ft X509_CRL * |
29 | .Fn X509_CRL_new void | 31 | .Fn X509_CRL_new void |
32 | .Ft X509_CRL * | ||
33 | .Fn X509_CRL_dup "X509_CRL *crl" | ||
34 | .Ft int | ||
35 | .Fn X509_CRL_up_ref "X509_CRL *crl" | ||
30 | .Ft void | 36 | .Ft void |
31 | .Fn X509_CRL_free "X509_CRL *crl" | 37 | .Fn X509_CRL_free "X509_CRL *crl" |
32 | .Ft X509_CRL_INFO * | 38 | .Ft X509_CRL_INFO * |
@@ -44,8 +50,22 @@ It can hold a pointer to an | |||
44 | .Vt X509_CRL_INFO | 50 | .Vt X509_CRL_INFO |
45 | object discussed below together with a cryptographic signature | 51 | object discussed below together with a cryptographic signature |
46 | and information about the signature algorithm used. | 52 | and information about the signature algorithm used. |
53 | The reference count is set to 1. | ||
54 | .Pp | ||
55 | .Fn X509_CRL_dup | ||
56 | creates a deep copy of | ||
57 | .Fa crl . | ||
58 | .Pp | ||
59 | .Fn X509_CRL_up_ref | ||
60 | increments the reference count of | ||
61 | .Fa crl | ||
62 | by 1. | ||
63 | .Pp | ||
47 | .Fn X509_CRL_free | 64 | .Fn X509_CRL_free |
48 | frees | 65 | decrements the reference count of |
66 | .Fa crl | ||
67 | by 1. | ||
68 | If the reference count reaches 0, it frees | ||
49 | .Fa crl . | 69 | .Fa crl . |
50 | .Pp | 70 | .Pp |
51 | .Fn X509_CRL_INFO_new | 71 | .Fn X509_CRL_INFO_new |
@@ -63,7 +83,8 @@ list is due, and optional extensions. | |||
63 | frees | 83 | frees |
64 | .Fa crl_info . | 84 | .Fa crl_info . |
65 | .Sh RETURN VALUES | 85 | .Sh RETURN VALUES |
66 | .Fn X509_CRL_new | 86 | .Fn X509_CRL_new , |
87 | .Fn X509_CRL_dup , | ||
67 | and | 88 | and |
68 | .Fn X509_CRL_INFO_new | 89 | .Fn X509_CRL_INFO_new |
69 | return the new | 90 | return the new |
@@ -73,6 +94,9 @@ or | |||
73 | object, respectively, or | 94 | object, respectively, or |
74 | .Dv NULL | 95 | .Dv NULL |
75 | if an error occurs. | 96 | if an error occurs. |
97 | .Pp | ||
98 | .Fn X509_CRL_up_ref | ||
99 | returns 1 on success or 0 on error. | ||
76 | .Sh SEE ALSO | 100 | .Sh SEE ALSO |
77 | .Xr ACCESS_DESCRIPTION_new 3 , | 101 | .Xr ACCESS_DESCRIPTION_new 3 , |
78 | .Xr AUTHORITY_KEYID_new 3 , | 102 | .Xr AUTHORITY_KEYID_new 3 , |