diff options
author | schwarze <> | 2021-12-10 16:19:52 +0000 |
---|---|---|
committer | schwarze <> | 2021-12-10 16:19:52 +0000 |
commit | 1ac7936a7e56cff62d6cac601bfb605393e64d05 (patch) | |
tree | d9e841396db432ee7f386745c068c65e12bc2bd2 | |
parent | 64eb2496bb8a3f7a1fd1311b12382eb860cce7c3 (diff) | |
download | openbsd-1ac7936a7e56cff62d6cac601bfb605393e64d05.tar.gz openbsd-1ac7936a7e56cff62d6cac601bfb605393e64d05.tar.bz2 openbsd-1ac7936a7e56cff62d6cac601bfb605393e64d05.zip |
document the following constants:
B_ASN1_DIRECTORYSTRING, B_ASN1_PRINTABLE, B_ASN1_DISPLAYTEXT, B_ASN1_TIME,
DIRSTRING_TYPE, PKCS9STRING_TYPE
-rw-r--r-- | src/lib/libcrypto/man/ASN1_mbstring_copy.3 | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 | 19 |
2 files changed, 28 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/ASN1_mbstring_copy.3 b/src/lib/libcrypto/man/ASN1_mbstring_copy.3 index 208f472852..5bdf7061f5 100644 --- a/src/lib/libcrypto/man/ASN1_mbstring_copy.3 +++ b/src/lib/libcrypto/man/ASN1_mbstring_copy.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ASN1_mbstring_copy.3,v 1.4 2021/11/28 17:40:14 schwarze Exp $ | 1 | .\" $OpenBSD: ASN1_mbstring_copy.3,v 1.5 2021/12/10 16:19:52 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 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 10 2021 $ |
18 | .Dt ASN1_MBSTRING_COPY 3 | 18 | .Dt ASN1_MBSTRING_COPY 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -120,6 +120,15 @@ column indicates whether the type is considered acceptable if the | |||
120 | .Fa mask | 120 | .Fa mask |
121 | argument has the special value 0. | 121 | argument has the special value 0. |
122 | .Pp | 122 | .Pp |
123 | The following bit mask constants | ||
124 | each include several of the bits listed above: | ||
125 | .Bl -column B_ASN1_DIRECTORYSTRING_ MMM MMM MMM MMM MMM MMMM | ||
126 | .It mask constant Ta PRI Ta IA5 Ta T61 Ta BMP Ta UNI Ta UTF8 | ||
127 | .It Dv B_ASN1_DIRECTORYSTRING Ta yes Ta no Ta yes Ta yes Ta yes Ta yes | ||
128 | .It Dv DIRSTRING_TYPE Ta yes Ta no Ta yes Ta yes Ta no Ta yes | ||
129 | .It Dv PKCS9STRING_TYPE Ta yes Ta yes Ta yes Ta yes Ta no Ta yes | ||
130 | .El | ||
131 | .Pp | ||
123 | If | 132 | If |
124 | .Fa out | 133 | .Fa out |
125 | is | 134 | is |
diff --git a/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 b/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 index fecf984b76..73cb753667 100644 --- a/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 +++ b/src/lib/libcrypto/man/d2i_ASN1_OCTET_STRING.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.13 2021/12/08 13:13:21 schwarze Exp $ | 1 | .\" $OpenBSD: d2i_ASN1_OCTET_STRING.3,v 1.14 2021/12/10 16:19:52 schwarze Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2017 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: December 8 2021 $ | 17 | .Dd $Mdocdate: December 10 2021 $ |
18 | .Dt D2I_ASN1_OCTET_STRING 3 | 18 | .Dt D2I_ASN1_OCTET_STRING 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -357,6 +357,21 @@ They are also used for certificate revocation lists; see | |||
357 | When decoding, it accepts either GeneralizedTime or UTCTime. | 357 | When decoding, it accepts either GeneralizedTime or UTCTime. |
358 | When encoding, it writes out the time type that is actually passed in. | 358 | When encoding, it writes out the time type that is actually passed in. |
359 | .Pp | 359 | .Pp |
360 | The following constants describe the ASN.1 tags that are valid | ||
361 | when decoding with the above functions. | ||
362 | See | ||
363 | .Xr ASN1_tag2bit 3 | ||
364 | for more details about the | ||
365 | .Dv B_ASN1_* | ||
366 | constants. | ||
367 | .Bl -column d2i_DIRECTORYSTRING() B_ASN1_DIRECTORYSTRING -offset indent | ||
368 | .It decoding function Ta mask constant | ||
369 | .It Fn d2i_DIRECTORYSTRING Ta B_ASN1_DIRECTORYSTRING | ||
370 | .It Fn d2i_ASN1_PRINTABLE Ta B_ASN1_PRINTABLE | ||
371 | .It Fn d2i_DISPLAYTEXT Ta B_ASN1_DISPLAYTEXT | ||
372 | .It Fn d2i_ASN1_TIME Ta B_ASN1_TIME | ||
373 | .El | ||
374 | .Pp | ||
360 | .Fn d2i_ASN1_UINTEGER | 375 | .Fn d2i_ASN1_UINTEGER |
361 | is similar to | 376 | is similar to |
362 | .Fn d2i_ASN1_INTEGER | 377 | .Fn d2i_ASN1_INTEGER |