type crypto/tls.Config
104 uses
crypto/tls (current package)
common.go#L492: config *Config
common.go#L566: type Config struct {
common.go#L643: GetConfigForClient func(*ClientHelloInfo) (*Config, error)
common.go#L971: func (c *Config) ticketKeyFromBytes(b [32]byte) (key ticketKey) {
common.go#L996: func (c *Config) Clone() *Config {
common.go#L1002: return &Config{
common.go#L1046: func (c *Config) initLegacySessionTicketKeyRLocked() {
common.go#L1083: func (c *Config) ticketKeys(configForClient *Config) []ticketKey {
common.go#L1152: func (c *Config) SetSessionTicketKeys(keys [][32]byte) {
common.go#L1167: func (c *Config) rand() io.Reader {
common.go#L1175: func (c *Config) time() time.Time {
common.go#L1183: func (c *Config) cipherSuites(aesGCMPreferred bool) []uint16 {
common.go#L1203: func (c *Config) supportedCipherSuites() []uint16 {
common.go#L1223: func (c *Config) supportedVersions(isClient bool) []uint16 {
common.go#L1248: func (c *Config) maxSupportedVersion(isClient bool) uint16 {
common.go#L1270: func (c *Config) curvePreferences(version uint16) []CurveID {
common.go#L1288: func (c *Config) supportsCurve(version uint16, curve CurveID) bool {
common.go#L1294: func (c *Config) mutualVersion(isClient bool, peerVersions []uint16) (uint16, bool) {
common.go#L1317: func (c *Config) getCertificate(clientHello *ClientHelloInfo) (*Certificate, error) {
common.go#L1379: config = &Config{}
common.go#L1564: func (c *Config) BuildNameToCertificate() {
common.go#L1591: func (c *Config) writeKeyLog(label string, clientRandom, secret []byte) error {
common.go#L1737: var emptyConfig Config
common.go#L1739: func defaultConfig() *Config {
conn.go#L44: config *Config // configuration passed to constructor
handshake_server.go#L165: var configForClient *Config
handshake_server.go#L365: func supportsECDHE(c *Config, version uint16, supportedCurves []CurveID, supportedPoints []uint8) (bool, error) {
key_agreement.go#L28: generateServerKeyExchange(*Config, *Certificate, *clientHelloMsg, *serverHelloMsg) (*serverKeyExchangeMsg, error)
key_agreement.go#L29: processClientKeyExchange(*Config, *Certificate, *clientKeyExchangeMsg, uint16) ([]byte, error)
key_agreement.go#L35: processServerKeyExchange(*Config, *clientHelloMsg, *serverHelloMsg, *x509.Certificate, *serverKeyExchangeMsg) error
key_agreement.go#L36: generateClientKeyExchange(*Config, *clientHelloMsg, *x509.Certificate) ([]byte, *clientKeyExchangeMsg, error)
key_agreement.go#L46: func (ka rsaKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
key_agreement.go#L50: func (ka rsaKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
key_agreement.go#L78: func (ka rsaKeyAgreement) processServerKeyExchange(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, skx *serverKeyExchangeMsg) error {
key_agreement.go#L82: func (ka rsaKeyAgreement) generateClientKeyExchange(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate) ([]byte, *clientKeyExchangeMsg, error) {
key_agreement.go#L158: func (ka *ecdheKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
key_agreement.go#L254: func (ka *ecdheKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
key_agreement.go#L271: func (ka *ecdheKeyAgreement) processServerKeyExchange(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, skx *serverKeyExchangeMsg) error {
key_agreement.go#L371: func (ka *ecdheKeyAgreement) generateClientKeyExchange(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate) ([]byte, *clientKeyExchangeMsg, error) {
quic.go#L51: TLSConfig *Config
ticket.go#L316: func (c *Config) EncryptTicket(cs ConnectionState, ss *SessionState) ([]byte, error) {
ticket.go#L325: func (c *Config) encryptTicket(state []byte, ticketKeys []ticketKey) ([]byte, error) {
ticket.go#L357: func (c *Config) DecryptTicket(identity []byte, cs ConnectionState) (*SessionState, error) {
ticket.go#L370: func (c *Config) decryptTicket(encrypted []byte, ticketKeys []ticketKey) []byte {
tls.go#L46: func Server(conn net.Conn, config *Config) *Conn {
tls.go#L59: func Client(conn net.Conn, config *Config) *Conn {
tls.go#L72: config *Config
tls.go#L89: func NewListener(inner net.Listener, config *Config) net.Listener {
tls.go#L100: func Listen(network, laddr string, config *Config) (net.Listener, error) {
tls.go#L129: func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
tls.go#L133: func dial(ctx context.Context, netDialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
tls.go#L183: func Dial(network, addr string, config *Config) (*Conn, error) {
tls.go#L199: Config *Config
github.com/jackc/pgx/v5/pgconn
config.go#L41: TLSConfig *tls.Config // nil disables TLS
config.go#L145: TLSConfig *tls.Config // nil disables TLS
config.go#L153: tlsConfig *tls.Config // nil disables TLS
config.go#L398: var tlsConfigs []*tls.Config
config.go#L717: func configTLS(settings map[string]string, thisHost string, parseConfigOptions ParseConfigOptions) ([]*tls.Config, error) {
config.go#L735: tlsConfig := &tls.Config{}
config.go#L776: return []*tls.Config{nil}, nil
config.go#L898: return []*tls.Config{nil, tlsConfig}, nil
config.go#L900: return []*tls.Config{tlsConfig, nil}, nil
config.go#L902: return []*tls.Config{tlsConfig}, nil
pgconn.go#L493: func startTLS(conn net.Conn, tlsConfig *tls.Config) (net.Conn, error) {
golang.org/x/net/http2
server.go#L238: s.TLSConfig = new(tls.Config)
transport.go#L74: DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error)
transport.go#L84: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
transport.go#L88: TLSClientConfig *tls.Config
transport.go#L246: t1.TLSClientConfig = new(tls.Config)
transport.go#L724: func (t *Transport) newTLSConfig(host string) *tls.Config {
transport.go#L725: cfg := new(tls.Config)
transport.go#L738: func (t *Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) {
transport.go#L3223: func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) {
google.golang.org/grpc/credentials
tls.go#L99: config *tls.Config
tls.go#L220: func NewTLS(c *tls.Config) TransportCredentials {
tls.go#L224: config.GetConfigForClient = func(hello *tls.ClientHelloInfo) (*tls.Config, error) {
tls.go#L235: func applyDefaults(c *tls.Config) *tls.Config {
tls.go#L268: return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp})
tls.go#L290: return NewTLS(&tls.Config{ServerName: serverNameOverride, RootCAs: cp}), nil
tls.go#L295: return NewTLS(&tls.Config{Certificates: []tls.Certificate{*cert}})
tls.go#L305: return NewTLS(&tls.Config{Certificates: []tls.Certificate{cert}}), nil
google.golang.org/grpc/internal/credentials
util.go#L46: func CloneTLSConfig(cfg *tls.Config) *tls.Config {
util.go#L48: return &tls.Config{}
net/http
h2_bundle.go#L4248: s.TLSConfig = new(tls.Config)
h2_bundle.go#L7365: DialTLSContext func(ctx context.Context, network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7375: DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
h2_bundle.go#L7379: TLSClientConfig *tls.Config
h2_bundle.go#L7537: t1.TLSClientConfig = new(tls.Config)
h2_bundle.go#L8030: func (t *http2Transport) newTLSConfig(host string) *tls.Config {
h2_bundle.go#L8031: cfg := new(tls.Config)
h2_bundle.go#L8044: func (t *http2Transport) dialTLS(ctx context.Context, network, addr string, tlsCfg *tls.Config) (net.Conn, error) {
h2_bundle.go#L10725: func (t *http2Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) {
server.go#L2984: TLSConfig *tls.Config
transport.go#L182: TLSClientConfig *tls.Config
transport.go#L3234: func cloneTLSConfig(cfg *tls.Config) *tls.Config {
transport.go#L3236: return &tls.Config{}
net/http/httptest
server.go#L39: TLS *tls.Config
server.go#L175: s.TLS = new(tls.Config)
server.go#L194: TLSClientConfig: &tls.Config{