[gnutls-devel] GnuTLS | ext/session_ticket: eliminate redundant memcpy (!1040)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Jul 10 15:15:09 CEST 2019




Daiki Ueno commented on a discussion on lib/ext/session_ticket.c: https://gitlab.com/gnutls/gnutls/merge_requests/1040#note_190362415

>  	_gnutls_write_uint16(ticket->encrypted_state_len, p);
>  	p += 2;
>  
> -	memcpy(p, ticket->encrypted_state, ticket->encrypted_state_len);
> +	/* Encrypted state shall already be filled in by the caller. */

Thanks, I've expanded the comment.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1040#note_190362415
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/20190710/11ede818/attachment.html>


More information about the Gnutls-devel mailing list