Commit 6e873259 authored by Richard Levitte's avatar Richard Levitte
Browse files

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: default avatarPaul Yang <yang.yang@baishancloud.com>
Reviewed-by: default avatarPaul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7096)

(cherry picked from commit 17147181)
parent 62025a45
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -659,8 +659,7 @@ int MAIN(int argc, char **argv)
            }
        }

        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);
        EVP_PKEY_CTX_set_app_data(genctx, bio_err);