Skip to content

Commit 3605c2a

Browse files
client and server fix for TLS ECH
1 parent 3540d89 commit 3605c2a

4 files changed

Lines changed: 252 additions & 97 deletions

File tree

src/internal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8623,8 +8623,6 @@ void wolfSSL_ResourceFree(WOLFSSL* ssl)
86238623
/* try to free the ech hashes in case we errored out */
86248624
ssl->hsHashes = ssl->hsHashesEch;
86258625
FreeHandshakeHashes(ssl);
8626-
ssl->hsHashes = ssl->hsHashesEchInner;
8627-
FreeHandshakeHashes(ssl);
86288626
#endif
86298627
XFREE(ssl->buffers.domainName.buffer, ssl->heap, DYNAMIC_TYPE_DOMAIN);
86308628

src/tls.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13584,6 +13584,8 @@ static int TLSX_ECH_Parse(WOLFSSL* ssl, const byte* readBuf, word16 size,
1358413584
}
1358513585
/* HRR with special confirmation */
1358613586
else if (msgType == hello_retry_request && ssl->options.useEch) {
13587+
/* TODO: confirmation may not exist -> segfault? */
13588+
printf("\n\ngot special confirmation\n\n\n");
1358713589
/* length must be 8 */
1358813590
if (size != ECH_ACCEPT_CONFIRMATION_SZ)
1358913591
return BAD_FUNC_ARG;
@@ -14439,6 +14441,7 @@ static int TLSX_Write(TLSX* list, byte* output, byte* semaphore,
1443914441
WOLFSSL_MSG("ECH extension to write");
1444014442
ret = ECH_WRITE((WOLFSSL_ECH*)extension->data, msgType,
1444114443
output + offset, &offset);
14444+
fprintf(stderr, "\t\thit this\n");
1444214445
break;
1444314446
#endif
1444414447
default:

0 commit comments

Comments
 (0)