[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:04:32 CEST 2021




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

> -	do {
> -		ret = gnutls_handshake(session);
> -		if (ret == GNUTLS_E_INTERRUPTED) { /* expected */
> -			break;
> -		}
> -	} while (ret < 0 && gnutls_error_is_fatal(ret) == 0);
> -
> -	if (ret < 0)
> -		myfail("handshake error: %s\n", gnutls_strerror(ret));
> +	/* Init client */
> +	gnutls_certificate_allocate_credentials(&ccred);
> +	assert(gnutls_certificate_set_x509_trust_mem
> +	       (ccred, &ca3_cert, GNUTLS_X509_FMT_PEM) >= 0);
>  
> -	if (gnutls_group_get(session) != exp_group)
> -		myfail("group doesn't match the expected: %s\n", gnutls_group_get_name(gnutls_group_get(session)));

Good catch, added it back.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1457#note_641959875
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/5df5cec2/attachment-0001.html>


More information about the Gnutls-devel mailing list