[gnutls-devel] GnuTLS | src: print_info: prefer gnutls_psk_server_get_username2 (!1730)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon May 1 08:22:20 CEST 2023




Daiki Ueno commented on a discussion on lib/psk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1730#note_1373548425

>  	if (info == NULL)
>  		return NULL;
>  
> -	if (info->username[0] != 0

I don't think this changes the behavior. Given `_gnutls_has_embedded_null` is identical to `memchr(..., '\0', ...)`, it doesn't matter where the NUL-byte actually appears, either at the beginning or in the middle.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1730#note_1373548425
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/20230501/e4188dd2/attachment-0001.html>


More information about the Gnutls-devel mailing list