summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-02-28 11:30:19 +0100
committerRichard Levitte <levitte@openssl.org>2019-02-28 13:06:32 +0100
commit69f6b3ceaba493e70e1296880ea6c93e40714f0f (patch)
treebbd3930710c27186cbc91f9d22d923ca50039791 /apps
parentcee719c2d8e4bfeb1f10d8dc0e86809b3cfaabc5 (diff)
apps/ca.c: only output DER with SPKAC input and when -out is chosen
So say the docs Fixes #8055 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8368)
Diffstat (limited to 'apps')
-rw-r--r--apps/ca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ca.c b/apps/ca.c
index b4ac86d4aa..4464b2ba86 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -722,7 +722,7 @@ end_of_options:
/*****************************************************************/
if (req || gencrl) {
- if (spkac_file != NULL) {
+ if (spkac_file != NULL && outfile != NULL) {
output_der = 1;
batch = 1;
}