Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// HTTPClient is used for submitting certificates to logs
HTTPClient *http.Client
// GetCertificate returns the certificate (without SCTs) to present to the client
GetCertificate func(context.Context, *tls.ClientHelloInfo) (*tls.Certificate, error)
// GetLog looks up a log by the identifier that was presented in the server name
GetLog func(context.Context, string) (*loglist.Log, error)
// Cache an SCT for the given certificate fingerprint from the given log; the byte slice must not be modified after calling
CacheSCT func(context.Context, [32]byte, cttypes.LogID, []byte) error
// Return a cached SCT (or nil if not cached) for the given certificate fingerprint from the given log; the returned byte slice must not be modified
GetCachedSCT func(context.Context, [32]byte, cttypes.LogID) ([]byte, error)
}
Click to show internal directories.
Click to hide internal directories.