From 6f007824adc40d629e6ad1317d4184ca8bb967fc Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Tue, 27 Feb 2018 10:47:16 +0800 Subject: [PATCH] Fix the type of -out option Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3709) --- apps/genrsa.c | 2 +- apps/sess_id.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/genrsa.c b/apps/genrsa.c index 464657c20a..2bc8fa0827 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -44,7 +44,7 @@ const OPTIONS genrsa_options[] = { {"3", OPT_3, '-', "Use 3 for the E value"}, {"F4", OPT_F4, '-', "Use F4 (0x10001) for the E value"}, {"f4", OPT_F4, '-', "Use F4 (0x10001) for the E value"}, - {"out", OPT_OUT, 's', "Output the key to specified file"}, + {"out", OPT_OUT, '>', "Output the key to specified file"}, OPT_R_OPTIONS, {"passout", OPT_PASSOUT, 's', "Output file pass phrase source"}, {"", OPT_CIPHER, '-', "Encrypt the output with any supported cipher"}, diff --git a/apps/sess_id.c b/apps/sess_id.c index 70966de353..8fd584f3b1 100644 --- a/apps/sess_id.c +++ b/apps/sess_id.c @@ -30,7 +30,7 @@ const OPTIONS sess_id_options[] = { {"outform", OPT_OUTFORM, 'f', "Output format - default PEM (PEM, DER or NSS)"}, {"in", OPT_IN, 's', "Input file - default stdin"}, - {"out", OPT_OUT, 's', "Output file - default stdout"}, + {"out", OPT_OUT, '>', "Output file - default stdout"}, {"text", OPT_TEXT, '-', "Print ssl session id details"}, {"cert", OPT_CERT, '-', "Output certificate "}, {"noout", OPT_NOOUT, '-', "Don't output the encoded session info"}, -- 2.34.1