From: Adam Langley Date: Mon, 25 Apr 2011 14:27:36 +0000 (-0400) Subject: crypto/tls: use time(), not Time(). X-Git-Tag: weekly.2011-04-27~48 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a9a6c90104a9fd4e9627a300bb301adf8a039592;p=gostls13.git crypto/tls: use time(), not Time(). The unexported version returns a sensible default when the user hasn't set a value. The exported version crashes in that case. R=bradfitzgo, rsc1 CC=golang-dev https://golang.org/cl/4435070 --- diff --git a/src/pkg/crypto/tls/handshake_client.go b/src/pkg/crypto/tls/handshake_client.go index ddc2769e1b..c758c96d4e 100644 --- a/src/pkg/crypto/tls/handshake_client.go +++ b/src/pkg/crypto/tls/handshake_client.go @@ -102,7 +102,7 @@ func (c *Conn) clientHandshake() os.Error { if c.config.RootCAs != nil { opts := x509.VerifyOptions{ Roots: c.config.RootCAs, - CurrentTime: c.config.Time(), + CurrentTime: c.config.time(), DNSName: c.config.ServerName, Intermediates: x509.NewCertPool(), }