summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2018-02-25 10:07:34 +0000
committerschwarze <>2018-02-25 10:07:34 +0000
commit338abf105cb95b58b2ccc1897abf4296913bf64b (patch)
tree278fcf986f534fdaad033ac46168f5ddb3e88746
parent5ebe5ec2803b740f39c5ab9d2e0bf1301194f6b6 (diff)
downloadopenbsd-338abf105cb95b58b2ccc1897abf4296913bf64b.tar.gz
openbsd-338abf105cb95b58b2ccc1897abf4296913bf64b.tar.bz2
openbsd-338abf105cb95b58b2ccc1897abf4296913bf64b.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.
-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