diff options
author | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-20 00:29:07 +0000 |
---|---|---|
committer | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-20 00:29:07 +0000 |
commit | a3b753b28214ad321e7335afada7f1b06d036836 (patch) | |
tree | c405de7ac3b8a087774472e6d31ee7de7642863c /test/openssl/utils.rb | |
parent | e3e4e9dfe77c103ac8a46e5ad15ef6b36e6f0653 (diff) |
* ext/openssl/ossl.c: add OpenSSL.fips_mode= to allow enabling FIPS
mode manually.
* test/openssl/utils.rb: turn off FIPS mode for tests. This prevents
OpenSSL installations with FIPS mode enabled by default from raising
FIPS-related errors during the tests.
* test/openssl/test_fips.rb: add tests for FIPS-capable OpenSSL
installations.
[Feature #6946] [ruby-core:47345]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r-- | test/openssl/utils.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index 103e1e7eff..646ed88366 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -1,5 +1,9 @@ begin require "openssl" + + # disable FIPS mode for tests for installations + # where FIPS mode would be enabled by default + OpenSSL.fips_mode=false rescue LoadError end require "test/unit" |