Skip to content

Commit 2be77cd

Browse files
authored
Fix TLS handshake test failures in Schannel and OpenSSL. (#551)
1 parent 551dd57 commit 2be77cd

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/platform/tls_openssl.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,12 +1362,22 @@ QuicTlsProcessData(
13621362
_Inout_ QUIC_TLS_PROCESS_STATE* State
13631363
)
13641364
{
1365-
UNREFERENCED_PARAMETER(DataType);
13661365
int Ret = 0;
13671366
int Err = 0;
13681367

13691368
QUIC_DBG_ASSERT(Buffer != NULL || *BufferLength == 0);
13701369

1370+
if (DataType == QUIC_TLS_TICKET_DATA) {
1371+
TlsContext->ResultFlags = QUIC_TLS_RESULT_ERROR;
1372+
1373+
QuicTraceLogConnVerbose(
1374+
OpenSslProcessData,
1375+
TlsContext->Connection,
1376+
"Ignoring %u ticket bytes",
1377+
*BufferLength);
1378+
goto Exit;
1379+
}
1380+
13711381
if (*BufferLength != 0) {
13721382
QuicTraceLogConnVerbose(
13731383
OpenSslProcessData,

src/platform/tls_schannel.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,8 +2188,17 @@ QuicTlsProcessData(
21882188
_Inout_ QUIC_TLS_PROCESS_STATE* State
21892189
)
21902190
{
2191-
UNREFERENCED_PARAMETER(DataType);
21922191
QUIC_TLS_RESULT_FLAGS Result = 0;
2192+
if (DataType == QUIC_TLS_TICKET_DATA) {
2193+
Result = QUIC_TLS_RESULT_ERROR;
2194+
2195+
QuicTraceLogConnVerbose(
2196+
SchannelProcessingData,
2197+
TlsContext->Connection,
2198+
"Ignoring %u ticket bytes",
2199+
*BufferLength);
2200+
goto Error;
2201+
}
21932202

21942203
QuicTraceLogConnVerbose(
21952204
SchannelProcessingData,

0 commit comments

Comments
 (0)