From 29e6e654f8ce39418caec1a484c6f81087613d80 Mon Sep 17 00:00:00 2001
From: schwarze <>
Date: Thu, 9 Dec 2021 19:00:00 +0000
Subject: 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.

---
 src/lib/libcrypto/man/ASN1_put_object.3 | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

(limited to 'src')

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 @@
-.\" $OpenBSD: ASN1_put_object.3,v 1.3 2021/11/28 15:48:12 schwarze Exp $
+.\" $OpenBSD: ASN1_put_object.3,v 1.4 2021/12/09 19:00:00 schwarze Exp $
 .\"
 .\" Copyright (c) 2019, 2021 Ingo Schwarze <schwarze@openbsd.org>
 .\"
@@ -14,7 +14,7 @@
 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd $Mdocdate: November 28 2021 $
+.Dd $Mdocdate: December 9 2021 $
 .Dt ASN1_PUT_OBJECT 3
 .Os
 .Sh NAME
@@ -80,7 +80,9 @@ Start a constructed value and use the indefinite form,
 .Pp
 If the
 .Fa tag
-is less than 0x1f, it is written to the five least significant bits
+is less than
+.Dv V_ASN1_PRIMITIVE_TAG Pq = 0x1f ,
+it is written to the five least significant bits
 of the only identifier byte written.
 Otherwise, these five bits are all set to 1, and the
 .Fa tag
@@ -168,12 +170,19 @@ for example
 .It
 a
 .Fa tag
-number less than 0x1f with a non-universal
+number less than
+.Dv V_ASN1_PRIMITIVE_TAG
+with a
 .Fa class
+other than
+.Dv V_ASN1_UNIVERSAL
 .It
 a
 .Fa tag
-number equal to 0x00 or 0x1f
+number equal to
+.Dv V_ASN1_EOC Pq 0x00
+or
+.Dv V_ASN1_PRIMITIVE_TAG Pq 0x1f
 .It
 a
 .Vt BOOLEAN ,
-- 
cgit v1.2.3-55-g6feb