[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
Sat Nov 17 19:45:38 CET 2018


Tom started a new 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");

Just a minor detail when looking at this code. Maybe put spaces around the ops in the second param of fail()?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/806#note_118009620
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/20181117/26961601/attachment-0001.html>


More information about the Gnutls-devel mailing list