Lines Matching defs:TLSInfo
40 func NewListener(addr, scheme string, tlsinfo *TLSInfo) (l net.Listener, err error) {
55 func wrapTLS(scheme string, tlsinfo *TLSInfo, l net.Listener) (net.Listener, error) {
62 type TLSInfo struct { struct
63 CertFile string
64 KeyFile string
65 TrustedCAFile string
66 ClientCertAuth bool
67 CRLFile string
68 InsecureSkipVerify bool
71 ServerName string
75 HandshakeFailure func(*tls.Conn, error)
80 CipherSuites []uint16
82 selfCert bool
86 parseFunc func([]byte, []byte) (tls.Certificate, error)
89 AllowedCN string
93 Logger *zap.Logger
97 EmptyCN bool
100 func (info TLSInfo) String() string {
104 func (info TLSInfo) Empty() bool {
237 func (info TLSInfo) baseConfig() (*tls.Config, error) {
324 func (info TLSInfo) cafiles() []string {
333 func (info TLSInfo) ServerConfig() (*tls.Config, error) {
360 func (info TLSInfo) ClientConfig() (*tls.Config, error) {