[gnutls-devel] GnuTLS | tests: tls13/key_share: rewrite as single process (!1457)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Aug 3 15:51:00 CEST 2021




Daiki Ueno commented on a discussion on tests/tls13/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1457#note_642019763

> +	gnutls_handshake_set_hook_function(server, GNUTLS_HANDSHAKE_ANY,
>  					   GNUTLS_HOOK_BOTH,
>  					   client_hello_callback);
> -	ctx.group = exp_group;
> +	ctx.group = group;
>  	ctx.ngroups = ngroups;
> -	gnutls_session_set_ptr(session, &ctx);
> +	gnutls_session_set_ptr(server, &ctx);
>  
>  	/* avoid calling all the priority functions, since the defaults
>  	 * are adequate.
>  	 */
> -	gnutls_priority_set_direct(session, "NORMAL:+VERS-TLS1.3", NULL);
> -
> -	gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred);
> +	gnutls_priority_set_direct(server, "NORMAL:+VERS-TLS1.3", NULL);

I suppose it's explicitly set for future proof (e.g., when TLS 1.3 is obsolete)?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1457#note_642019763
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/20210803/0a9a06b8/attachment.html>


More information about the Gnutls-devel mailing list