[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:10:27 CEST 2021
Alexander Sosedkin commented on a discussion on tests/tls13/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1457#note_641968071
> + 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);
Right. And why not `gnutls_priority_set_direct(session, "NORMAL", NULL);`?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1457#note_641968071
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/57955d00/attachment-0001.html>
More information about the Gnutls-devel
mailing list