RT3513: req doesn't display attributes using utf8string
authorisnotnick <isnotnick@users.noreply.github.com>
Tue, 16 Dec 2014 15:25:59 +0000 (16:25 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 14 May 2016 18:06:33 +0000 (20:06 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/asn1/t_req.c

index 024553ab196fe7008fa970ceb50753ed5bffbc70..70aba4cc3b3bb25dfc2721b6bd2f47d5f07507ac 100644 (file)
@@ -196,6 +196,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
                 if (BIO_puts(bp, ":") <= 0)
                     goto err;
                 if ((type == V_ASN1_PRINTABLESTRING) ||
+                    (type == V_ASN1_UTF8STRING) ||
                     (type == V_ASN1_T61STRING) ||
                     (type == V_ASN1_IA5STRING)) {
                     if (BIO_write(bp, (char *)bs->data, bs->length)