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:
authorVishal Tak <vtak@gitlab.com>2022-03-28 09:22:05 +0300
committerVishal Tak <vtak@gitlab.com>2022-03-28 09:22:05 +0300
commit2e4b84b6ac95087b96e346916b3ced662269b15d (patch)
tree5edbc6a6c7d540fce04b226b1d537474fe1a03e4 /internal
parent65bf4a6024e01fae8b4c88d6e577e3ad145d87d7 (diff)
Add FIPS support
Changelog: added
Diffstat (limited to 'internal')
-rw-r--r--internal/boring/boring.go10
-rw-r--r--internal/boring/notboring.go7
2 files changed, 17 insertions, 0 deletions
diff --git a/internal/boring/boring.go b/internal/boring/boring.go
new file mode 100644
index 00000000..6e125210
--- /dev/null
+++ b/internal/boring/boring.go
@@ -0,0 +1,10 @@
+//go:build boringcrypto
+// +build boringcrypto
+
+package boring
+
+import "gitlab.com/gitlab-org/labkit/log"
+
+func CheckBoring() {
+ log.Info("FIPS mode is enabled. Using BoringSSL.")
+}
diff --git a/internal/boring/notboring.go b/internal/boring/notboring.go
new file mode 100644
index 00000000..6dbf3c39
--- /dev/null
+++ b/internal/boring/notboring.go
@@ -0,0 +1,7 @@
+//go:build !boringcrypto
+// +build !boringcrypto
+
+package boring
+
+func CheckBoring() {
+}