crlrepository

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	CRLLoader                       crlloader.CRLLoader
	CRLStore                        crlstore.CRLStore
	LastUpdateSignatureVerifyFailed bool
	LastUpdateSignature             *crlreader.CRLReadResult
	Loaded                          bool
	//only used temporary
	Chains *core.CertificateChains
	// contains filtered or unexported fields
}

type Repository

type Repository struct {
	Factory crlstore.Factory
	// contains filtered or unexported fields
}

func NewCRLRepository

func NewCRLRepository(logger *zap.Logger, crlConfig *config.CRLConfig, storeType StoreType) *Repository

func (*Repository) AddCRL

func (R *Repository) AddCRL(crlLocations *core.CRLLocations, chains *core.CertificateChains) (bool, error)

func (*Repository) Close

func (R *Repository) Close()

func (*Repository) DeleteTempFilesIfExist

func (R *Repository) DeleteTempFilesIfExist()

func (*Repository) IsRevoked

func (R *Repository) IsRevoked(certificate *x509.Certificate, locations *core.CRLLocations) (*core.RevocationStatus, error)

func (*Repository) UpdateCRL

func (R *Repository) UpdateCRL(crlLocations *core.CRLLocations, chains *core.CertificateChains) error

func (*Repository) UpdateCRLs

func (R *Repository) UpdateCRLs()

type StoreType

type StoreType int32
const (
	Map     StoreType = 0
	LevelDB StoreType = 1
)

Jump to

Keyboard shortcuts

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