apps: Escape control characters in DNs by default
When displaying distinguished names the control characters are escaped by default. Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26932)
This commit is contained in:
parent
624a00ef41
commit
2411f9b662
6 changed files with 61 additions and 5 deletions
|
@ -192,7 +192,11 @@ int set_nameopt(const char *arg)
|
|||
unsigned long get_nameopt(void)
|
||||
{
|
||||
return
|
||||
nmflag_set ? nmflag : XN_FLAG_SEP_CPLUS_SPC | ASN1_STRFLGS_UTF8_CONVERT;
|
||||
nmflag_set ? nmflag : XN_FLAG_SEP_CPLUS_SPC | XN_FLAG_FN_SN
|
||||
| ASN1_STRFLGS_ESC_CTRL
|
||||
| ASN1_STRFLGS_UTF8_CONVERT
|
||||
| ASN1_STRFLGS_DUMP_UNKNOWN
|
||||
| ASN1_STRFLGS_DUMP_DER;
|
||||
}
|
||||
|
||||
void dump_cert_text(BIO *out, X509 *x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue