[gnutls-devel] GnuTLS | support non-NULL-terminated PSKs (!917)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Dec 3 16:03:18 CET 2019




Tim Rühsen started a new discussion on lib/psk.c: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_253998568

>  	if (info == NULL)
>  		return NULL;
>  
> -	if (info->username[0] != 0)
> +	if (info->username[0] != 0 && !_gnutls_has_embedded_null(info->username, info->username_len))

Is info->username guaranteed to be 0-terminated ?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_253998568
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/20191203/afc10ea6/attachment.html>


More information about the Gnutls-devel mailing list