summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man
diff options
context:
space:
mode:
authortb <>2023-12-16 12:56:20 +0000
committertb <>2023-12-16 12:56:20 +0000
commit26b7f662a282a4d86a72d956c7f5a7256cb1666f (patch)
tree32e2014726afa0f9bada79993c22be886cf461c9 /src/lib/libcrypto/man
parentf4bbf94c75e0eb6961421e3a15395c0c9c5a701f (diff)
downloadopenbsd-26b7f662a282a4d86a72d956c7f5a7256cb1666f.tar.gz
openbsd-26b7f662a282a4d86a72d956c7f5a7256cb1666f.tar.bz2
openbsd-26b7f662a282a4d86a72d956c7f5a7256cb1666f.zip
Annotate incorrect value for ub_email_address
The ub_email_address upper bound, 128, returned for NID_pkcs9_emailAddress, doesn't match the PKCS#9 specification where it is 255. This was adjusted in RFC 5280: The ASN.1 modules in Appendix A are unchanged from RFC 3280, except that ub-emailaddress-length was changed from 128 to 255 in order to align with PKCS #9 [RFC2985]. Nobody seems to have noticed so far, so leave it at an XXX and a BUGS entry for now. It also clearly has the wrong name. Another mystery is why the RFCs suffix some upper bounds with length, but not others. Also, OpenSSL chose to be inconsistent with that, because inconsistency is one of the few things this library is really good at.
Diffstat (limited to 'src/lib/libcrypto/man')
-rw-r--r--src/lib/libcrypto/man/ASN1_STRING_TABLE_get.37
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/ASN1_STRING_TABLE_get.3 b/src/lib/libcrypto/man/ASN1_STRING_TABLE_get.3
index 0fcc8a123d..7e3e360ac3 100644
--- a/src/lib/libcrypto/man/ASN1_STRING_TABLE_get.3
+++ b/src/lib/libcrypto/man/ASN1_STRING_TABLE_get.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_STRING_TABLE_get.3,v 1.1 2023/12/16 10:26:10 tb Exp $ 1.\" $OpenBSD: ASN1_STRING_TABLE_get.3,v 1.2 2023/12/16 12:56:20 tb Exp $
2.\" checked up to: 2.\" checked up to:
3.\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800 3.\" OpenSSL ASN1_STRING_TABLE_add.pod 7b608d08 Jul 27 01:18:50 2017 +0800
4.\" 4.\"
@@ -83,3 +83,8 @@ first appeared in OpenSSL 0.9.5 and have been available since
83.Ox 2.7 . 83.Ox 2.7 .
84.Sh BUGS 84.Sh BUGS
85Most aspects of the semantics considerably differ from OpenSSL. 85Most aspects of the semantics considerably differ from OpenSSL.
86.Pp
87.Dv ub_email_address ,
88which should really be called
89.Dv ub_emailaddress_length ,
90was changed in RFC 5280 from 128 to 255 to match PKCS#9 (RFC 2985).