[gnutls-devel] GnuTLS | tls13/psk_ext_parser: simplify the iterator interface (!736)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Aug 23 14:50:29 CEST 2018


Daiki Ueno commented on a discussion on lib/ext/pre_shared_key.c:

>  		}
>  	}
>  
> -	if (psk_index < 0)
> -		return 0;
> -
> -	ret = _gnutls13_psk_ext_parser_find_binder(&psk_parser, psk_index,
> -						   &binder_recvd);
> -	if (ret < 0) {
> -		gnutls_assert();
> -		goto fail;
> +	_gnutls13_psk_ext_iter_init(&psk_iter, &psk_parser);
> +	for (i = 0; i <= psk_index; i++) {

I added a test in `tests/tls13/psk-ext`. I'd expect at the protocol level it could be tested by tlsfuzzer in the future :-)

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/736#note_96429043
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/20180823/9e0f7819/attachment-0001.html>


More information about the Gnutls-devel mailing list