Set the DH key size for TLS 1.3 when secret calculated

This commit is contained in:
Sean Parkinson 2019-01-29 08:55:40 +10:00
parent 0b2bbc33bd
commit 574238dea0

View File

@ -6287,6 +6287,8 @@ static int TLSX_KeyShare_ProcessDh(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
ssl->arrays->preMasterSz = params->p_len;
}
ssl->options.dhKeySz = params->p_len;
wc_FreeDhKey(dhKey);
#ifdef WOLFSSL_SMALL_STACK
XFREE(dhKey, ssl->heap, DYNAMIC_TYPE_DH);