identification: Use UTF8String instead of the legacy T61String to encode DNs
When strings in RDNs contain characters outside the character set for PrintableString use UTF8String as the passed string is most likely in that encoding (RFC 5280 actually recommends to use only those two string types).
This commit is contained in:
parent
6fe8fe0cfd
commit
9593b57ca3
|
@ -478,7 +478,7 @@ static status_t atodn(char *src, chunk_t *dn)
|
|||
name.len -= whitespace;
|
||||
rdn_type = (x501rdns[i].type == ASN1_PRINTABLESTRING
|
||||
&& !asn1_is_printablestring(name))
|
||||
? ASN1_T61STRING : x501rdns[i].type;
|
||||
? ASN1_UTF8STRING : x501rdns[i].type;
|
||||
|
||||
if (rdn_count < RDN_MAX)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue