aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r--ext/openssl/ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index b6f85477dd..8c15112dcf 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -462,7 +462,7 @@ ossl_fips_mode_set(VALUE self, VALUE enabled)
#endif
}
-#ifdef HAVE_CRYPTO_LOCK /* OpenSSL 1.0.2 or older */
+#ifndef HAVE_OPENSSL_110_THREADING_API
/**
* Stores locks needed for OpenSSL thread safety
*/
@@ -1150,7 +1150,7 @@ Init_openssl(void)
*/
ossl_s_to_der = rb_intern("to_der");
-#ifdef HAVE_CRYPTO_LOCK
+#ifndef HAVE_OPENSSL_110_THREADING_API
Init_ossl_locks();
#endif