The branch OpenSSL_1_1_1-stable has been updated
       via  7febec94858da85afe59bd70a3e728b724ed1ea0 (commit)
      from  38a277e01e6597c31b89e07fac52f8adff5c683f (commit)


- Log -----------------------------------------------------------------
commit 7febec94858da85afe59bd70a3e728b724ed1ea0
Author: Acheev Bhagat <[email protected]>
Date:   Thu Jun 6 20:05:49 2019 -0400

    Replace BIO_printf with ASN1_STRING_print in GENERAL_NAME_print
    
    Reviewed-by: Richard Levitte <[email protected]>
    Reviewed-by: Tim Hudson <[email protected]>
    Reviewed-by: Matthias St. Pierre <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/9101)
    
    (cherry picked from commit bab6046146c4fc8f088c1aaca11598ede7609c04)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509v3/v3_alt.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/crypto/x509v3/v3_alt.c b/crypto/x509v3/v3_alt.c
index 832e6d1..c357721 100644
--- a/crypto/x509v3/v3_alt.c
+++ b/crypto/x509v3/v3_alt.c
@@ -157,15 +157,18 @@ int GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen)
         break;
 
     case GEN_EMAIL:
-        BIO_printf(out, "email:%s", gen->d.ia5->data);
+        BIO_printf(out, "email:");
+        ASN1_STRING_print(out, gen->d.ia5);
         break;
 
     case GEN_DNS:
-        BIO_printf(out, "DNS:%s", gen->d.ia5->data);
+        BIO_printf(out, "DNS:");
+        ASN1_STRING_print(out, gen->d.ia5);
         break;
 
     case GEN_URI:
-        BIO_printf(out, "URI:%s", gen->d.ia5->data);
+        BIO_printf(out, "URI:");
+        ASN1_STRING_print(out, gen->d.ia5);
         break;
 
     case GEN_DIRNAME:

Reply via email to