[gnutls-devel] GnuTLS | support non-NULL-terminated PSKs (!917)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sat Oct 19 19:25:54 CEST 2019
Ander Juaristi commented on a discussion on lib/psk.c: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_232875770
> + **/
> +void
> +gnutls_psk_set_server_credentials_function2(gnutls_psk_server_credentials_t cred,
> + gnutls_psk_server_credentials_function2 func)
> {
> cred->pwd_callback = func;
> + cred->pwd_callback_legacy = NULL;
> +}
> +
> +static int call_client_callback_legacy(gnutls_session_t session,
> + gnutls_datum_t *username,
> + gnutls_datum_t *key)
> +{
> + int ret;
> + char *user_p;
> + gnutls_psk_client_credentials_t cred =
The `cred` pointer is dereferenced below, in [line 371](https://gitlab.com/gnutls/gnutls/blob/ajuaristi-issue-586/lib/psk.c#L371):
```
ret = cred->get_function_legacy(session, &user_p, key);
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_232875770
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/20191019/713fdf6e/attachment.html>
More information about the Gnutls-devel
mailing list