summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2018-02-25 10:07:34 +0000
committerschwarze <>2018-02-25 10:07:34 +0000
commit7dfd9909e0e102040245c7bf26f140e0620d9d98 (patch)
tree278fcf986f534fdaad033ac46168f5ddb3e88746 /src
parent175fd751ad7b9e88301a2451b1e03a8ccaafb442 (diff)
downloadopenbsd-7dfd9909e0e102040245c7bf26f140e0620d9d98.tar.gz
openbsd-7dfd9909e0e102040245c7bf26f140e0620d9d98.tar.bz2
openbsd-7dfd9909e0e102040245c7bf26f140e0620d9d98.zip
Correct the description of ASN1_item_free(3) with respect to
optional reference counting. ETOOMUCHMAGIC. By the way, this public hellhole is still undocumented in OpenSSL.
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/ASN1_item_new.317
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/ASN1_item_new.3 b/src/lib/libcrypto/man/ASN1_item_new.3
index e679815751..ea7cb5f405 100644
--- a/src/lib/libcrypto/man/ASN1_item_new.3
+++ b/src/lib/libcrypto/man/ASN1_item_new.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: ASN1_item_new.3,v 1.2 2017/01/03 20:15:47 schwarze Exp $ 1.\" $OpenBSD: ASN1_item_new.3,v 1.3 2018/02/25 10:07:34 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,7 +14,7 @@
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: January 3 2017 $ 17.Dd $Mdocdate: February 25 2018 $
18.Dt ASN1_ITEM_NEW 3 18.Dt ASN1_ITEM_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -38,8 +38,17 @@ allocates and initializes an empty ASN.1 value
38of the type described by the global static object 38of the type described by the global static object
39.Fa it . 39.Fa it .
40.Pp 40.Pp
41If the item type described by
42.Fa it
43is reference counted,
44.Fn ASN1_item_free
45decrements the reference count of
46.Fa val_in .
47Otherwise, or if the reference count reaches 0,
41.Fn ASN1_item_free 48.Fn ASN1_item_free
42frees an ASN.1 value of the type described by 49frees
50.Fa val_in ,
51assuming that it is of the type described by
43.Fa it . 52.Fa it .
44If the true type of 53If the true type of
45.Fa val_in 54.Fa val_in