From 6d952291762246f6533e19ca413277390db4aae2 Mon Sep 17 00:00:00 2001 From: Daniel Fiala Date: Fri, 29 Apr 2022 09:33:49 +0200 Subject: [PATCH] openssl: dhparam: Print warning if -in argument is ignored Fixes: openssl#18146 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18206) --- apps/dhparam.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/dhparam.c b/apps/dhparam.c index a0c0c064aa7..b9ce418c61e 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -190,6 +190,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, -- 2.47.3