From: Daniel Fiala Date: Fri, 29 Apr 2022 07:33:49 +0000 (+0200) Subject: openssl: dhparam: Print warning if -in argument is ignored X-Git-Tag: openssl-3.2.0-alpha1~2711 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d952291762246f6533e19ca413277390db4aae2;p=thirdparty%2Fopenssl.git 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) --- 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,