diff options
author | nobu <nobu@ruby-lang.org> | 2012-12-20 09:28:33 +0000 |
---|---|---|
committer | nobu <nobu@ruby-lang.org> | 2012-12-20 09:28:33 +0000 |
commit | e91820850b640264f345513f0be60b8fb271a6d6 (patch) | |
tree | 6e01a9cb823f400ac8b87dfa33fce50234e69dfa /ext/openssl/ossl.c | |
parent | 124e0b2abe45c9380fee7dc9528239b07090513d (diff) | |
download | ruby-openssl-history-e91820850b640264f345513f0be60b8fb271a6d6.tar.gz |
ossl.c: RTEST
* ext/openssl/ossl.c (ossl_fips_mode_set): do not assume RTEST() to be
parenthesized always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r-- | ext/openssl/ossl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 1fae594..df63294 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -442,7 +442,7 @@ ossl_fips_mode_set(VALUE self, VALUE enabled) { #ifdef HAVE_OPENSSL_FIPS - if RTEST(enabled) { + if (RTEST(enabled)) { int mode = FIPS_mode(); if(!mode && !FIPS_mode_set(1)) /* turning on twice leads to an error */ ossl_raise(eOSSLError, "Turning on FIPS mode failed"); @@ -452,7 +452,7 @@ ossl_fips_mode_set(VALUE self, VALUE enabled) } return enabled; #else - if RTEST(enabled) + if (RTEST(enabled)) ossl_raise(eOSSLError, "This version of OpenSSL does not support FIPS mode"); return enabled; #endif |