diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/boring/boring.go | 12 |
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.") } |