Skip to content

Commit dd8f171

Browse files
committed
tls early client: read first 1-RTT data from server
1 parent 734f9e2 commit dd8f171

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tls/client-tls13-earlydata.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ int main(int argc, char** argv)
143143
fprintf(stderr, "wolfSSL_get1_session failed\n");
144144
goto cleanup;
145145
}
146+
147+
len = wolfSSL_read(ssl, recvBuf, sizeof(recvBuf) - 1);
148+
if (len > 0) {
149+
recvBuf[len] = '\0';
150+
printf("Server sent: %s\n", recvBuf);
151+
}
146152

147153
printf("Initial handshake complete, session ticket obtained.\n");
148154

0 commit comments

Comments
 (0)