Skip to content

Commit

Permalink
NewIssuserMatcher should be NewIssuerMatcher (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Steindler <[email protected]>
  • Loading branch information
steiza authored Jul 24, 2024
1 parent 17ad99b commit 2b6fc6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/verify/certificate_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s SubjectAlternativeNameMatcher) Verify(actualCert certificate.Summary) er
return nil
}

func NewIssuserMatcher(issuerValue, regexpStr string) (IssuerMatcher, error) {
func NewIssuerMatcher(issuerValue, regexpStr string) (IssuerMatcher, error) {
r, err := regexp.Compile(regexpStr)
if err != nil {
return IssuerMatcher{}, err
Expand Down Expand Up @@ -178,7 +178,7 @@ func NewShortCertificateIdentity(issuer, issuerRegex, sanValue, sanRegex string)
return CertificateIdentity{}, err
}

issuerMatcher, err := NewIssuserMatcher(issuer, issuerRegex)
issuerMatcher, err := NewIssuerMatcher(issuer, issuerRegex)
if err != nil {
return CertificateIdentity{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/verify/certificate_identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func certIDForTesting(sanValue, sanRegex, issuer, issuerRegex, runnerEnv string)
return CertificateIdentity{}, err
}

issuerMatcher, err := NewIssuserMatcher(issuer, issuerRegex)
issuerMatcher, err := NewIssuerMatcher(issuer, issuerRegex)
if err != nil {
return CertificateIdentity{}, err
}
Expand Down

0 comments on commit 2b6fc6d

Please sign in to comment.