[gnutls-devel] GnuTLS | gnutls_certificate_type_get*: ensure that the default type is returned (!806)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Nov 18 21:17:14 CET 2018


Tom commented on a discussion on tests/resume.c:

>  #if defined(USE_X509)
>  	unsigned int l;
>  
> +	if (gnutls_certificate_type_get(session) != GNUTLS_CRT_X509)
> +		fail("did not find the expected X509 certificate type! (%d)\n", gnutls_certificate_type_get(session));
> +
>  	if (counter == 0 && gnutls_certificate_get_ours(session) == NULL)
>  		fail("no certificate returned on server side (%s)\n", counter?"resumed session":"first session");

I was talking about this part: `counter?"resumed session":"first`.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/806#note_118100304
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/20181118/37e99f64/attachment.html>


More information about the Gnutls-devel mailing list