aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_fips.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_fips.rb')
-rw-r--r--test/test_fips.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_fips.rb b/test/test_fips.rb
index 9ba352cb..e96c5c07 100644
--- a/test/test_fips.rb
+++ b/test/test_fips.rb
@@ -8,4 +8,13 @@ class OpenSSL::TestFIPS < OpenSSL::TestCase
OpenSSL.fips_mode = false
end
+ def test_fips_mode_get
+ if OpenSSL::OPENSSL_FIPS
+ OpenSSL.fips_mode = true
+ assert OpenSSL.fips_mode == true, ".fips_mode returns true when .fips_mode=true"
+
+ OpenSSL.fips_mode = false
+ assert OpenSSL.fips_mode == false, ".fips_mode returns false when .fips_mode=false"
+ end
+ end
end