From: Tomas Mraz Date: Fri, 5 Aug 2016 07:33:30 +0000 (+0200) Subject: Fix irregularities in GENERAL_NAME_print(). X-Git-Tag: OpenSSL_1_1_0~249 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca1cb0d4346bfefe00ec5d240e99b95c8ab743af;p=oweals%2Fopenssl.git Fix irregularities in GENERAL_NAME_print(). Add colon when printing Registered ID. Remove extra space when printing DirName. Reviewed-by: Richard Levitte Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1401) --- diff --git a/crypto/x509v3/v3_alt.c b/crypto/x509v3/v3_alt.c index 34b950ef9e..0364e336a0 100644 --- a/crypto/x509v3/v3_alt.c +++ b/crypto/x509v3/v3_alt.c @@ -158,7 +158,7 @@ int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen) break; case GEN_DIRNAME: - BIO_printf(out, "DirName: "); + BIO_printf(out, "DirName:"); X509_NAME_print_ex(out, gen->d.dirn, 0, XN_FLAG_ONELINE); break; @@ -180,7 +180,7 @@ int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen) break; case GEN_RID: - BIO_printf(out, "Registered ID"); + BIO_printf(out, "Registered ID:"); i2a_ASN1_OBJECT(out, gen->d.rid); break; }