type crypto/tls.Conn
106 uses
crypto/tls (current package)
conn.go#L28: type Conn struct {
conn.go#L133: func (c *Conn) LocalAddr() net.Addr {
conn.go#L138: func (c *Conn) RemoteAddr() net.Addr {
conn.go#L145: func (c *Conn) SetDeadline(t time.Time) error {
conn.go#L151: func (c *Conn) SetReadDeadline(t time.Time) error {
conn.go#L158: func (c *Conn) SetWriteDeadline(t time.Time) error {
conn.go#L165: func (c *Conn) NetConn() net.Conn {
conn.go#L583: func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
conn.go#L590: func (c *Conn) readRecord() error {
conn.go#L594: func (c *Conn) readChangeCipherSpec() error {
conn.go#L612: func (c *Conn) readRecordOrCCS(expectChangeCipherSpec bool) error {
conn.go#L788: func (c *Conn) retryReadRecord(expectChangeCipherSpec bool) error {
conn.go#L822: func (c *Conn) readFromUntil(r io.Reader, n int) error {
conn.go#L836: func (c *Conn) sendAlertLocked(err alert) error {
conn.go#L859: func (c *Conn) sendAlert(err alert) error {
conn.go#L895: func (c *Conn) maxPayloadSizeForWrite(typ recordType) int {
conn.go#L942: func (c *Conn) write(data []byte) (int, error) {
conn.go#L953: func (c *Conn) flush() (int, error) {
conn.go#L974: func (c *Conn) writeRecordLocked(typ recordType, data []byte) (int, error) {
conn.go#L1048: func (c *Conn) writeHandshakeRecord(msg handshakeMessage, transcript transcriptHash) (int, error) {
conn.go#L1065: func (c *Conn) writeChangeCipherRecord() error {
conn.go#L1073: func (c *Conn) readHandshakeBytes(n int) error {
conn.go#L1088: func (c *Conn) readHandshake(transcript transcriptHash) (any, error) {
conn.go#L1117: func (c *Conn) unmarshalHandshakeMessage(data []byte, transcript transcriptHash) (handshakeMessage, error) {
conn.go#L1196: func (c *Conn) Write(b []byte) (int, error) {
conn.go#L1253: func (c *Conn) handleRenegotiation() error {
conn.go#L1299: func (c *Conn) handlePostHandshakeMessage() error {
conn.go#L1328: func (c *Conn) handleKeyUpdate(keyUpdate *keyUpdateMsg) error {
conn.go#L1371: func (c *Conn) Read(b []byte) (int, error) {
conn.go#L1415: func (c *Conn) Close() error {
conn.go#L1455: func (c *Conn) CloseWrite() error {
conn.go#L1463: func (c *Conn) closeNotify() error {
conn.go#L1491: func (c *Conn) Handshake() error {
conn.go#L1505: func (c *Conn) HandshakeContext(ctx context.Context) error {
conn.go#L1511: func (c *Conn) handshakeContext(ctx context.Context) (ret error) {
conn.go#L1612: func (c *Conn) ConnectionState() ConnectionState {
conn.go#L1620: func (c *Conn) connectionStateLocked() ConnectionState {
conn.go#L1662: func (c *Conn) OCSPResponse() []byte {
conn.go#L1672: func (c *Conn) VerifyHostname(host string) error {
ech.go#L570: func (c *Conn) processECHClientHello(outer *clientHelloMsg) (*clientHelloMsg, *echServerContext, error) {
handshake_client.go#L34: c *Conn
handshake_client.go#L47: func (c *Conn) makeClientHello() (*clientHelloMsg, *keySharePrivateKeys, *echClientContext, error) {
handshake_client.go#L266: func (c *Conn) clientHandshake(ctx context.Context) (err error) {
handshake_client.go#L392: func (c *Conn) loadSession(hello *clientHelloMsg) (
handshake_client.go#L530: func (c *Conn) pickTLSVersion(serverHello *serverHelloMsg) error {
handshake_client.go#L1084: func (c *Conn) verifyServerCertificate(certificates [][]byte) error {
handshake_client.go#L1252: func (c *Conn) getClientCertificate(cri *CertificateRequestInfo) (*Certificate, error) {
handshake_client.go#L1270: func (c *Conn) clientSessionCacheKey() string {
handshake_client_tls13.go#L24: c *Conn
handshake_client_tls13.go#L853: func (c *Conn) handleNewSessionTicket(msg *newSessionTicketMsgTLS13) error {
handshake_server.go#L27: c *Conn
handshake_server.go#L43: func (c *Conn) serverHandshake(ctx context.Context) error {
handshake_server.go#L135: func (c *Conn) readClientHello(ctx context.Context) (*clientHelloMsg, *echServerContext, error) {
handshake_server.go#L898: func (c *Conn) processCertsFromClient(certificate Certificate) error {
handshake_server.go#L980: func clientHelloInfo(ctx context.Context, c *Conn, clientHello *clientHelloMsg) *ClientHelloInfo {
handshake_server_tls13.go#L45: c *Conn
handshake_server_tls13.go#L979: func (c *Conn) sendSessionTicket(earlyData bool, extra [][]byte) error {
quic.go#L44: conn *Conn
quic.go#L187: func newQUICConn(conn *Conn, config *QUICConfig) *QUICConn {
quic.go#L375: func (c *Conn) quicReadHandshakeBytes(n int) error {
quic.go#L384: func (c *Conn) quicSetReadSecret(level QUICEncryptionLevel, suite uint16, secret []byte) {
quic.go#L393: func (c *Conn) quicSetWriteSecret(level QUICEncryptionLevel, suite uint16, secret []byte) {
quic.go#L402: func (c *Conn) quicWriteCryptoData(level QUICEncryptionLevel, data []byte) {
quic.go#L417: func (c *Conn) quicResumeSession(session *SessionState) error {
quic.go#L431: func (c *Conn) quicStoreSession(session *SessionState) {
quic.go#L438: func (c *Conn) quicSetTransportParameters(params []byte) {
quic.go#L445: func (c *Conn) quicGetTransportParameters() ([]byte, error) {
quic.go#L459: func (c *Conn) quicHandshakeComplete() {
quic.go#L465: func (c *Conn) quicRejectedEarlyData() {
quic.go#L476: func (c *Conn) quicWaitForSignal() error {
ticket.go#L293: func (c *Conn) sessionState() *SessionState {
tls.go#L35: func Server(conn net.Conn, config *Config) *Conn {
tls.go#L36: c := &Conn{
tls.go#L48: func Client(conn net.Conn, config *Config) *Conn {
tls.go#L49: c := &Conn{
tls.go#L118: func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
tls.go#L122: func dial(ctx context.Context, netDialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
tls.go#L172: func Dial(network, addr string, config *Config) (*Conn, error) {
golang.org/x/net/http2
server.go#L308: s.TLSNextProto = map[string]func(*http.Server, *tls.Conn, http.Handler){}
server.go#L333: s.TLSNextProto[NextProtoTLS] = func(hs *http.Server, c *tls.Conn, h http.Handler) {
server.go#L339: s.TLSNextProto[nextProtoUnencryptedHTTP2] = func(hs *http.Server, c *tls.Conn, h http.Handler) {
transport.go#L316: t1.TLSNextProto = make(map[string]func(string, *tls.Conn) http.RoundTripper)
transport.go#L318: t1.TLSNextProto[NextProtoTLS] = func(authority string, c *tls.Conn) http.RoundTripper {
transport.go#L322: t1.TLSNextProto[nextProtoUnencryptedHTTP2] = func(authority string, c *tls.Conn) http.RoundTripper {
transport.go#L1145: tc, ok := cc.tconn.(*tls.Conn)
transport.go#L3277: func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) {
transport.go#L3285: tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed
unencrypted.go#L24: func unencryptedNetConnFromTLSConn(tc *tls.Conn) (net.Conn, error) {
net/http
h2_bundle.go#L4355: s.TLSNextProto = map[string]func(*Server, *tls.Conn, Handler){}
h2_bundle.go#L4380: s.TLSNextProto[http2NextProtoTLS] = func(hs *Server, c *tls.Conn, h Handler) {
h2_bundle.go#L4386: s.TLSNextProto[http2nextProtoUnencryptedHTTP2] = func(hs *Server, c *tls.Conn, h Handler) {
h2_bundle.go#L7738: t1.TLSNextProto = make(map[string]func(string, *tls.Conn) RoundTripper)
h2_bundle.go#L7740: t1.TLSNextProto[http2NextProtoTLS] = func(authority string, c *tls.Conn) RoundTripper {
h2_bundle.go#L7744: t1.TLSNextProto[http2nextProtoUnencryptedHTTP2] = func(authority string, c *tls.Conn) RoundTripper {
h2_bundle.go#L8565: tc, ok := cc.tconn.(*tls.Conn)
h2_bundle.go#L10968: func (t *http2Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) {
h2_bundle.go#L10976: tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed
h2_bundle.go#L10991: func http2unencryptedNetConnFromTLSConn(tc *tls.Conn) (net.Conn, error) {
server.go#L1964: if tlsConn, ok := c.rwc.(*tls.Conn); ok {
server.go#L2178: func unencryptedTLSConn(c net.Conn) *tls.Conn {
server.go#L3023: TLSNextProto map[string]func(*Server, *tls.Conn, Handler)
server.go#L3953: c *tls.Conn
transport.go#L251: TLSNextProto map[string]func(authority string, c *tls.Conn) RoundTripper
transport.go#L368: npm = make(map[string]func(authority string, c *tls.Conn) RoundTripper)
transport.go#L1760: if tc, ok := pconn.conn.(*tls.Conn); ok {
transport.go#L1932: alt := next(cm.targetAddr, pconn.conn.(*tls.Conn))