summaryrefslogtreecommitdiffstats
path: root/crypto/dh
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-10-15 07:14:16 +0200
committerRichard Levitte <levitte@openssl.org>2020-10-19 12:14:11 +0200
commitee55a2072785701d7f9322013f5e9968b1ff141f (patch)
tree0e32948206cf2b41e24cfcb4c948864b55829c6c /crypto/dh
parent0ba71d6a63add7efb244965c0f18502bd786a0f7 (diff)
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 <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13166)
Diffstat (limited to 'crypto/dh')
-rw-r--r--crypto/dh/dh_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c
index e6eba34ac9..6280472ade 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;
}