[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 11:27:59 CET 2020
Daiki Ueno commented on a discussion on lib/x509/common.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1354#note_450723419
> * 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++) {
Note that the sorting starts from the first element in clist, which will be always present in the result. If it was a signer of other certs, clist wouldn't be sortable.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1354#note_450723419
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/17f78cc4/attachment.html>
More information about the Gnutls-devel
mailing list