tlsdialer.v1: gopkg.in/getlantern/tlsdialer.v1 Index | Files

package tlsdialer

import "gopkg.in/getlantern/tlsdialer.v1"

package tlsdialer contains a customized version of crypto/tls.Dial that allows control over whether or not to send the ServerName extension in the client handshake.

Index

Package Files

tlsdialer.go

func Dial Uses

func Dial(network, addr string, sendServerName bool, config *tls.Config) (*tls.Conn, error)

Like crypto/tls.Dial, but with the ability to control whether or not to send the ServerName extension in client handshakes through the sendServerName flag.

Note - if sendServerName is false, the VerifiedChains field on the connection's ConnectionState will never get populated.

func DialWithDialer Uses

func DialWithDialer(dialer *net.Dialer, network, addr string, sendServerName bool, config *tls.Config) (*tls.Conn, error)

Like crypto/tls.DialWithDialer, but with the ability to control whether or not to send the ServerName extension in client handshakes through the sendServerName flag.

Note - if sendServerName is false, the VerifiedChains field on the connection's ConnectionState will never get populated.

Package tlsdialer imports 5 packages (graph) and is imported by 1 packages. Updated 2016-07-17. Refresh now. Tools for package owners.