crypto/tls: add initial client implementation.
R=rsc, agl
CC=golang-dev
https://golang.org/cl/157076
diff --git a/src/pkg/crypto/tls/common.go b/src/pkg/crypto/tls/common.go
index e295cd4..e1318a8 100644
--- a/src/pkg/crypto/tls/common.go
+++ b/src/pkg/crypto/tls/common.go
@@ -17,6 +17,9 @@
maxTLSCiphertext = 16384 + 2048;
// maxHandshakeMsg is the largest single handshake message that we'll buffer.
maxHandshakeMsg = 65536;
+ // defaultMajor and defaultMinor are the maximum TLS version that we support.
+ defaultMajor = 3;
+ defaultMinor = 2;
)
@@ -64,6 +67,7 @@
// Time returns the current time as the number of seconds since the epoch.
Time func() int64;
Certificates []Certificate;
+ RootCAs *CASet;
}
type Certificate struct {