summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-12-11 18:51:25 +0000
committerschwarze <>2021-12-11 18:51:25 +0000
commit11ebd1f614dc2034300ec2e5d6d37774fd34b378 (patch)
treeb4d16e30e3810995ab8c45568000d30a4274c649
parent6a6e13625dd73c603460586b36e5c2c27b3b892a (diff)
downloadopenbsd-11ebd1f614dc2034300ec2e5d6d37774fd34b378.tar.gz
openbsd-11ebd1f614dc2034300ec2e5d6d37774fd34b378.tar.bz2
openbsd-11ebd1f614dc2034300ec2e5d6d37774fd34b378.zip
document STABLE_NO_MASK and STABLE_FLAGS_MALLOC,
mention which argument values can be used to not change the respective fields, and tweak a few additional wordings
-rw-r--r--src/lib/libcrypto/man/ASN1_STRING_TABLE_add.345
1 files changed, 32 insertions, 13 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 b/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3
index 534443d869..fede2030ae 100644
--- a/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3
+++ b/src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3
@@ -1,7 +1,8 @@
1.\" $OpenBSD: ASN1_STRING_TABLE_add.3,v 1.5 2021/10/20 15:54:21 schwarze Exp $ 1.\" $OpenBSD: ASN1_STRING_TABLE_add.3,v 1.6 2021/12/11 18:51:25 schwarze Exp $
2.\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800 2.\" checked up to:
3.\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800
3.\" 4.\"
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 5.\" Copyright (c) 2017, 2021 Ingo Schwarze <schwarze@openbsd.org>
5.\" 6.\"
6.\" Permission to use, copy, modify, and distribute this software for any 7.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above 8.\" purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +16,7 @@
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\" 18.\"
18.Dd $Mdocdate: October 20 2021 $ 19.Dd $Mdocdate: December 11 2021 $
19.Dt ASN1_STRING_TABLE_ADD 3 20.Dt ASN1_STRING_TABLE_ADD 3
20.Os 21.Os
21.Sh NAME 22.Sh NAME
@@ -51,20 +52,37 @@ The function
51changes the existing entry for 52changes the existing entry for
52.Fa nid 53.Fa nid
53or, if there is none, allocates a new entry. 54or, if there is none, allocates a new entry.
54Each field of the entry is modified according to the function argument 55The fields of the entry are overwritten with the function arguments
55of the same name. 56of the same name.
56The 57If
57.Fa minsize 58.Fa minsize
58and 59or
59.Fa maxsize 60.Fa maxsize
60arguments overwrite the existing fields unless they are \-1. 61is negative or
61The
62.Fa mask 62.Fa mask
63argument always overwrites the existing field. 63is 0, that argument is ignored and the respective field remains unchanged,
64or for a new entry, it is set to \-1, \-1, 0, or
65.Dv STABLE_FLAGS_MALLOC ,
66respectively.
67.Pp
64The bits set in the 68The bits set in the
65.Fa flags 69.Fa flags
66argument are OR'ed into the existing field. 70argument are OR'ed into the existing field rather than overwriting it.
67No useful flags are currently defined, so passing 0 is recommended. 71The only useful flag is
72.Dv STABLE_NO_MASK .
73If it is set,
74.Xr ASN1_STRING_set_by_NID 3
75skips applying the global mask that can be set with
76.Xr ASN1_STRING_set_default_mask 3 .
77Otherwise, the table entry only accepts types
78permitted by both the global mask and the
79.Fa mask
80argument.
81Setting
82.Dv STABLE_FLAGS_MALLOC
83or any other bit in the
84.Fa mask
85argument has no effect.
68.Pp 86.Pp
69The function 87The function
70.Fn ASN1_STRING_TABLE_get 88.Fn ASN1_STRING_TABLE_get
@@ -73,7 +91,8 @@ retrieves the entry for
73.Pp 91.Pp
74The function 92The function
75.Fn ASN1_STRING_TABLE_cleanup 93.Fn ASN1_STRING_TABLE_cleanup
76removes and frees all entries except the predefined ones. 94removes and frees all entries except the predefined ones
95and restores the predefined ones to their default state.
77.Sh RETURN VALUES 96.Sh RETURN VALUES
78The 97The
79.Fn ASN1_STRING_TABLE_add 98.Fn ASN1_STRING_TABLE_add