Project

General

Profile

Actions

Bug #12381

closed

ext/openssl classes' dup/clone don't work well

Added by rhenium (Kazuki Yamaguchi) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:75504]

Description

They don't copy the underlying C level structures.

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) 0001-Implement-missing-initialize_copy.patch rhenium (Kazuki Yamaguchi), 08/04/2016 01:55 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0