[gnutls-devel] GnuTLS | gnutls-cli: Add option to wait longer for resumption data (!1232)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Apr 30 10:49:46 CEST 2020




Anderson Sasaki commented on a discussion on src/cli.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1232#note_334252536

>  	gnutls_datum_t edata = {NULL, 0};
>  
>  	if (gnutls_session_is_resumed(hd->session) == 0) {
> -		/* not resumed - obtain the session data */
> -		ret = gnutls_session_get_data2(hd->session, &rdata);
> -		if (ret < 0) {
> -			rdata.data = NULL;
> -		}
> +		do {
> +			/* not resumed - obtain the session data */
> +			ret = gnutls_session_get_data2(hd->session, &rdata);

The documentation I added is wrong, this version also works with TLS 1.2 as the checked flag `GNUTLS_SFLAGS_SESSION_TICKET` is also set in TLS 1.2. It will block if the server does not send the session ticket in the same way it would block in TLS 1.3. I'll fix the documentation and the commit message.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1232#note_334252536
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/20200430/bfbcf909/attachment.html>


More information about the Gnutls-devel mailing list