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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Mar 5 09:08:29 CET 2019


Nikos Mavrogiannopoulos started a new discussion on lib/auth/psk.c:

>  		return GNUTLS_E_ILLEGAL_SRP_USERNAME;
>  	}
>  
> -	memcpy(info->username, username.data, username.size);
> -	info->username[username.size] = 0;
> +	_gnutls_copy_psk_auth_info(info, &username);
>  
>  	ret =
> -	    _gnutls_psk_pwd_find_entry(session, info->username, &psk_key);
> +	    _gnutls_psk_pwd_find_entry(session, info->username, strlen(info->username), &psk_key);

strlen here as well

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


More information about the Gnutls-devel mailing list