From c282fa0f0b525844cc219c8afc4d60fa6f7d9289 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 25 Apr 2011 10:27:36 -0400 Subject: [PATCH] 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 --- handshake_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handshake_client.go b/handshake_client.go index ddc2769..c758c96 100644 --- a/handshake_client.go +++ b/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(), }