Topic: Is it possible to use session ticket to optmize DTLS resumption ?
Hi, I'm trying to use session ticket to do dtls resumption. I add some function in the C# wrapper so that I can call these function in C#, but it just doesn't work. After reading some source code, I found out that the "ssl->session.ticketLen" in get_SessionTicket will always be zero, which I think is because I don't trigger the support on session ticket of server correctly. My current code look like:
Client:
wolfssl_CTX_UseSessionTicket(ctx);
...
a connect
...
wolfssl_get_SessionTicket(ssl, ticket, ref ticketLen);
...
wolfssl_set_SessionTicket(ssl, ticket, ticketLen);
Server:
wolfssl.CTX_UseSessionTicket(ctx);
// no other change
Thanks