Fork of the Go standard TLS library, providing low-level access to the ClientHello for mimicry purposes.
Find a file
Matt T. Proud 6965ec314f docs: clarify when APIs use context.Background.
The Go standard library retrofitted context support onto existing APIs
using context.Background and later offered variants that directly
supported user-defined context value specification. This commit makes
that behavior clear in documentation and suggests context-aware
alternatives if the user is looking for one.

An example motivation is supporting code for use in systems that expect
APIs to be cancelable for lifecycle correctness or load
shedding/management reasons, as alluded to in
https://blog.golang.org/context-and-structs.

Updates #44143

Change-Id: I2d7f954ddf9b48264d5ebc8d0007058ff9bddf14
Reviewed-on: https://go-review.googlesource.com/c/go/+/296152
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Jean de Klerk <deklerk@google.com>
Trust: Jean de Klerk <deklerk@google.com>
Run-TryBot: Jean de Klerk <deklerk@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-03-11 16:37:38 +00:00
testdata crypto/tls: de-prioritize AES-GCM ciphers when lacking hardware support 2020-11-10 01:40:27 +00:00
alert.go crypto/tls: add missing alert values 2020-04-01 19:32:57 +00:00
auth.go crypto: fix PKCS space in docs 2020-07-08 17:21:49 +00:00
auth_test.go crypto/tls: add {SignatureScheme,CurveID,ClientAuthType}.String() 2020-03-11 20:02:18 +00:00
cipher_suites.go crypto/tls: drop macFunction abstraction 2020-11-09 19:00:00 +00:00
common.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
common_string.go crypto/tls: add {SignatureScheme,CurveID,ClientAuthType}.String() 2020-03-11 20:02:18 +00:00
conn.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
conn_test.go crypto/tls: select only compatible chains from Certificates 2019-11-12 01:08:57 +00:00
example_test.go crypto/tls: replace VerifyPeerCertificate example with VerifyConnection 2020-06-24 20:48:12 +00:00
generate_cert.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
handshake_client.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
handshake_client_test.go docs: fix spelling 2021-02-24 04:11:43 +00:00
handshake_client_tls13.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
handshake_messages.go crypto/tls: send ec_points_format extension in ServerHello 2019-10-31 15:14:45 +00:00
handshake_messages_test.go crypto/tls: rotate session keys in older TLS versions 2020-05-07 18:33:39 +00:00
handshake_server.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
handshake_server_test.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
handshake_server_tls13.go crypto/tls: revert "add HandshakeContext method to Conn" 2020-12-17 20:04:25 +00:00
handshake_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
handshake_unix_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
key_agreement.go crypto: fix PKCS space in docs 2020-07-08 17:21:49 +00:00
key_schedule.go math/big: add (*Int).FillBytes 2020-05-05 00:36:44 +00:00
key_schedule_test.go crypto/tls: implement TLS 1.3 cryptographic computations 2018-11-02 21:54:52 +00:00
link_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
prf.go crypto/tls: improve error messages for invalid certificates and signatures 2019-10-30 20:18:59 +00:00
prf_test.go crypto/tls: remove SSLv3 support 2019-08-27 22:24:05 +00:00
ticket.go crypto/tls: remove version check when unmarshaling sessionState 2020-05-18 23:09:31 +00:00
tls.go docs: clarify when APIs use context.Background. 2021-03-11 16:37:38 +00:00
tls_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00