From a3b753b28214ad321e7335afada7f1b06d036836 Mon Sep 17 00:00:00 2001 From: emboss Date: Thu, 20 Dec 2012 00:29:07 +0000 Subject: * 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 --- test/openssl/utils.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/openssl/utils.rb') 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" -- cgit v1.2.3