From 5e86fd93779482b90a191f929edebe414cd78a4f Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Sat, 4 Feb 2012 12:56:24 +0000 Subject: UTF-8 X.509 distinguished names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Adriaan de Jong Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- pkcs11_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkcs11_openssl.c') 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; -- cgit