Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tlsconfig/tlsconfig_go1_12.go')
-rw-r--r--internal/tlsconfig/tlsconfig_go1_12.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/tlsconfig/tlsconfig_go1_12.go b/internal/tlsconfig/tlsconfig_go1_12.go
new file mode 100644
index 00000000..f92bdf09
--- /dev/null
+++ b/internal/tlsconfig/tlsconfig_go1_12.go
@@ -0,0 +1,17 @@
+// +build go1.12
+
+package tlsconfig
+
+import (
+ "crypto/tls"
+)
+
+func init() {
+ AllTLSVersions["tls1.3"] = tls.VersionTLS13
+
+ preferredCipherSuites = append(preferredCipherSuites,
+ tls.TLS_AES_128_GCM_SHA256,
+ tls.TLS_AES_256_GCM_SHA384,
+ tls.TLS_CHACHA20_POLY1305_SHA256,
+ )
+}