crypto/tls: add *Config argument to Dial

Document undocumented exported names.
Allow nil Rand, Time, RootCAs in Config.

Fixes #1248.

R=agl1
CC=golang-dev
https://golang.org/cl/3481042
This commit is contained in:
Russ Cox 2010-12-07 16:15:15 -05:00
parent 2660c2a7be
commit b15c4245c5
7 changed files with 110 additions and 41 deletions

View file

@ -111,7 +111,7 @@ func Dial(url, protocol, origin string) (ws *Conn, err os.Error) {
client, err = net.Dial("tcp", "", parsedUrl.Host)
case "wss":
client, err = tls.Dial("tcp", "", parsedUrl.Host)
client, err = tls.Dial("tcp", "", parsedUrl.Host, nil)
default:
err = ErrBadScheme