diff options
author | schwarze <> | 2021-12-09 19:00:00 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-09 19:00:00 +0000 |
commit | 29e6e654f8ce39418caec1a484c6f81087613d80 (patch) | |
tree | 583eb0934ce8fd2f84505a3c96fafc61750ef049 /src | |
parent | 9199ab59feb36a355ce3324f7569957b3f6c5712 (diff) | |
download | openbsd-29e6e654f8ce39418caec1a484c6f81087613d80.tar.gz openbsd-29e6e654f8ce39418caec1a484c6f81087613d80.tar.bz2 openbsd-29e6e654f8ce39418caec1a484c6f81087613d80.zip |
Mention V_ASN1_PRIMITIVE_TAG and V_ASN1_EOC.
Seeing the symbolic names in addition to the magic numbers
makes it esier to understand the text.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/ASN1_put_object.3 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/ASN1_put_object.3 b/src/lib/libcrypto/man/ASN1_put_object.3 index 843838143b..a435b5a800 100644 --- a/src/lib/libcrypto/man/ASN1_put_object.3 +++ b/src/lib/libcrypto/man/ASN1_put_object.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_put_object.3,v 1.3 2021/11/28 15:48:12 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_put_object.3,v 1.4 2021/12/09 19:00:00 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2019, 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2019, 2021 Ingo Schwarze <schwarze@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -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: November 28 2021 $ | 17 | .Dd $Mdocdate: December 9 2021 $ |
18 | .Dt ASN1_PUT_OBJECT 3 | 18 | .Dt ASN1_PUT_OBJECT 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -80,7 +80,9 @@ Start a constructed value and use the indefinite form, | |||
80 | .Pp | 80 | .Pp |
81 | If the | 81 | If the |
82 | .Fa tag | 82 | .Fa tag |
83 | is less than 0x1f, it is written to the five least significant bits | 83 | is less than |
84 | .Dv V_ASN1_PRIMITIVE_TAG Pq = 0x1f , | ||
85 | it is written to the five least significant bits | ||
84 | of the only identifier byte written. | 86 | of the only identifier byte written. |
85 | Otherwise, these five bits are all set to 1, and the | 87 | Otherwise, these five bits are all set to 1, and the |
86 | .Fa tag | 88 | .Fa tag |
@@ -168,12 +170,19 @@ for example | |||
168 | .It | 170 | .It |
169 | a | 171 | a |
170 | .Fa tag | 172 | .Fa tag |
171 | number less than 0x1f with a non-universal | 173 | number less than |
174 | .Dv V_ASN1_PRIMITIVE_TAG | ||
175 | with a | ||
172 | .Fa class | 176 | .Fa class |
177 | other than | ||
178 | .Dv V_ASN1_UNIVERSAL | ||
173 | .It | 179 | .It |
174 | a | 180 | a |
175 | .Fa tag | 181 | .Fa tag |
176 | number equal to 0x00 or 0x1f | 182 | number equal to |
183 | .Dv V_ASN1_EOC Pq 0x00 | ||
184 | or | ||
185 | .Dv V_ASN1_PRIMITIVE_TAG Pq 0x1f | ||
177 | .It | 186 | .It |
178 | a | 187 | a |
179 | .Vt BOOLEAN , | 188 | .Vt BOOLEAN , |