tls early client: read first 1-RTT data from server

pull/530/head
Juliusz Sosinowicz 2025-11-07 13:57:51 +01:00
parent 734f9e2ff9
commit dd8f171609
1 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,12 @@ int main(int argc, char** argv)
fprintf(stderr, "wolfSSL_get1_session failed\n");
goto cleanup;
}
len = wolfSSL_read(ssl, recvBuf, sizeof(recvBuf) - 1);
if (len > 0) {
recvBuf[len] = '\0';
printf("Server sent: %s\n", recvBuf);
}
printf("Initial handshake complete, session ticket obtained.\n");