Fixes related to broken DH support in CMS
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 14 Jan 2021 13:43:11 +0000 (14:43 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 21 Jan 2021 17:08:02 +0000 (18:08 +0100)
commitf23e4a17a2309793a0ac787725736f1c4474c804
treee449cb58462d714eddd2ea51ece55a8f43d8223d
parent6d9a54c6e661094c0668f0307213789c2d9be3ec
Fixes related to broken DH support in CMS

- DH support should work with both DH and DHX keys
- UKM parameter is optional so it can have length 0

Fixes #13810

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13869)
crypto/cms/cms_env.c
crypto/evp/dh_ctrl.c
crypto/evp/p_lib.c
test/recipes/80-test_cms.t