[gnutls-devel] GnuTLS | pkcs11: respect Mozilla's time-based distrust upon issuer lookup (!1725)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Mar 14 15:45:04 CET 2023




Alexander Sosedkin commented on a discussion on lib/x509/verify.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1313470069

>  		if (gnutls_x509_crt_check_issuer
>  		    (certificate_list[clist_size - 1],
>  		     certificate_list[clist_size - 1]) != 0) {
>  			clist_size--;

Sorry, I can't say I understood your answer, so let me elaborate on my question:

How I read that code:
for a chain of EE <- intermediate <- CA (self-signed, in trust store, but distrusted through distrust-after). CA is checked to be self-signed, certificate_list gets shortened, CA is excluded from the newly added distrust-after check below, which doesn't seem to be the desired result.

What have I misenterpreted?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1725#note_1313470069
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/20230314/aa62db73/attachment.html>


More information about the Gnutls-devel mailing list