diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-06-11 17:43:49 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-08-06 17:25:07 +0200 |
commit | 9593b57ca34ddfc03001fff473c31ee325033772 (patch) | |
tree | 7d50f5db1e8a0535caff3907725c7303929b7b55 /src/libstrongswan/utils | |
parent | 6fe8fe0cfde5dd3728f435481e56123f502171e9 (diff) | |
download | strongswan-9593b57ca34ddfc03001fff473c31ee325033772.tar.bz2 strongswan-9593b57ca34ddfc03001fff473c31ee325033772.tar.xz |
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).
Diffstat (limited to 'src/libstrongswan/utils')
-rw-r--r-- | src/libstrongswan/utils/identification.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index cd3f1ce17..7c8a4bb79 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -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) { |