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-31 10:58:20 +0300
committerVishal Tak <vtak@gitlab.com>2022-03-31 10:58:20 +0300
commit9fdda41eedbcb91c1d06c01d72f9d915934735b7 (patch)
tree4145d00d9984ebc27510ec004b951a5bc7ccbd77 /internal
parent2e4b84b6ac95087b96e346916b3ced662269b15d (diff)
Clean makefile and add runtime check for fipsbuild-fips
Diffstat (limited to 'internal')
-rw-r--r--internal/boring/boring.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/boring/boring.go b/internal/boring/boring.go
index 6e125210..0a59ec4a 100644
--- a/internal/boring/boring.go
+++ b/internal/boring/boring.go
@@ -3,8 +3,16 @@
package boring
-import "gitlab.com/gitlab-org/labkit/log"
+import (
+ "crypto/boring"
+
+ "gitlab.com/gitlab-org/labkit/log"
+)
func CheckBoring() {
- log.Info("FIPS mode is enabled. Using BoringSSL.")
+ if boring.Enabled() {
+ log.Info("FIPS mode is enabled. Using BoringSSL.")
+ return
+ }
+ log.Info("GitLab Pages was compiled with FIPS mode but BoringSSL is not enabled.")
}