Ver código fonte

http: add https client support

Fixes #851.

R=rsc
CC=golang-dev
https://golang.org/cl/1729052
tls13
Fazlul Shahriar 14 anos atrás
committed by Russ Cox
pai
commit
5f134f7d77
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      handshake_client.go

+ 1
- 1
handshake_client.go Ver arquivo

@@ -93,7 +93,7 @@ func (c *Conn) clientHandshake() os.Error {
} }


// TODO(rsc): Find certificates for OS X 10.6. // 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]) root := c.config.RootCAs.FindParent(certs[len(certs)-1])
if root == nil { if root == nil {
return c.sendAlert(alertBadCertificate) return c.sendAlert(alertBadCertificate)


Carregando…
Cancelar
Salvar