[gnutls-devel] GnuTLS | _gnutls_verify_crt_status: apply algorithm checks to trusted CAs and other cert improvements (!1140)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Dec 19 16:44:39 CET 2019
Nikos Mavrogiannopoulos commented on a discussion on lib/x509/verify.c: https://gitlab.com/gnutls/gnutls/merge_requests/1140#note_263212648
> +unsigned check_ca_sanity(const gnutls_x509_crt_t issuer,
> + time_t now, unsigned int flags)
> +{
> + unsigned int status = 0;
> + unsigned sigalg;
> + int ret;
> +
> + /* explicit time check for trusted CA that we remove from
> + * list. GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS
> + */
> + if (!(flags & GNUTLS_VERIFY_DISABLE_TRUSTED_TIME_CHECKS) &&
> + !(flags & GNUTLS_VERIFY_DISABLE_TIME_CHECKS)) {
> + status |= check_time_status(issuer, now);
> + }
> +
> + ret =
That was to avoid commenting on the code. These casts can be lost when restructuring the code (I have at least once messed something up).
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1140#note_263212648
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/20191219/3fcbd946/attachment-0001.html>
More information about the Gnutls-devel
mailing list