]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clean up ASN1_STRING comment and improve example in docs
authorJob Snijders <job@sobornost.net>
Tue, 17 Dec 2024 13:05:49 +0000 (13:05 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 Jan 2025 19:39:52 +0000 (20:39 +0100)
Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26195)

(cherry picked from commit 2e36bb07b50a1dc55f97aeccbec9fbc5048290d1)

crypto/asn1/a_strnid.c
doc/man1/openssl-req.pod.in

index d052935661d362f6b5ba2364830df9e7bb67dca7..098b12d40eb231f3f1607df25a27bd203aebe210 100644 (file)
@@ -39,10 +39,10 @@ unsigned long ASN1_STRING_get_default_mask(void)
  * This function sets the default to various "flavours" of configuration.
  * based on an ASCII string. Currently this is:
  * MASK:XXXX : a numerical mask value.
- * nobmp : Don't use BMPStrings (just Printable, T61).
- * pkix : PKIX recommendation in RFC2459.
- * utf8only : only use UTF8Strings (RFC2459 recommendation for 2004).
- * default:   the default value, Printable, T61, BMP.
+ * default   : use Printable, IA5, T61, BMP, and UTF8 string types
+ * nombstr   : any string type except variable-sized BMPStrings or UTF8Strings
+ * pkix      : PKIX recommendation in RFC2459
+ * utf8only  : this is the default, use UTF8Strings
  */
 
 int ASN1_STRING_set_default_mask_asc(const char *p)
index a56f548de8ee0891a2c60d41f735ec63cd247035..c4a5312d8730ea58dee7105cf98e5ea179f43430 100644 (file)
@@ -638,7 +638,7 @@ Sample configuration file prompting for field values:
  attributes             = req_attributes
  req_extensions         = v3_ca
 
- dirstring_type = nobmp
+ dirstring_type = nombstr
 
  [ req_distinguished_name ]
  countryName                    = Country Name (2 letter code)