summaryrefslogtreecommitdiff
path: root/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2021-12-10 16:19:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2021-12-10 16:19:53 +0000
commitced0838e61c9474d979721d014317511f63443a8 (patch)
treef053466913f5460dfd9fc3b2e7854484e29a5224 /lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
parent904face3a1c13b7884e0e916117e83659558aa26 (diff)
document the following constants:
B_ASN1_DIRECTORYSTRING, B_ASN1_PRINTABLE, B_ASN1_DISPLAYTEXT, B_ASN1_TIME, DIRSTRING_TYPE, PKCS9STRING_TYPE
Diffstat (limited to 'lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3')
-rw-r--r--lib/libcrypto/man/d2i_ASN1_OCTET_STRING.319
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 b/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
index fecf984b76e..73cb7536676 100644
--- a/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
+++ b/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.13 2021/12/08 13:13:21 schwarze Exp $
+.\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.14 2021/12/10 16:19:52 schwarze Exp $
.\"
.\" Copyright (c) 2017 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: December 8 2021 $
+.Dd $Mdocdate: December 10 2021 $
.Dt D2I_ASN1_OCTET_STRING 3
.Os
.Sh NAME
@@ -357,6 +357,21 @@ They are also used for certificate revocation lists; see
When decoding, it accepts either GeneralizedTime or UTCTime.
When encoding, it writes out the time type that is actually passed in.
.Pp
+The following constants describe the ASN.1 tags that are valid
+when decoding with the above functions.
+See
+.Xr ASN1_tag2bit 3
+for more details about the
+.Dv B_ASN1_*
+constants.
+.Bl -column d2i_DIRECTORYSTRING() B_ASN1_DIRECTORYSTRING -offset indent
+.It decoding function Ta mask constant
+.It Fn d2i_DIRECTORYSTRING Ta B_ASN1_DIRECTORYSTRING
+.It Fn d2i_ASN1_PRINTABLE Ta B_ASN1_PRINTABLE
+.It Fn d2i_DISPLAYTEXT Ta B_ASN1_DISPLAYTEXT
+.It Fn d2i_ASN1_TIME Ta B_ASN1_TIME
+.El
+.Pp
.Fn d2i_ASN1_UINTEGER
is similar to
.Fn d2i_ASN1_INTEGER