v3 – github.com/zmap/zlint/v3 Index | Files | Directories

package zlint

import "github.com/zmap/zlint/v3"

Index

Constants

const Version int64 = 3

Types

type ResultSet

type ResultSet struct {
	Version         int64                       `json:"version"`
	Timestamp       int64                       `json:"timestamp"`
	Results         map[string]*lint.LintResult `json:"lints"`
	NoticesPresent  bool                        `json:"notices_present"`
	WarningsPresent bool                        `json:"warnings_present"`
	ErrorsPresent   bool                        `json:"errors_present"`
	FatalsPresent   bool                        `json:"fatals_present"`
}

ResultSet contains the output of running all lints in a registry against a single certificate.

func LintCertificate

func LintCertificate(c *x509.Certificate) *ResultSet

LintCertificate runs all registered lints on c using default options, producing a ResultSet.

Using LintCertificate(c) is equivalent to calling LintCertificateEx(c, nil).

func LintCertificateEx

func LintCertificateEx(c *x509.Certificate, registry lint.Registry) *ResultSet

LintCertificateEx runs lints from the provided registry on c producing a ResultSet. Providing an explicit registry allows the caller to filter the lints that will be run. (See lint.Registry.Filter())

If registry is nil then the global registry of all lints is used and this function is equivalent to calling LintCertificate(c).

func LintOcspResponse

func LintOcspResponse(o *ocsp.Response) *ResultSet

LintOcspResponse runs all registered lints on o using default options, producing a ResultSet.

Using LintOcspResponse(o) is equivalent to calling LintOcspResponseEx(o, nil).

func LintOcspResponseEx

func LintOcspResponseEx(o *ocsp.Response, registry lint.Registry) *ResultSet

LintOcspResponseEx runs lints from the provided registry on o producing a ResultSet. Providing an explicit registry allows the caller to filter the lints that will be run. (See lint.Registry.Filter())

If registry is nil then the global registry of all lints is used and this function is equivalent to calling LintOcspResponse(o).

func LintRevocationList

func LintRevocationList(r *x509.RevocationList) *ResultSet

LintRevocationList runs all registered lints on r using default options, producing a ResultSet.

Using LintRevocationList(r) is equivalent to calling LintRevocationListEx(r, nil).

func LintRevocationListEx

func LintRevocationListEx(r *x509.RevocationList, registry lint.Registry) *ResultSet

LintRevocationListEx runs lints from the provided registry on r producing a ResultSet. Providing an explicit registry allows the caller to filter the lints that will be run. (See lint.Registry.Filter())

If registry is nil then the global registry of all lints is used and this function is equivalent to calling LintRevocationList(r).

Source Files

resultset.go zlint.go

Directories

PathSynopsis
cmd
cmd/zlint
cmd/zlint-gtld-update
formattedoutput
integration
integration/lints
integration/lints/filters
integration/lints/lint
integration/lints/lints
lint
lints
lints/apple
lints/cabf_br
lints/cabf_cs_br
lints/cabf_ev
lints/cabf_smime_br
lints/community
lints/etsi
lints/mozilla
lints/rfc
profiles
test
util
Version
v3.6.6 (latest)
Published
Apr 19, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
2 days ago

Tools for package owners.