summaryrefslogtreecommitdiffstats
path: root/apps/dhparam.c
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:17 +0200
commit6d952291762246f6533e19ca413277390db4aae2 (patch)
tree98e834d01d4d886fb39a430726acff834b09c379 /apps/dhparam.c
parentb11183be0cd3ad675248804922bb240fbbd448e4 (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)
Diffstat (limited to 'apps/dhparam.c')
-rw-r--r--apps/dhparam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c
index a0c0c064aa..b9ce418c61 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,