package
0.0.0-20230331131523-deb0478a2e52
Repository: https://github.com/hellobchain/third_party.git
Documentation: pkg.go.dev

# Packages

Package config in the ocsp directory provides configuration data for an OCSP signer.

# Functions

NewDBSource creates a new DBSource type with an associated dbAccessor.
NewResponder instantiates a Responder with the give Source.
NewSigner simply constructs a new StandardSigner object from the inputs, taking the interval in seconds.
NewSignerFromFile reads the issuer cert, the responder cert and the responder key from PEM files, and takes an interval in seconds.
NewSourceFromFile reads the named file into an InMemorySource.
ReasonStringToCode tries to convert a reason string to an integer code.

# Variables

ErrNotFound indicates the request OCSP response was not found.
StatusCode is a map between string statuses sent by cli/api to ocsp int statuses.

# Structs

DBSource represnts a source of OCSP responses backed by the certdb package.
A Responder object provides the HTTP logic to expose a Source of OCSP responses.
SignRequest represents the desired contents of a specific OCSP response.
StandardSigner is the default concrete type of OCSP signer.

# Interfaces

Signer represents a general signer of OCSP responses.
Source represents the logical source of OCSP responses, i.e., the logic that actually chooses a response based on a request.

# Type aliases

An InMemorySource is a map from serialNumber -> der(response).