From: Richard Levitte Date: Thu, 15 Oct 2020 05:14:16 +0000 (+0200) Subject: DH: have DH_set_length() increment the dirty count. X-Git-Tag: openssl-3.0.0-alpha8~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee55a2072785701d7f9322013f5e9968b1ff141f;p=thirdparty%2Fopenssl.git DH: have DH_set_length() increment the dirty count. The recommended private key length is a key parameter among other key parameters, and is included in the key data transferred in an import or export between legacy implementations and provider implementations. Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/13166) --- diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index e6eba34ac9c..6280472ade4 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -243,6 +243,7 @@ long DH_get_length(const DH *dh) int DH_set_length(DH *dh, long length) { dh->length = length; + dh->dirty_cnt++; return 1; }