openssl 2.0.0.beta.1 → 2.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of openssl might be problematic. Click here for more details.

@@ -73,16 +73,6 @@ module OpenSSL
73
73
  DEFAULT_CERT_STORE.set_default_paths
74
74
  DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
75
75
 
76
- # :nodoc:
77
- INIT_VARS = ["cert", "key", "client_ca", "ca_file", "ca_path",
78
- "timeout", "verify_mode", "verify_depth", "renegotiation_cb",
79
- "verify_callback", "cert_store", "extra_chain_cert",
80
- "client_cert_cb", "session_id_context", "tmp_dh_callback",
81
- "session_get_cb", "session_new_cb", "session_remove_cb",
82
- "tmp_ecdh_callback", "servername_cb", "npn_protocols",
83
- "alpn_protocols", "alpn_select_cb",
84
- "npn_select_cb", "verify_hostname"].map { |x| "@#{x}" }
85
-
86
76
  # A callback invoked when DH parameters are required.
87
77
  #
88
78
  # The callback is invoked with the Session for the key exchange, an
@@ -110,10 +100,8 @@ module OpenSSL
110
100
  #
111
101
  # You can get a list of valid methods with OpenSSL::SSL::SSLContext::METHODS
112
102
  def initialize(version = nil)
113
- INIT_VARS.each { |v| instance_variable_set v, nil }
114
- self.options = self.options | OpenSSL::SSL::OP_ALL
115
- return unless version
116
- self.ssl_version = version
103
+ self.options |= OpenSSL::SSL::OP_ALL
104
+ self.ssl_version = version if version
117
105
  end
118
106
 
119
107
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta.1
4
+ version: 2.0.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bosslet
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-08-29 00:00:00.000000000 Z
14
+ date: 2016-09-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake