-.\" $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>
.\"
.\" 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
.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
.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 ,