mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Use correct value for pSz when setting the dhKeySize in the session.
This commit is contained in:
committed by
Daniel Pouzzner
parent
f2c4567164
commit
40e3cac695
@ -6975,8 +6975,8 @@ static int TLSX_KeyShare_ProcessDh(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
|
||||
}
|
||||
pSz = params->p_len;
|
||||
#else
|
||||
pSz = wc_DhGetNamedKeyMinSize(keyShareEntry->group);
|
||||
if (pSz == 0) {
|
||||
ret = wc_DhGetNamedKeyParamSize(keyShareEntry->group, &pSz, NULL, NULL);
|
||||
if (ret != 0 || pSz == 0) {
|
||||
return PEER_KEY_ERROR;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user