[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:06:52 CET 2019


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

>  /* these structures should not use allocated data */
>  typedef struct psk_auth_info_st {
>  	char username[MAX_USERNAME_SIZE + 1];
> +	uint16_t len;
>  	dh_info_st dh;
>  	char hint[MAX_USERNAME_SIZE + 1];
>  } *psk_auth_info_t;
>  
>  typedef struct psk_auth_info_st psk_auth_info_st;
>  
> +inline static
> +void _gnutls_copy_psk_auth_info(psk_auth_info_t info, const gnutls_datum_t *psk)

instead of `psk` naming the value `username`, may make the function easier to grasp.

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


More information about the Gnutls-devel mailing list