conn.go 181 B

12345678910111213
  1. package badtls
  2. import (
  3. "context"
  4. "crypto/tls"
  5. "net"
  6. )
  7. type TLSConn interface {
  8. net.Conn
  9. HandshakeContext(ctx context.Context) error
  10. ConnectionState() tls.ConnectionState
  11. }