openssl/crypto/dh
Shane Lontis 55f02cb684 Change DH_get_nid() to set the value of q if it is not already set
Fixes #11108.

It only sets q if a valid named group is found.
The function signature was recently changed to pass a non const DH pointer
in order to allow the nid to be cached internally. As an extension of this
the value of q can now also be set as q is always known for named groups.
The length field is also set if q is set.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11114)
2020-03-07 07:47:58 +10:00
..
build.info Add DH key validation to default provider 2020-03-05 08:25:55 +10:00
dh192.pem
dh512.pem
dh1024.pem
dh2048.pem
dh4096.pem
dh_ameth.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_asn1.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_check.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_depr.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_err.c util/mkerr.pl: make it not depend on the function code 2019-09-12 17:59:52 +02:00
dh_gen.c Add pairwise consistency self tests to asym keygenerators 2020-03-03 14:02:36 +10:00
dh_group_params.c Change DH_get_nid() to set the value of q if it is not already set 2020-03-07 07:47:58 +10:00
dh_kdf.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_key.c Change DH_get_nid() to set the value of q if it is not already set 2020-03-07 07:47:58 +10:00
dh_lib.c Change DH_get_nid() to set the value of q if it is not already set 2020-03-07 07:47:58 +10:00
dh_local.h Add FFC param/key validation 2020-02-16 13:03:46 +10:00
dh_meth.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_pmeth.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_prn.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00
dh_rfc5114.c Deprecate the low level Diffie-Hellman functions. 2020-02-20 19:04:57 +10:00