aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2023-03-13 09:51:53 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-06-01 11:19:03 +0200
commit2c7c6de69e3e008b834cbf875c78209561a9018c (patch)
treeb37b0864c29cecfadae253bcc1ee074618c35a90 /ext/openssl/ossl_pkey.c
parentbd7b593bffc3d68b8a179fa64f48c680b94f2f85 (diff)
downloadruby-openssl-2c7c6de69e3e008b834cbf875c78209561a9018c.tar.gz
Implement Write Barrier for all OpenSSL types
The vast majority have no reference so it's just a matter of setting the flags. For the couple exception, they have very little references so it's easy.
Diffstat (limited to 'ext/openssl/ossl_pkey.c')
-rw-r--r--ext/openssl/ossl_pkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c
index 47625667..0d16cce9 100644
--- a/ext/openssl/ossl_pkey.c
+++ b/ext/openssl/ossl_pkey.c
@@ -35,7 +35,7 @@ const rb_data_type_t ossl_evp_pkey_type = {
{
0, ossl_evp_pkey_free,
},
- 0, 0, RUBY_TYPED_FREE_IMMEDIATELY,
+ 0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED,
};
static VALUE