[gnutls-devel] GnuTLS | x509: check certificate trust status when adding CA through AIA (!1354)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Nov 19 15:27:41 CET 2020




Daiki Ueno commented on a discussion on lib/x509/common.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1354#note_450977991

>  	 * in issuer array. O(n^2) so consider that before
>  	 * increasing DEFAULT_MAX_VERIFY_DEPTH.
>  	 */
> -	for (i = 0; i < *clist_size; i++) {
> -		for (j = 1; j < *clist_size; j++) {
> +	for (i = 0; i < clist_size; i++) {
> +		for (j = 1; j < clist_size; j++) {

Right, the example is incorrect; that should be something like:

- the initial input is: [A, C, E, D, G, I, H]
- round 1: [A, C, E, D, G, I, H], return 1
- round 2: [A, C, D, E, G, I, H], return 3
- round 3: [A, C, D, E, G, H, I], return 3

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1354#note_450977991
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/20201119/5c071374/attachment.html>


More information about the Gnutls-devel mailing list