[openssl] master update
matthias.st.pierre at ncp-e.com
matthias.st.pierre at ncp-e.com
Fri Jun 7 07:09:30 UTC 2019
The branch master has been updated
via bab6046146c4fc8f088c1aaca11598ede7609c04 (commit)
from 87762939b508c7968d3c54d44c1319416c27603e (commit)
- Log -----------------------------------------------------------------
commit bab6046146c4fc8f088c1aaca11598ede7609c04
Author: Acheev Bhagat <acheevbhagat at hotmail.com>
Date: Thu Jun 6 20:05:49 2019 -0400
Replace BIO_printf with ASN1_STRING_print in GENERAL_NAME_print
Reviewed-by: Richard Levitte <levitte at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/9101)
-----------------------------------------------------------------------
Summary of changes:
crypto/x509/v3_alt.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/crypto/x509/v3_alt.c b/crypto/x509/v3_alt.c
index 9b627e0..3079940 100644
--- a/crypto/x509/v3_alt.c
+++ b/crypto/x509/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:
More information about the openssl-commits
mailing list