diff options
author | schwarze <> | 2021-12-11 18:51:25 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-11 18:51:25 +0000 |
commit | 11ebd1f614dc2034300ec2e5d6d37774fd34b378 (patch) | |
tree | b4d16e30e3810995ab8c45568000d30a4274c649 /src | |
parent | 6a6e13625dd73c603460586b36e5c2c27b3b892a (diff) | |
download | openbsd-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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_STRING_TABLE_add.3 | 45 |
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 | |||
51 | changes the existing entry for | 52 | changes the existing entry for |
52 | .Fa nid | 53 | .Fa nid |
53 | or, if there is none, allocates a new entry. | 54 | or, if there is none, allocates a new entry. |
54 | Each field of the entry is modified according to the function argument | 55 | The fields of the entry are overwritten with the function arguments |
55 | of the same name. | 56 | of the same name. |
56 | The | 57 | If |
57 | .Fa minsize | 58 | .Fa minsize |
58 | and | 59 | or |
59 | .Fa maxsize | 60 | .Fa maxsize |
60 | arguments overwrite the existing fields unless they are \-1. | 61 | is negative or |
61 | The | ||
62 | .Fa mask | 62 | .Fa mask |
63 | argument always overwrites the existing field. | 63 | is 0, that argument is ignored and the respective field remains unchanged, |
64 | or for a new entry, it is set to \-1, \-1, 0, or | ||
65 | .Dv STABLE_FLAGS_MALLOC , | ||
66 | respectively. | ||
67 | .Pp | ||
64 | The bits set in the | 68 | The bits set in the |
65 | .Fa flags | 69 | .Fa flags |
66 | argument are OR'ed into the existing field. | 70 | argument are OR'ed into the existing field rather than overwriting it. |
67 | No useful flags are currently defined, so passing 0 is recommended. | 71 | The only useful flag is |
72 | .Dv STABLE_NO_MASK . | ||
73 | If it is set, | ||
74 | .Xr ASN1_STRING_set_by_NID 3 | ||
75 | skips applying the global mask that can be set with | ||
76 | .Xr ASN1_STRING_set_default_mask 3 . | ||
77 | Otherwise, the table entry only accepts types | ||
78 | permitted by both the global mask and the | ||
79 | .Fa mask | ||
80 | argument. | ||
81 | Setting | ||
82 | .Dv STABLE_FLAGS_MALLOC | ||
83 | or any other bit in the | ||
84 | .Fa mask | ||
85 | argument has no effect. | ||
68 | .Pp | 86 | .Pp |
69 | The function | 87 | The 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 |
74 | The function | 92 | The function |
75 | .Fn ASN1_STRING_TABLE_cleanup | 93 | .Fn ASN1_STRING_TABLE_cleanup |
76 | removes and frees all entries except the predefined ones. | 94 | removes and frees all entries except the predefined ones |
95 | and restores the predefined ones to their default state. | ||
77 | .Sh RETURN VALUES | 96 | .Sh RETURN VALUES |
78 | The | 97 | The |
79 | .Fn ASN1_STRING_TABLE_add | 98 | .Fn ASN1_STRING_TABLE_add |