diff options
author | Daniel Fiala <daniel@openssl.org> | 2022-04-29 09:33:49 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-05-04 09:29:17 +0200 |
commit | 6d952291762246f6533e19ca413277390db4aae2 (patch) | |
tree | 98e834d01d4d886fb39a430726acff834b09c379 /apps/dhparam.c | |
parent | Fix Coverity 1503314 unchecked return value (diff) | |
download | openssl-6d952291762246f6533e19ca413277390db4aae2.tar.xz openssl-6d952291762246f6533e19ca413277390db4aae2.zip |
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.c | 4 |
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, |