crlcache

package
v1.1.457 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package crlcache defines the Verifier interface used by transport.TLSInfo to check client certificates against a CRL or OCSP source. It contains no implementation; callers supply their own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

type Verifier interface {
	// Update refreshes the underlying CRL/OCSP cache.
	Update() error

	// Verify returns OCSP status:
	//   ocsp.Revoked - the certificate found in CRL
	//   ocsp.Good - the certificate not found in a valid CRL
	//   ocsp.Unknown - no CRL or OCSP response found for the certificate
	Verify(crt *x509.Certificate, issuer *x509.Certificate) (int, error)
}

Verifier checks the revocation status of a certificate against its issuer. Implementations must be safe for concurrent use: transport.NewTLSListener calls Verify from concurrent handshake goroutines.

Jump to

Keyboard shortcuts

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