diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-04 23:09:43 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-05-05 16:01:14 +0900 |
commit | a81684eb55bec7b255697e97f1ac9bf42bbc326b (patch) | |
tree | dc0d3712121d5a0c3ec547c7aa10c9948053b8cb /ext/openssl/ossl.c | |
parent | 346f5f52206c478e9f5d444c8f1697fef7be58b2 (diff) | |
download | ruby-a81684eb55bec7b255697e97f1ac9bf42bbc326b.tar.gz |
ext/openssl: no need to check OPENSSL_FIPS in extconf.rb
Since openssl/opensslconf.h is always included, we can check
OPENSSL_FIPS macro directly.
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 91e741367f..0dacb2701e 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -447,7 +447,7 @@ static VALUE ossl_fips_mode_set(VALUE self, VALUE enabled) { -#ifdef HAVE_OPENSSL_FIPS +#ifdef OPENSSL_FIPS if (RTEST(enabled)) { int mode = FIPS_mode(); if(!mode && !FIPS_mode_set(1)) /* turning on twice leads to an error */ @@ -1114,7 +1114,7 @@ Init_openssl(void) /* * Boolean indicating whether OpenSSL is FIPS-enabled or not */ -#ifdef HAVE_OPENSSL_FIPS +#ifdef OPENSSL_FIPS rb_define_const(mOSSL, "OPENSSL_FIPS", Qtrue); #else rb_define_const(mOSSL, "OPENSSL_FIPS", Qfalse); |