summaryrefslogtreecommitdiff
path: root/chef-config/lib/chef-config/fips.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/lib/chef-config/fips.rb')
-rw-r--r--chef-config/lib/chef-config/fips.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/lib/chef-config/fips.rb b/chef-config/lib/chef-config/fips.rb
index eb9e55afe6..7f3aa3e85c 100644
--- a/chef-config/lib/chef-config/fips.rb
+++ b/chef-config/lib/chef-config/fips.rb
@@ -46,8 +46,8 @@ module ChefConfig
false
end
else
- fips_path = "/proc/sys/crypto/fips_enabled"
- File.exist?(fips_path) && File.read(fips_path).chomp != "0"
+ require "openssl" unless defined?(OpenSSL)
+ OpenSSL::OPENSSL_FIPS
end
end
end