-
Notifications
You must be signed in to change notification settings - Fork 925
Description
Version
5.5.4
Description
I would like to use TLSv1.3 session resumption on an embedded client to improve performance, but I can't figure out the intended architecture.
The client-tls13-resume.c example saves the session information in a local variable but this doesn't appear to use the library's session cache. So a useful test, but not the practical solution I'm looking for. Using this example, I can see the printf("Session ID reused; Successful resume\n"); message.
I found that if I call wolfSSL_SetServerID from my client, passing the host name for the id, I get a resumed session on the second call (to the same server) of wolfSSL_connect(…). But when making the third connection, I get a SOCKET_ERROR_E on the client and on the server DoTls13ClientHello, return -423 (BAD_BINDER) leaving me very confused. The connection is closed each time.
I'm using the echoserver example on the server end. Is there an example for session resumption that employs the cache?