http: add https client support

Fixes #851.

R=rsc
CC=golang-dev
https://golang.org/cl/1729052
This commit is contained in:
Fazlul Shahriar 2010-07-28 18:13:56 -07:00 committed by Russ Cox
parent cbf5c897cb
commit 5f134f7d77

View File

@ -93,7 +93,7 @@ func (c *Conn) clientHandshake() os.Error {
}
// TODO(rsc): Find certificates for OS X 10.6.
if false && c.config.RootCAs != nil {
if c.config.RootCAs != nil {
root := c.config.RootCAs.FindParent(certs[len(certs)-1])
if root == nil {
return c.sendAlert(alertBadCertificate)