[gnutls-devel] GnuTLS | When negotiating TLS1.3 enforce certificate key usage (!902)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Feb 6 05:52:35 CET 2019
Nikos Mavrogiannopoulos commented on a discussion on lib/auth.c:
> }
> }
>
> + /* sanity tests */
> + if (type == GNUTLS_CRD_CERTIFICATE) {
> + gnutls_certificate_credentials_t c = cred;
> + unsigned i;
> + bool allow_tls13 = 0;
> + unsigned key_usage;
> +
> + if (c != NULL && c->ncerts > 0) {
Do you mean replacing it with `!= 0`? I find the `> 0` to convey the intention better rather than the `!=` when reading the code. What do you think?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/902#note_138614394
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/20190206/914c51ad/attachment.html>
More information about the Gnutls-devel
mailing list