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:
parent
de4a706aa9
commit
c282fa0f0b
@ -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(),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user