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
This commit is contained in:
Adam Langley 2011-04-25 10:27:36 -04:00
parent de4a706aa9
commit c282fa0f0b

View File

@ -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(),
}