From: Bob Beck Date: Tue, 3 Feb 2026 17:24:19 +0000 (-0700) Subject: Mention ASCII vs Non ASCII localparts X-Git-Tag: openssl-4.0.0-alpha1~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=166caf6a83ceea0011b59ec50afed53651ab44c8;p=thirdparty%2Fopenssl.git Mention ASCII vs Non ASCII localparts Reviewed-by: Neil Horman Reviewed-by: Viktor Dukhovni MergeDate: Tue Feb 24 14:04:10 2026 (Merged from https://github.com/openssl/openssl/pull/29612) --- diff --git a/doc/man3/X509_VERIFY_PARAM_set_flags.pod b/doc/man3/X509_VERIFY_PARAM_set_flags.pod index b801c61733c..832d56c06ca 100644 --- a/doc/man3/X509_VERIFY_PARAM_set_flags.pod +++ b/doc/man3/X509_VERIFY_PARAM_set_flags.pod @@ -222,6 +222,12 @@ the return value. X509_VERIFY_PARAM_get0_email() returns the expected RFC822 email address. +The _rfc822() family of functions is used for email names that have +ASCII localpart addresses, in which case the domain part of the +address must be represented in A-label form. They are used to +manipulate values to match against the SAN Email names in +certificates. + X509_VERIFY_PARAM_set1_rfc822() clears all expected RFC822 email addresses, and sets the expected RFC822 email address to I. If I is NULL no expected address is set. Otherwise, if @@ -232,7 +238,7 @@ invokes L. X509_VERIFY_PARAM_add1_rfc822() adds I as an additional reference identifier that can match RFC822 email addresses in the -peer's certificate. Any previous names set via +peer's certificate. Any previous names set via X509_VERIFY_PARAM_set1_rfc822(), X509_VERIFY_PARAM_add1_rfc822(), or X509_VERIFY_PARAM_set1_email() are retained on success, no change is made on failure. It is a failure if @@ -241,6 +247,12 @@ The peer is considered verified when any one of the specified RFC822 or SMTPUTF8 names matches a corresponding email address SAN in the certificate. +The _smtputf8() family of functions is used for email names that have +a non-ASCII localpart addresses, in which case the domain part of the +address must be represented in U-label form. They are used to +manipulate values to match against the OTHERNAME SMTPUTF8 names in +certificates. + X509_VERIFY_PARAM_set1_smtputf8() sets the expected SMTPUTF8 email address to I. If I is NULL, SMTPUTF8 email checking is disabled. Otherwise,