From: k@... Date: 2016-08-04T14:01:08+00:00 Subject: [ruby-core:76733] [Ruby trunk Bug#12381] ext/openssl classes' dup/clone don't work well Issue #12381 has been updated by Kazuki Yamaguchi. File 0001-Implement-missing-initialize_copy.patch added 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. ---------------------------------------- Bug #12381: ext/openssl classes' dup/clone don't work well https://bugs.ruby-lang.org/issues/12381#change-59955 * Author: Kazuki Yamaguchi * Status: Closed * Priority: Normal * Assignee: openssl * ruby -v: * Backport: 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- They don't copy the underlying C level structures. ~~~ruby ssl_ctx = OpenSSL::SSL::SSLContext.new ssl_ctx.ciphers = "aNULL" p ssl_ctx.ciphers # => [["ADH-AES256-GCM-SHA384", "TLSv1.2", 256, 256], .. aNULL cipher suites ..] new_ctx = ssl_ctx.dup p new_ctx.ciphers # => [["ECDHE-ECDSA-AES256-GCM-SHA384", "TLSv1.2", 256, 256], .. the default cipher suites ..] ~~~ ---Files-------------------------------- 0001-Implement-missing-initialize_copy.patch (16.2 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: