summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-12-09 19:00:00 +0000
committerschwarze <>2021-12-09 19:00:00 +0000
commit29e6e654f8ce39418caec1a484c6f81087613d80 (patch)
tree583eb0934ce8fd2f84505a3c96fafc61750ef049 /src
parent9199ab59feb36a355ce3324f7569957b3f6c5712 (diff)
downloadopenbsd-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.319
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
81If the 81If the
82.Fa tag 82.Fa tag
83is less than 0x1f, it is written to the five least significant bits 83is less than
84.Dv V_ASN1_PRIMITIVE_TAG Pq = 0x1f ,
85it is written to the five least significant bits
84of the only identifier byte written. 86of the only identifier byte written.
85Otherwise, these five bits are all set to 1, and the 87Otherwise, 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
169a 171a
170.Fa tag 172.Fa tag
171number less than 0x1f with a non-universal 173number less than
174.Dv V_ASN1_PRIMITIVE_TAG
175with a
172.Fa class 176.Fa class
177other than
178.Dv V_ASN1_UNIVERSAL
173.It 179.It
174a 180a
175.Fa tag 181.Fa tag
176number equal to 0x00 or 0x1f 182number equal to
183.Dv V_ASN1_EOC Pq 0x00
184or
185.Dv V_ASN1_PRIMITIVE_TAG Pq 0x1f
177.It 186.It
178a 187a
179.Vt BOOLEAN , 188.Vt BOOLEAN ,