Actions
Bug #12381
closedext/openssl classes' dup/clone don't work well
Bug #12381:
ext/openssl classes' dup/clone don't work well
Description
They don't copy the underlying C level structures.
Files
Actions
Added by rhenium (Kazuki Yamaguchi) over 10 years ago. Updated about 10 years ago.
Description
They don't copy the underlying C level structures.
Files
| 0001-Implement-missing-initialize_copy.patch (16.2 KB) 0001-Implement-missing-initialize_copy.patch | rhenium (Kazuki Yamaguchi), 08/04/2016 01:55 PM |
Applied in changeset r55454.
openssl: implement initialize_copy method for PKey classes
ext/openssl/ossl_pkey_dh.c, ext/openssl/ossl_pkey_dsa.c,
ext/openssl/ossl_pkey_ec.c, ext/openssl/ossl_pkey_rsa.c: Implement
initialize_copy method for OpenSSL::PKey::*.
[ruby-core:75504] [Bug #12381]
test/openssl/test_pkey_dh.rb, test/openssl/test_pkey_dsa.rb,
test/openssl/test_pkey_ec.rb, test/openssl/test_pkey_rsa.rb: Test they
actually copy the OpenSSL objects, and modifications to cloned object
don't affect the original object.
Thanks for reminding me.
I've just fixed the remaining at ruby/openssl (GitHub):
https://github.com/ruby/openssl/commit/6dc9b914cae52c8af6e1b4d1156613bcd914eaf5
Attached is the patch against 2.3 branch.