diff options
author | Koichi Sasada <[email protected]> | 2020-12-18 18:19:33 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-12-18 18:19:33 +0900 |
commit | b5588edc0a538de840c79e0bbc9d271ba0c5a711 (patch) | |
tree | c314322a874f6525a1653f3f2b244c2a59204820 /ext/openssl/ossl.c | |
parent | 74ab2c3b463da4d98803fe694acad831938a97e5 (diff) |
openssl is ractor-safe
ossl_bn_ctx is C's global variable and it should be ractor-local
to make it ractor-safe.
Diffstat (limited to 'ext/openssl/ossl.c')
-rw-r--r-- | ext/openssl/ossl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c index 2f54b861f1..37e619f99d 100644 --- a/ext/openssl/ossl.c +++ b/ext/openssl/ossl.c @@ -1126,6 +1126,10 @@ ossl_crypto_fixed_length_secure_compare(VALUE dummy, VALUE str1, VALUE str2) void Init_openssl(void) { +#if HAVE_RB_EXT_RACTOR_SAFE + rb_ext_ractor_safe(true); +#endif + #undef rb_intern /* * Init timezone info |