Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) fh.HandlerFunc
func WithPeerCertificates ¶
Types ¶
type Config ¶
type Config struct {
Required bool
// AllowUnverified permits PeerCertificates when the TLS stack did not build
// a verified chain. Leave false for secure deployments. It exists for
// private-PKI applications that perform all verification in Verify.
AllowUnverified bool
AllowedSubjects []string
AllowedIssuers []string
Verify func(fh.Ctx, []*x509.Certificate) bool
Error ErrorHandler
Next func(fh.Ctx) bool
}
Click to show internal directories.
Click to hide internal directories.