type crypto/tls.Conn
98 uses
crypto/tls (current package)
conn.go#L28: type Conn struct {
conn.go#L131: func (c *Conn) LocalAddr() net.Addr {
conn.go#L136: func (c *Conn) RemoteAddr() net.Addr {
conn.go#L143: func (c *Conn) SetDeadline(t time.Time) error {
conn.go#L149: func (c *Conn) SetReadDeadline(t time.Time) error {
conn.go#L156: func (c *Conn) SetWriteDeadline(t time.Time) error {
conn.go#L163: func (c *Conn) NetConn() net.Conn {
conn.go#L580: func (c *Conn) newRecordHeaderError(conn net.Conn, msg string) (err RecordHeaderError) {
conn.go#L587: func (c *Conn) readRecord() error {
conn.go#L591: func (c *Conn) readChangeCipherSpec() error {
conn.go#L609: func (c *Conn) readRecordOrCCS(expectChangeCipherSpec bool) error {
conn.go#L794: func (c *Conn) retryReadRecord(expectChangeCipherSpec bool) error {
conn.go#L828: func (c *Conn) readFromUntil(r io.Reader, n int) error {
conn.go#L842: func (c *Conn) sendAlertLocked(err alert) error {
conn.go#L865: func (c *Conn) sendAlert(err alert) error {
conn.go#L901: func (c *Conn) maxPayloadSizeForWrite(typ recordType) int {
conn.go#L948: func (c *Conn) write(data []byte) (int, error) {
conn.go#L959: func (c *Conn) flush() (int, error) {
conn.go#L980: func (c *Conn) writeRecordLocked(typ recordType, data []byte) (int, error) {
conn.go#L1054: func (c *Conn) writeHandshakeRecord(msg handshakeMessage, transcript transcriptHash) (int, error) {
conn.go#L1071: func (c *Conn) writeChangeCipherRecord() error {
conn.go#L1079: func (c *Conn) readHandshakeBytes(n int) error {
conn.go#L1094: func (c *Conn) readHandshake(transcript transcriptHash) (any, error) {
conn.go#L1123: func (c *Conn) unmarshalHandshakeMessage(data []byte, transcript transcriptHash) (handshakeMessage, error) {
conn.go#L1202: func (c *Conn) Write(b []byte) (int, error) {
conn.go#L1259: func (c *Conn) handleRenegotiation() error {
conn.go#L1305: func (c *Conn) handlePostHandshakeMessage() error {
conn.go#L1334: func (c *Conn) handleKeyUpdate(keyUpdate *keyUpdateMsg) error {
conn.go#L1379: func (c *Conn) Read(b []byte) (int, error) {
conn.go#L1423: func (c *Conn) Close() error {
conn.go#L1463: func (c *Conn) CloseWrite() error {
conn.go#L1471: func (c *Conn) closeNotify() error {
conn.go#L1499: func (c *Conn) Handshake() error {
conn.go#L1513: func (c *Conn) HandshakeContext(ctx context.Context) error {
conn.go#L1519: func (c *Conn) handshakeContext(ctx context.Context) (ret error) {
conn.go#L1608: func (c *Conn) ConnectionState() ConnectionState {
conn.go#L1616: func (c *Conn) connectionStateLocked() ConnectionState {
conn.go#L1658: func (c *Conn) OCSPResponse() []byte {
conn.go#L1668: func (c *Conn) VerifyHostname(host string) error {
conn.go#L1686: func (c *Conn) setReadTrafficSecret(suite *cipherSuiteTLS13, level QUICEncryptionLevel, secret []byte, locked bool) error {
conn.go#L1705: func (c *Conn) setWriteTrafficSecret(suite *cipherSuiteTLS13, level QUICEncryptionLevel, secret []byte) {
ech.go#L548: func (c *Conn) processECHClientHello(outer *clientHelloMsg, echKeys []EncryptedClientHelloKey) (*clientHelloMsg, *echServerContext, error) {
handshake_client.go#L32: c *Conn
handshake_client.go#L43: func (c *Conn) makeClientHello() (*clientHelloMsg, *keySharePrivateKeys, *echClientContext, error) {
handshake_client.go#L221: func (c *Conn) clientHandshake(ctx context.Context) (err error) {
handshake_client.go#L352: func (c *Conn) loadSession(hello *clientHelloMsg) (
handshake_client.go#L504: func (c *Conn) pickTLSVersion(serverHello *serverHelloMsg) error {
handshake_client.go#L1099: func (c *Conn) verifyServerCertificate(certificates [][]byte) error {
handshake_client.go#L1264: func (c *Conn) getClientCertificate(cri *CertificateRequestInfo) (*Certificate, error) {
handshake_client.go#L1282: func (c *Conn) clientSessionCacheKey() string {
handshake_client_tls13.go#L23: c *Conn
handshake_client_tls13.go#L832: func (c *Conn) handleNewSessionTicket(msg *newSessionTicketMsgTLS13) error {
handshake_server.go#L26: c *Conn
handshake_server.go#L42: func (c *Conn) serverHandshake(ctx context.Context) error {
handshake_server.go#L134: func (c *Conn) readClientHello(ctx context.Context) (*clientHelloMsg, *echServerContext, error) {
handshake_server.go#L940: func (c *Conn) processCertsFromClient(certificate Certificate) error {
handshake_server.go#L1021: func clientHelloInfo(ctx context.Context, c *Conn, clientHello *clientHelloMsg) *ClientHelloInfo {
handshake_server_tls13.go#L46: c *Conn
handshake_server_tls13.go#L971: func (c *Conn) sendSessionTicket(earlyData bool, extra [][]byte) error {
quic.go#L44: conn *Conn
quic.go#L197: func newQUICConn(conn *Conn, config *QUICConfig) *QUICConn {
quic.go#L397: func (c *Conn) quicReadHandshakeBytes(n int) error {
quic.go#L406: func (c *Conn) quicSetReadSecret(level QUICEncryptionLevel, suite uint16, secret []byte) error {
quic.go#L424: func (c *Conn) quicSetWriteSecret(level QUICEncryptionLevel, suite uint16, secret []byte) {
quic.go#L433: func (c *Conn) quicWriteCryptoData(level QUICEncryptionLevel, data []byte) {
quic.go#L448: func (c *Conn) quicResumeSession(session *SessionState) error {
quic.go#L462: func (c *Conn) quicStoreSession(session *SessionState) {
quic.go#L469: func (c *Conn) quicSetTransportParameters(params []byte) {
quic.go#L476: func (c *Conn) quicGetTransportParameters() ([]byte, error) {
quic.go#L490: func (c *Conn) quicHandshakeComplete() {
quic.go#L496: func (c *Conn) quicRejectedEarlyData() {
quic.go#L507: func (c *Conn) quicWaitForSignal() error {
ticket.go#L298: func (c *Conn) sessionState() *SessionState {
tls.go#L46: func Server(conn net.Conn, config *Config) *Conn {
tls.go#L47: c := &Conn{
tls.go#L59: func Client(conn net.Conn, config *Config) *Conn {
tls.go#L60: c := &Conn{
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) {
net/http
h2_bundle.go#L4285: s.TLSNextProto = map[string]func(*Server, *tls.Conn, Handler){}
h2_bundle.go#L4310: s.TLSNextProto[http2NextProtoTLS] = func(hs *Server, c *tls.Conn, h Handler) {
h2_bundle.go#L4316: s.TLSNextProto[http2nextProtoUnencryptedHTTP2] = func(hs *Server, c *tls.Conn, h Handler) {
h2_bundle.go#L7563: t1.TLSNextProto = make(map[string]func(string, *tls.Conn) RoundTripper)
h2_bundle.go#L7565: t1.TLSNextProto[http2NextProtoTLS] = func(authority string, c *tls.Conn) RoundTripper {
h2_bundle.go#L7569: t1.TLSNextProto[http2nextProtoUnencryptedHTTP2] = func(authority string, c *tls.Conn) RoundTripper {
h2_bundle.go#L8435: tc, ok := cc.tconn.(*tls.Conn)
h2_bundle.go#L10725: func (t *http2Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) {
h2_bundle.go#L10733: tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed
h2_bundle.go#L10748: func http2unencryptedNetConnFromTLSConn(tc *tls.Conn) (net.Conn, error) {
server.go#L1924: if tlsConn, ok := c.rwc.(*tls.Conn); ok {
server.go#L2150: func unencryptedTLSConn(c net.Conn) *tls.Conn {
server.go#L3036: TLSNextProto map[string]func(*Server, *tls.Conn, Handler)
server.go#L3963: c *tls.Conn
transport.go#L255: TLSNextProto map[string]func(authority string, c *tls.Conn) RoundTripper
transport.go#L376: npm = make(map[string]func(authority string, c *tls.Conn) RoundTripper)
transport.go#L1795: if tc, ok := pconn.conn.(*tls.Conn); ok {
transport.go#L1982: alt := next(cm.targetAddr, pconn.conn.(*tls.Conn))
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |