openssl req: don't try to report bits
authorRichard Levitte <levitte@openssl.org>
Mon, 3 Sep 2018 11:17:03 +0000 (13:17 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 4 Sep 2018 12:26:48 +0000 (14:26 +0200)
commit1018ba701368bdcdec7190bfcd2fb4076d0c1244
tree5960f10b7f2885c52fce905bebb4bacb21542c5e
parent019cb1ec5bb74cd1e6ec11b5ce1f1b50b0c9b2e2
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)

(cherry picked from commit 17147181bd3f97c53592e2a5c9319b854b954039)
apps/req.c