mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bazel: patch Go SDK to increase tls maxHandshake size (#3009)
This commit is contained in:
parent
638a94c7c6
commit
24c346c657
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
|
||||
)
|
||||
|
@ -165,11 +165,17 @@ load("//bazel/toolchains:go_module_deps.bzl", "go_dependencies")
|
||||
# gazelle:repository_macro bazel/toolchains/go_module_deps.bzl%go_dependencies
|
||||
go_dependencies()
|
||||
|
||||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
||||
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_toolchains", "go_rules_dependencies")
|
||||
|
||||
go_download_sdk(
|
||||
name = "go_sdk",
|
||||
patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"],
|
||||
version = "1.22.1",
|
||||
)
|
||||
|
||||
go_rules_dependencies()
|
||||
|
||||
go_register_toolchains(version = "1.22.1")
|
||||
go_register_toolchains()
|
||||
|
||||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user