From ee55a2072785701d7f9322013f5e9968b1ff141f Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 15 Oct 2020 07:14:16 +0200 Subject: [PATCH] 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) --- crypto/dh/dh_lib.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3