Skip to content

Commit c2bc427

Browse files
filter out whitespaces from trust domains
1 parent 92cbad2 commit c2bc427

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/verifier/multi.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
2223
type 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.
4041
func (m *Multi) Verify(bundles []*bundle.Bundle, h *v1.Hash) ([]*verify.VerificationResult, error) {
4142
var res = []*verify.VerificationResult{}
4243
var err error

0 commit comments

Comments
 (0)