matcher

package
v0.0.0-...-e76495e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMatcherFromFlags

func CreateMatcherFromFlags(MatchSubjectRegex string, CNset map[string]bool, FuzzySubjects []string) (scanner.Matcher, error)

Types

type MatchSubjectRegexUnkCA

type MatchSubjectRegexUnkCA struct {
	CertificateSubjectRegex    *regexp.Regexp
	PrecertificateSubjectRegex *regexp.Regexp
	FuzzySubject               []string
	CAWhitelist                map[string]bool
}

func (MatchSubjectRegexUnkCA) CertificateMatches

func (m MatchSubjectRegexUnkCA) CertificateMatches(c *x509.Certificate) bool

Returns true if either CN or any SAN of |c| matches |CertificateSubjectRegex| and Issuer not in CA whitelist.

func (MatchSubjectRegexUnkCA) PrecertificateMatches

func (m MatchSubjectRegexUnkCA) PrecertificateMatches(p *ct.Precertificate) bool

Returns true if either CN or any SAN of |p| matches |PrecertificatesubjectRegex| and Issuer is not in CA whitelist.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL