[gnutls-devel] GnuTLS | lib: mark infinite loops explicitly (!1043)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Jul 9 17:00:47 CEST 2019
Tim Rühsen started a new discussion on lib/x509/name_constraints.c: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189926159
> * not a CA. We do this check only on certificates marked as WWW server,
> * because that's where the CN check is only performed. */
> if (_gnutls_check_key_purpose(cert, GNUTLS_KP_TLS_WWW_SERVER, 0) != 0)
> do {
When at it... This `if () do { } while (0)` construction looks pretty weird :-)
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189926159
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/20190709/293d3544/attachment.html>
More information about the Gnutls-devel
mailing list