Re: [libmicrohttpd] How to implement gnutls session resumption in libmicrohttpd

2023-01-19 Thread Jimmy
Dear Christian, Thank you very much for your help ! I followed your advice and made the following code: https://github.com/jiju8420/resume_session . It seems to work because my session ticket value is not zero when I scan the network traffic with Wireshark. Please feel free to suggest ideas to i

Re: [libmicrohttpd] How to implement gnutls session resumption in libmicrohttpd

2022-12-24 Thread Christian Grothoff
Dear Jimmy, I've not tested this, but I believe this should work: - create a key using gnutls_session_ticket_key_generate - register a MHD_NotifyConnectionCallback using MHD_OPTION_NOTIFY_CONNECTION - inside that callback, use MHD_get_connection_info with MHD_CONNECTION_INFO_GNUTLS_SESSION to g