forked from wolfSSL/wolfssl
Merge pull request #2064 from SparkiDev/tls13_dhkeysz
Set the DH key size for TLS 1.3 when secret calculated
This commit is contained in:
@ -6287,6 +6287,8 @@ static int TLSX_KeyShare_ProcessDh(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
|
|||||||
ssl->arrays->preMasterSz = params->p_len;
|
ssl->arrays->preMasterSz = params->p_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssl->options.dhKeySz = params->p_len;
|
||||||
|
|
||||||
wc_FreeDhKey(dhKey);
|
wc_FreeDhKey(dhKey);
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
XFREE(dhKey, ssl->heap, DYNAMIC_TYPE_DH);
|
XFREE(dhKey, ssl->heap, DYNAMIC_TYPE_DH);
|
||||||
|
Reference in New Issue
Block a user