[gnutls-devel] GnuTLS | Fix non-empty session id (TLS13_APPENDIX_D4) (!1350)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Nov 19 13:33:52 CET 2020




Daiki Ueno started a new discussion on lib/handshake.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1350#note_450863838

>  			goto cleanup;
>  		}
>  
> +		uint8_t resumed_session_id[GNUTLS_MAX_SESSION_ID_SIZE];
> +		memcpy(resumed_session_id, session->internals.resumed_security_parameters.session_id, session_id_len);

I think you could avoid memcpy by having a pointer to either `session->internals.resumed_security_parameters.session_id` or `session->security_parameters.session_id` (in TLS 1.3).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1350#note_450863838
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/20201119/1af05013/attachment-0001.html>


More information about the Gnutls-devel mailing list