summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Fiala <daniel@openssl.org>2022-04-29 09:33:49 +0200
committerTomas Mraz <tomas@openssl.org>2022-05-04 09:29:54 +0200
commit78a599b98ec14e7fbe4360b3353485bed007ea45 (patch)
tree475d9e2e4454f930180ce40260ba47c9777d8735 /apps
parent6e79301311c5a7e4a3bbbfbf2386c02634aedfb9 (diff)
openssl: dhparam: Print warning if -in argument is ignored
Fixes: openssl#18146 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18206) (cherry picked from commit 6d952291762246f6533e19ca413277390db4aae2)
Diffstat (limited to 'apps')
-rw-r--r--apps/dhparam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c
index 0e90698cd6..94b3e04b90 100644
--- a/apps/dhparam.c
+++ b/apps/dhparam.c
@@ -181,6 +181,10 @@ int dhparam_main(int argc, char **argv)
if (num) {
const char *alg = dsaparam ? "DSA" : "DH";
+ if (infile != NULL) {
+ BIO_printf(bio_err, "Warning, input file %s ignored\n", infile);
+ }
+
ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);
if (ctx == NULL) {
BIO_printf(bio_err,