Alternative TLS implementation in Go
Go to file
Adam Langley 7b0cd8f727 crypto/tls: ignore empty TLS records.
OpenSSL can be configured to send empty records in order to randomise
the CBC IV. This is an early version of 1/n-1 record splitting (that Go
does) and is quite reasonable, but it results in tls.Conn.Read
returning (0, nil).

This change ignores up to 100 consecutive, empty records to avoid
returning (0, nil) to callers.

Fixes 5309.

R=golang-dev, r, minux.ma
CC=golang-dev
https://golang.org/cl/8852044
2013-05-15 10:25:54 -04:00
alert.go crypto/tls: add Error method to alert 2011-10-27 19:42:32 -07:00
cipher_suites.go tls: add AES256 ciphers 2012-05-18 11:06:58 -04:00
common.go crypto/tls: use method values 2013-03-20 23:53:38 -04:00
conn_test.go crypto/tls: add server side SNI support. 2011-10-08 10:06:53 -04:00
conn.go crypto/tls: ignore empty TLS records. 2013-05-15 10:25:54 -04:00
generate_cert.go crypto/x509: support IP SANs. 2013-02-15 10:40:17 -05:00
handshake_client_test.go crypto/tls: ignore empty TLS records. 2013-05-15 10:25:54 -04:00
handshake_client.go crypto/tls: support session ticket resumption. 2012-09-24 16:52:43 -04:00
handshake_messages_test.go crypto/tls: fix NPN extension parsing. 2012-10-09 13:25:47 -04:00
handshake_messages.go crypto/tls: fix NPN extension parsing. 2012-10-09 13:25:47 -04:00
handshake_server_test.go crypto/tls: allow the server to enforce its ciphersuite preferences. 2013-01-22 10:10:38 -05:00
handshake_server.go crypto/tls: use method values 2013-03-20 23:53:38 -04:00
key_agreement.go crypto/tls: don't always use the default private key. 2012-04-12 12:35:21 -04:00
prf_test.go archive/zip, crypto/tls, net/http: Fix print format errors. 2012-11-16 17:24:43 -08:00
prf.go crypto/tls: support session ticket resumption. 2012-09-24 16:52:43 -04:00
ticket.go crypto/tls: support session ticket resumption. 2012-09-24 16:52:43 -04:00
tls_test.go crypto/tls: fix loading keys labeled just "PRIVATE KEY" 2012-12-01 11:02:08 -08:00
tls.go crypto/tls: fix loading keys labeled just "PRIVATE KEY" 2012-12-01 11:02:08 -08:00