mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
stop double-populating the ech extension since that
blows away the ech and it's current hpke context, causing the hrr handling to fail
This commit is contained in:
@ -11359,9 +11359,14 @@ static int TLSX_ECH_Use(WOLFSSL_EchConfig* echConfig, TLSX** extensions,
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int suiteIndex;
|
int suiteIndex;
|
||||||
|
TLSX* echX;
|
||||||
WOLFSSL_ECH* ech;
|
WOLFSSL_ECH* ech;
|
||||||
if (extensions == NULL)
|
if (extensions == NULL)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
/* skip if we already have an ech extension, we will for hrr */
|
||||||
|
echX = TLSX_Find(*extensions, TLSX_ECH);
|
||||||
|
if (echX != NULL)
|
||||||
|
return 0;
|
||||||
/* find a supported cipher suite */
|
/* find a supported cipher suite */
|
||||||
suiteIndex = EchConfigGetSupportedCipherSuite(echConfig);
|
suiteIndex = EchConfigGetSupportedCipherSuite(echConfig);
|
||||||
if (suiteIndex < 0)
|
if (suiteIndex < 0)
|
||||||
|
Reference in New Issue
Block a user