aboutsummaryrefslogtreecommitdiffstats
path: root/apps/crl.c
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-04-12 10:36:16 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-04-12 10:36:16 +0000
commit2f0cd19533ab15e26a6a1c59532a7f6fb25f3e0c (patch)
tree8fa2c833c286c6026915afea056722d9cb201098 /apps/crl.c
parent268c2102e34360ef9fba5b2b7d14e51b4e6cb4c3 (diff)
downloadopenssl-2f0cd19533ab15e26a6a1c59532a7f6fb25f3e0c.tar.gz
Fix `openssl crl -noout -text' combination where `-noout' killed the `-text'
option at all and this way the `-noout -text' combination was inconsistent in `openssl crl' with the friends in `openssl x509|rsa|dsa'.
Diffstat (limited to 'apps/crl.c')
-rw-r--r--apps/crl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/crl.c b/apps/crl.c
index a35e85733b..3bb7aae11e 100644
--- a/apps/crl.c
+++ b/apps/crl.c
@@ -221,8 +221,6 @@ bad:
}
}
- if (noout) goto end;
-
out=BIO_new(BIO_s_file());
if (out == NULL)
{
@@ -242,6 +240,9 @@ bad:
}
if (text) X509_CRL_print(out, x);
+
+ if (noout) goto end;
+
if (outformat == FORMAT_ASN1)
i=(int)i2d_X509_CRL_bio(out,x);
else if (outformat == FORMAT_PEM)