]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/dh/dh_lib.c
DH: stop setting the private key length arbitrarily
authorRichard Levitte <levitte@openssl.org>
Thu, 15 Oct 2020 05:14:16 +0000 (07:14 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 27 Oct 2020 14:13:54 +0000 (15:13 +0100)
commit28e1d588f14404d480cc2bd38827ecd587625643
treed694b95a240cf667d496aea5944137b2a770aeed
parent09803e9ce3a8a555e7014ebd11b4c80f9d300cf0
DH: stop setting the private key length arbitrarily

The private key length is supposed to be a user settable parameter.
We do check if it's set or not, and if not, we do apply defaults.

Fixes #12071

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13140)
crypto/dh/dh_backend.c
crypto/dh/dh_key.c
crypto/dh/dh_lib.c