Problem:
For clients wanting to support session resumption with tickets, you could use the api
conf_builder.set_session_ticket_callback(SessionTicketCallback)?;
today. However, this doesn't take into account TLS 1.2 servers that implement SessionIds.
One workaround would be to use conn.session_ticket()
but that returns either a SessionId or SessionTicket or none (TLS 1.3) which have overlaps with the session ticket callback mechanism.
Solution:
Option 1. Provide a callback like for SessionTicket but for SessionId
Option 2. Provide a function that returns SessionId without session ticket.