[gnutls-devel] GnuTLS | gnutls_priority_set: do not override the version after handshake is complete (!777)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Oct 19 09:44:28 CEST 2018


Tom started a new discussion on tests/tls12-rehandshake-set-prio.c:

> +	gnutls_certificate_credentials_t serverx509cred;
> +	gnutls_session_t server;
> +	int sret = GNUTLS_E_AGAIN;
> +	/* Client stuff. */
> +	gnutls_certificate_credentials_t clientx509cred;
> +	gnutls_session_t client;
> +	int cret = GNUTLS_E_AGAIN;
> +	unsigned i;
> +
> +	/* General init. */
> +	reset_buffers();
> +	assert(gnutls_global_init()>=0);
> +
> +	gnutls_global_set_log_function(tls_log_func);
> +
> +	assert(gnutls_certificate_allocate_credentials(&serverx509cred)>=0);

You might want to add a `/* Init server */` comment here to be consistent with the client part below.

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


More information about the Gnutls-devel mailing list