ruby/test/drb
rhe 63abe00785 openssl: adapt OpenSSL::PKey to OpenSSL 1.1.0 opaque structs
* ext/openssl/openssl_missing.[ch]: Implement EVP_PKEY_get0_*() and
  {RSA,DSA,EC_KEY,DH}_get0_*() functions.
  OpenSSL 1.1.0 makes EVP_PKEY/RSA/DSA/DH opaque. We used to provide
  setter methods for each parameter of each PKey type, for example
  PKey::RSA#e=, but this is no longer possible because the new API
  RSA_set0_key() requires the 'n' at the same time. This commit adds
  deprecation warning to them and adds PKey::*#set_* methods as direct
  wrapper for those new APIs. For example, 'rsa.e = 3' now needs to be
  rewritten as 'rsa.set_key(rsa.n, 3, rsa.d)'.
  [ruby-core:75225] [Feature #12324]

* ext/openssl/ossl_pkey*.[ch]: Use the new accessor functions. Implement
  RSA#set_{key,factors,crt_params}, DSA#set_{key,pqg}, DH#set_{key,pqg}.
  Emit a warning with rb_warning() when old setter methods are used.

* test/drb/ut_array_drbssl.rb, test/drb/ut_drb_drbssl.rb,
  test/rubygems/test_gem_remote_fetcher.rb: Don't set a priv_key for DH
  object that are used in tmp_dh_callback. Generating a new key pair
  every time should be fine - actually the private exponent is ignored
  in OpenSSL >= 1.0.2f/1.0.1r even if we explicitly set.
  https://www.openssl.org/news/secadv/20160128.txt

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-06-05 15:00:47 +00:00
..
drbtest.rb drbtest.rb: make command an array 2016-02-12 04:24:10 +00:00
ignore_test_drb.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_acl.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_drb.rb additional math operations 2016-01-31 03:34:21 +00:00
test_drbssl.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_drbunix.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_array.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_array_drbssl.rb openssl: adapt OpenSSL::PKey to OpenSSL 1.1.0 opaque structs 2016-06-05 15:00:47 +00:00
ut_array_drbunix.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_drb.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_drb_drbssl.rb openssl: adapt OpenSSL::PKey to OpenSSL 1.1.0 opaque structs 2016-06-05 15:00:47 +00:00
ut_drb_drbunix.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_eq.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_eval.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_large.rb additional math operations 2016-01-31 03:34:21 +00:00
ut_port.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_safe1.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ut_timerholder.rb use finalizer trick instead of thread. 2016-05-22 11:03:43 +00:00