[gnutls-devel] GnuTLS | WIP: add support for 0-RTT (!775)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri Oct 19 10:37:26 CEST 2018
Daiki Ueno commented on a discussion on doc/cha-gtls-app.texi:
> +
> + ret = gnutls_record_recv_early_data(session, buffer, sizeof(buffer));
> + assert(ret >= 0);
> +
> + ...
> +
> + return ret;
> +@}
> +
> +int main()
> +@{
> + ...
> +
> + gnutls_handshake_set_hook_function(server, GNUTLS_HANDSHAKE_END_OF_EARLY_DATA,
> + GNUTLS_HOOK_POST, handshake_hook_func);
> + ...
Not sure why you refer to the previous revision, but note that the latest revision doesn't require `gnutls_record_recv_early_data` to be called in a handshake hook; the data retains after handshake and the server can check whether early data arrived with `gnutls_session_get_flags`.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/775#note_110177451
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/20181019/7de8a2ea/attachment-0001.html>
More information about the Gnutls-devel
mailing list