diff options
author | Heiko Hund <heiko.hund@sophos.com> | 2012-02-04 12:56:24 +0000 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-02-04 14:50:50 +0100 |
commit | 5e86fd93779482b90a191f929edebe414cd78a4f (patch) | |
tree | 2bcc361091366cd0c0e1cbba0af5a7a869b747dd /pkcs11_openssl.c | |
parent | fc3ee19dee6c66e2325a24e864b5328128404e83 (diff) | |
download | openvpn-5e86fd93779482b90a191f929edebe414cd78a4f.tar.gz openvpn-5e86fd93779482b90a191f929edebe414cd78a4f.tar.xz openvpn-5e86fd93779482b90a191f929edebe414cd78a4f.zip |
UTF-8 X.509 distinguished names
The UTF-8 support that came with commit 2627335 does allow international
usernames and passwords. This patch introduces UTF-8 support for X.509 DNs.
Additionally, instead of using the legacy openssl format, DNs are now
displayed in RFC 2253 format; "/C=ru/L=\xD0\x9C\xD0\xBE\xD1\x81\xD0\xBA\xD0
\xB2\xD0\xB0/O=\xD0\x9A\xD1\x80\xD0\xB5\xD0\xBC\xD0\xBB\xD1\x8C/CN=kreml.ru"
becomes "C=ru, L=Москва, O=Кремль, CN=kreml.ru".
Since the specific character classes for X.509 names are removed, the
"no-name-remapping" configuration option has no use anymore and is removed
as well.
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Acked-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'pkcs11_openssl.c')
-rw-r--r-- | pkcs11_openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkcs11_openssl.c b/pkcs11_openssl.c index e3463dc..aa1eccc 100644 --- a/pkcs11_openssl.c +++ b/pkcs11_openssl.c @@ -129,7 +129,7 @@ pkcs11_certificate_dn (pkcs11h_certificate_t certificate, char *dn, goto cleanup; } - X509_NAME_oneline (X509_get_subject_name (x509), dn, dn_len); + _openssl_get_subject (x509, dn, dn_len); ret = 0; |