make X509_EXTENSION opaque
[openssl.git] / crypto / asn1 / t_req.c
index bd76950ac6c69ed2a57e1e873d2945e9ee0018ec..01eabfadd83cb8ba18e2d7fcf9bc4dc62f227bc8 100644 (file)
@@ -216,7 +216,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
                     goto err;
                 if (!X509V3_EXT_print(bp, ex, cflag, 16)) {
                     BIO_printf(bp, "%16s", "");
                     goto err;
                 if (!X509V3_EXT_print(bp, ex, cflag, 16)) {
                     BIO_printf(bp, "%16s", "");
-                    ASN1_STRING_print(bp, ex->value);
+                    ASN1_STRING_print(bp, X509_EXTENSION_get_data(ex));
                 }
                 if (BIO_write(bp, "\n", 1) <= 0)
                     goto err;
                 }
                 if (BIO_write(bp, "\n", 1) <= 0)
                     goto err;