summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/t_req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-05-22 23:31:29 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-05-22 23:31:29 +0000
commit64a5c5d1be5e15b420f1abe648f966016ff9963f (patch)
treee0872ca164e6f59f175974c66d13e71b8cc4eb5e /crypto/asn1/t_req.c
parent7b8b7973750f65ecce161af012f004b9c7be45f9 (diff)
Fix X509_REQ_print_ex() to process extension options.
Diffstat (limited to 'crypto/asn1/t_req.c')
-rw-r--r--crypto/asn1/t_req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/t_req.c b/crypto/asn1/t_req.c
index 0d169c9acc..ea1794e3e0 100644
--- a/crypto/asn1/t_req.c
+++ b/crypto/asn1/t_req.c
@@ -220,7 +220,7 @@ get_next:
}
}
}
- if(!(cflag & X509_FLAG_NO_ATTRIBUTES))
+ if(!(cflag & X509_FLAG_NO_EXTENSIONS))
{
exts = X509_REQ_get_extensions(x);
if(exts)
@@ -238,7 +238,7 @@ get_next:
j=X509_EXTENSION_get_critical(ex);
if (BIO_printf(bp,": %s\n",j?"critical":"") <= 0)
goto err;
- if(!X509V3_EXT_print(bp, ex, 0, 16))
+ if(!X509V3_EXT_print(bp, ex, cflag, 16))
{
BIO_printf(bp, "%16s", "");
M_ASN1_OCTET_STRING_print(bp,ex->value);