[gnutls-devel] GnuTLS | tls13/key_update: Expose a manual KeyUpdate function (!1965)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Sep 5 05:43:48 CEST 2025
Alistair Francis started a new discussion on tests/handshake-write.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1965#note_2731512655
> TRANSFER(client, server, MSG, strlen(MSG), buffer, MAX_BUF);
> TRANSFER(server, client, MSG, strlen(MSG), buffer, MAX_BUF);
>
> + /* Trigger a KeyUpdate that won't actually be sent to the client,
> + * as handshake_read_func() will drop the message.
> + */
> + gnutls_session_key_update(server, GNUTLS_KU_PEER);
> +
> + /* Manually update the client keys */
> + gnutls_handshake_update_receiving_key(client);
As a easy test if you comment this line out the test will fail as the key isn't updated on the client
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1965#note_2731512655
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/20250905/fc01150d/attachment.html>
More information about the Gnutls-devel
mailing list