[gnutls-devel] GnuTLS | Serialise `gnutls_session_t session` (#1712)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Jun 2 02:24:57 CEST 2025



Alistair Francis created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1712



As part of supporting KeyUpdate with ktls-utils/tlshd and the Linux kernel TLS implementation we need a way to save and restore the `gnutls_session_t session`. The idea is to convert the `gnutls_session_t session` to an simple byte array, save that in the kernel keyring and then restore it when required.

The existing `gnutls_session_set_data()`/`gnutls_session_get_data()` functions don't save and restore enough state to just call `gnutls_session_key_update()` on the restored session without any other handshake.

So the question is, is there a way to serialise the session data and if not is that something I could implement and would be accepted upstream?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1712
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250602/798317c0/attachment.html>


More information about the Gnutls-devel mailing list