crlreader

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRLEntry

type CRLEntry struct {
	Issuer             *pkix.RDNSequence
	RevokedCertificate *pkix.RevokedCertificate
}

type CRLMetaInfo

type CRLMetaInfo struct {
	Issuer     pkix.RDNSequence
	ThisUpdate time.Time
	NextUpdate time.Time `asn1:"tag:0,optional"`
}

type CRLProcessor

type CRLProcessor interface {
	StartUpdateCrl(crlMetaInfo *CRLMetaInfo) error
	InsertRevokedCertificate(entry *CRLEntry) error
	UpdateExtendedMetaInfo(info *ExtendedCRLMetaInfo) error
	UpdateSignatureCertificate(entry *core.CertificateChainEntry) error
}

type CRLReadResult

type CRLReadResult struct {
	HashAndVerifyStrategy *signatureverify.HashAndVerifyStrategies
	Signature             *asn1parser.BitString
	CalculatedSignature   []byte
	Issuer                *pkix.RDNSequence
	CRLExtensions         *[]pkix.Extension
}

type CRLReader added in v1.0.4

type CRLReader interface {
	ReadCRL(crlProcessor CRLProcessor, crlFilePath string) (*CRLReadResult, error)
}

type ExtendedCRLMetaInfo

type ExtendedCRLMetaInfo struct {
	CRLNumber *big.Int `asn1:"tag:0,optional"`
}

type StreamingCRLFileReader added in v1.0.4

type StreamingCRLFileReader struct {
}

func (StreamingCRLFileReader) ReadCRL added in v1.0.4

func (StreamingCRLFileReader) ReadCRL(crlProcessor CRLProcessor, crlFilePath string) (*CRLReadResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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