From cbdeae05ecf2d58ca884549ec9dc060d2a72abf2 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 30 Sep 2009 01:57:12 +0000 Subject: [PATCH] Improvements on subject/issuer display for non-ASCII information. Monotone-Parent: 95f90718993c24efb35b3a459ec7a6243ad6f0a6 Monotone-Revision: c51effc3ec6cea0b18f9117c7327e7a312c7d7d1 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-09-30T01:57:12 Monotone-Branch: ca.inverse.sogo --- UI/MailPartViewers/UIxMailPartSignedViewer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/MailPartViewers/UIxMailPartSignedViewer.m b/UI/MailPartViewers/UIxMailPartSignedViewer.m index 11061ecfd..77aad8b44 100644 --- a/UI/MailPartViewers/UIxMailPartSignedViewer.m +++ b/UI/MailPartViewers/UIxMailPartSignedViewer.m @@ -117,12 +117,12 @@ memset(p, 0, 256); x = sk_X509_value(certs,0); buf = BIO_new(BIO_s_mem()); - X509_NAME_print_ex(buf, X509_get_subject_name(x), 0, XN_FLAG_FN_SN); + X509_NAME_print_ex(buf, X509_get_subject_name(x), 0, XN_FLAG_ONELINE & ~ASN1_STRFLGS_ESC_MSB); BIO_gets(buf, p, 256); subject = [NSString stringWithUTF8String: p]; memset(p, 0, 256); - X509_NAME_print_ex(buf, X509_get_issuer_name(x), 0, XN_FLAG_FN_SN); + X509_NAME_print_ex(buf, X509_get_issuer_name(x), 0, XN_FLAG_ONELINE & ~ASN1_STRFLGS_ESC_MSB); BIO_gets(buf, p, 256); issuer = [NSString stringWithUTF8String: p];