Alternative TLS implementation in Go
Go to file
Brad Fitzpatrick afedc6a568 net: change SetTimeout to SetDeadline
Previously, a timeout (in int64 nanoseconds) applied to a granularity
even smaller than one operation:  a 100 byte read with a 1 second timeout
could take 100 seconds, if the bytes all arrived on the network 1 second
apart.  This was confusing.

Rather than making the timeout granularity be per-Read/Write,
this CL makes callers set an absolute deadline (in time.Time)
after which operations will fail.  This makes it possible to
set deadlines at higher levels, without knowing exactly how
many read/write operations will happen in e.g. reading an HTTP
request.

Fixes #2723

R=r, rsc, dave
CC=golang-dev
https://golang.org/cl/5555048
2012-01-18 16:24:06 -08:00
alert.go crypto/tls: add Error method to alert 2011-10-27 19:42:32 -07:00
cipher_suites.go crypto: allocate less. 2011-12-06 18:25:14 -05:00
common.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00
conn_test.go crypto/tls: add server side SNI support. 2011-10-08 10:06:53 -04:00
conn.go net: change SetTimeout to SetDeadline 2012-01-18 16:24:06 -08:00
generate_cert.go crypto/tls: update generate_cert.go for new time package 2012-01-04 14:56:16 -05:00
handshake_client_test.go crypto/tls: support SSLv3 2011-09-14 15:32:19 -04:00
handshake_client.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00
handshake_messages_test.go crypto/tls: fix handshake message test 2011-11-14 15:21:08 -05:00
handshake_messages.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00
handshake_server_test.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00
handshake_server.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00
key_agreement.go crypto/tls: don't assume an RSA private key in the API. 2011-12-19 10:39:30 -05:00
Makefile build: Changes to the build infrastructure for NetBSD. 2011-12-12 15:42:06 -05:00
parse-gnutls-cli-debug-log.py crypto/tls: add 3DES ciphersuites 2011-10-11 13:07:32 -04:00
prf_test.go crypto/tls: support SSLv3 2011-09-14 15:32:19 -04:00
prf.go Add a []byte argument to hash.Hash to allow an allocation to be saved. 2011-12-01 12:35:37 -05:00
root_darwin.go crypto/tls: quiet build 2011-12-15 18:37:31 -05:00
root_stub.go go/build: add new +build tags 'cgo' and 'nocgo' 2011-12-21 08:51:18 -05:00
root_test.go crypto/tls: fetch root certificates using Mac OS API 2011-10-13 13:59:13 -04:00
root_unix.go crypto/tls: add FreeBSD root certificate location 2012-01-18 10:03:00 -08:00
root_windows.go crypto/tls: cleanup certificate load on windows 2011-12-01 12:38:00 -05:00
tls.go crypto/tls: Improve TLS Client Authentication 2012-01-05 12:05:38 -05:00