File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ const (
1717 GitHubIssuer = "GitHub, Inc."
1818)
1919
20- // Multi is a Verifier that knows about multiple trust roots and inspects
21- // the bundle to select the correct trust root for each provided bundle.
20+ // Multi is a Verifier that knows about multiple trust roots.
21+ // During verification each trust root are tried until a successful
22+ // verification is reached.
2223type Multi struct {
2324 V []* Verifier
2425}
@@ -34,9 +35,9 @@ func NewMulti(v []*Verifier) *Multi {
3435 }
3536}
3637
37- // Verify iterates over each bundle and selects the correct verifier
38- // based on the certificate's issuer. Bundles with unknown certificate
39- // issuers are ignored .
38+ // Verify iterates over each bundle, and verifies the bundle against
39+ // all known trust roots. If a sucessful verification occurs, no other
40+ // trust roots are tried .
4041func (m * Multi ) Verify (bundles []* bundle.Bundle , h * v1.Hash ) ([]* verify.VerificationResult , error ) {
4142 var res = []* verify.VerificationResult {}
4243 var err error
You can’t perform that action at this time.
0 commit comments