Project

General

Profile

Actions

Bug #13328

closed

Implement OpenSSL::SSL::SSLContext#initialize_copy

Added by kylekyle (Kyle King) about 7 years ago. Updated about 7 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
[ruby-core:80222]

Description

Starting in Ruby 2.4, an OpenSSL::SSL::SSLContext cannot be dup'ed or cloned:

[1] pry(main)> require 'openssl'
=> true
[2] pry(main)> OpenSSL::SSL::SSLContext.new.dup
NoMethodError: undefined method `initialize_copy' for #<OpenSSL::SSL::SSLContext:0x007f914b944d08>
from (pry):2:in `initialize_dup'

Updated by rhenium (Kazuki Yamaguchi) about 7 years ago

  • Status changed from Open to Third Party's Issue

Please open an issue at https://github.com/ruby/openssl when reporting bugs of ext/openssl.

This is however not a bug. Cloning OpenSSL::SSL::SSLContext have never worked properly and left the copy in an inconsistent state in previous versions of Ruby.

Actions

Also available in: Atom PDF

Like0
Like0