[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:07:41 CET 2019
Nikos Mavrogiannopoulos started a new discussion on lib/auth/dhe_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);
>
> /* Adjust the data */
> data += username.size + 2;
>
> ret =
> - _gnutls_psk_pwd_find_entry(session, info->username, &psk_key);
> + _gnutls_psk_pwd_find_entry(session, info->username, strlen(info->username), &psk_key);
shouldn't here be info->len?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_147288947
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/4396a9f5/attachment-0001.html>
More information about the Gnutls-devel
mailing list