You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We shouldn't be adding certificates to the pool which we cannot reasonably later use during chain building. CertPool.Add doesn't have an error return, so we should just silently discard the certificate when isValid returns a non-nil error.
The text was updated successfully, but these errors were encountered:
I see there is a behavioral change here (i.e. Subjects will return the subject of a cert, but will likely not actually use it during chain building), but I don't really see how its breaking? (also side note, CertPool.Subjects is already deprecated, further changing its behavior seems fine).
We shouldn't be adding certificates to the pool which we cannot reasonably later use during chain building. CertPool.Add doesn't have an error return, so we should just silently discard the certificate when isValid returns a non-nil error.
The text was updated successfully, but these errors were encountered: