mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
http: add https client support
Fixes #851. R=rsc CC=golang-dev https://golang.org/cl/1729052
This commit is contained in:
parent
518df525d8
commit
4f64ecfdda
2 changed files with 12 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue