[gnutls-devel] GnuTLS | ext/record_size_limit: distinguish sending and receiving limits (!985)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri May 10 15:52:52 CEST 2019




Daiki Ueno commented on a discussion on tests/tls-record-size-limit-asym.c: https://gitlab.com/gnutls/gnutls/merge_requests/985#note_168746474

> +	/* General init. */
> +	gnutls_global_set_log_function(tls_log_func);
> +	if (debug)
> +		gnutls_global_set_log_level(6);
> +
> +	/* Init server */
> +	gnutls_certificate_allocate_credentials(&serverx509cred);
> +	gnutls_certificate_set_x509_key_mem(serverx509cred,
> +					    &server2_cert, &server2_key,
> +					    GNUTLS_X509_FMT_PEM);
> +
> +	gnutls_init(&server, GNUTLS_SERVER);
> +	gnutls_credentials_set(server, GNUTLS_CRD_CERTIFICATE,
> +				serverx509cred);
> +
> +	gnutls_priority_set_direct(server, test->prio, NULL);

Added `assert` here around the call.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/985#note_168746474
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/20190510/e6d718ce/attachment-0001.html>


More information about the Gnutls-devel mailing list