diff options
author | Richard Levitte <levitte@openssl.org> | 2018-09-03 13:17:03 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-09-04 14:24:11 +0200 |
commit | 17147181bd3f97c53592e2a5c9319b854b954039 (patch) | |
tree | 1584749d07f8ca7200cf26f7c8f6198f67340032 /apps/req.c | |
parent | 8ec2bde994c272f7b14b4cc4d9232f38b9211cb1 (diff) |
openssl req: don't try to report bits
With the introduction of -pkeyopt, the number of bits may change
without |newkey| being updated. Unfortunately, there is no API to
retrieve the information from a EVP_PKEY_CTX either, so chances are
that we report incorrect information. For the moment, it's better not
to try to report the number of bits at all.
Fixes #7086
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7096)
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/req.c b/apps/req.c index 08a1468ef4..6fd28a2aba 100644 --- a/apps/req.c +++ b/apps/req.c @@ -622,8 +622,7 @@ int req_main(int argc, char **argv) if (pkey_type == EVP_PKEY_EC) { BIO_printf(bio_err, "Generating an EC private key\n"); } else { - BIO_printf(bio_err, "Generating a %ld bit %s private key\n", - newkey, keyalgstr); + BIO_printf(bio_err, "Generating a %s private key\n", keyalgstr); } EVP_PKEY_CTX_set_cb(genctx, genpkey_cb); |