checker

package
v0.0.0-...-5b64707 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(old, new *x509.RevocationList) (*diffResult, error)

Diff returns the sets of serials that were added and removed between two CRLs. In order to be comparable, the CRLs must come from the same issuer, and be given in the correct order (the "old" CRL's Number and ThisUpdate must both precede the "new" CRL's).

func Validate

func Validate(crl *x509.RevocationList, issuer *x509.Certificate, ageLimit time.Duration) error

Validate runs the given CRL through our set of lints, ensures its signature validates (if supplied with a non-nil issuer), and checks that the CRL is less than ageLimit old. It returns an error if any of these conditions are not met.

Types

This section is empty.

Jump to

Keyboard shortcuts

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