mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-21 21:44:39 -04:00
bazel: patch Go SDK to increase tls maxHandshake size (#3009)
This commit is contained in:
parent
638a94c7c6
commit
24c346c657
3 changed files with 20 additions and 2 deletions
1
3rdparty/bazel/org_golang/BUILD.bazel
vendored
Normal file
1
3rdparty/bazel/org_golang/BUILD.bazel
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
exports_files(["go_tls_max_handshake_size.patch"])
|
11
3rdparty/bazel/org_golang/go_tls_max_handshake_size.patch
vendored
Normal file
11
3rdparty/bazel/org_golang/go_tls_max_handshake_size.patch
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/crypto/tls/common.go
|
||||
+++ src/crypto/tls/common.go
|
||||
@@ -62,7 +62,7 @@
|
||||
maxCiphertext = 16384 + 2048 // maximum ciphertext payload length
|
||||
maxCiphertextTLS13 = 16384 + 256 // maximum ciphertext length in TLS 1.3
|
||||
recordHeaderLen = 5 // record header length
|
||||
- maxHandshake = 65536 // maximum handshake we support (protocol max is 16 MB)
|
||||
+ maxHandshake = 262144 // maximum handshake we support (protocol max is 16 MB)
|
||||
maxUselessRecords = 16 // maximum number of consecutive non-advancing records
|
||||
)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue