1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
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
..
-test- string.c: return reallocated pointer 2016-05-30 07:20:28 +00:00
bigdecimal missing.h: isfinite 2016-05-23 12:33:39 +00:00
cgi/escape cgi/util.rb: remove CGI::Util#_unescape 2016-04-20 08:33:33 +00:00
continuation handle ext/ as r53141 2015-12-16 05:31:54 +00:00
coverage Update dependencies. 2016-04-11 11:50:00 +00:00
date fix typos [ci skip] 2016-05-20 13:21:55 +00:00
dbm remove unnecessary volatiles 2016-05-23 04:31:55 +00:00
digest Update dependencies. 2016-04-11 11:50:00 +00:00
etc etc.c: retry with allocated string buffer 2016-06-02 12:21:42 +00:00
fcntl handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fiber handle ext/ as r53141 2015-12-16 05:31:54 +00:00
fiddle fiddle/import.rb: suppress warnings 2016-04-11 04:28:16 +00:00
gdbm handle ext/ as r53141 2015-12-16 05:31:54 +00:00
io io/console: bump up 2016-04-15 06:15:54 +00:00
json [Feature #12005] Unify Fixnum and Bignum into Integer 2016-05-17 06:53:48 +00:00
mathn handle ext/ as r53141 2015-12-16 05:31:54 +00:00
nkf Update dependencies. 2016-04-11 11:50:00 +00:00
objspace objspace_dump.c: fix format 2016-05-08 09:59:36 +00:00
openssl openssl: adapt OpenSSL::PKey to OpenSSL 1.1.0 opaque structs 2016-06-05 15:00:47 +00:00
pathname handle ext/ as r53141 2015-12-16 05:31:54 +00:00
psych stdlib: avoid extra calls to eliminate "\n" from Base64 2016-01-10 00:35:43 +00:00
pty pty.c: dry up 2016-04-30 01:12:52 +00:00
racc/cparse handle ext/ as r53141 2015-12-16 05:31:54 +00:00
rbconfig/sizeof rbconfig/sizeof: calculate at compilation time 2016-04-25 05:39:12 +00:00
readline Update dependencies. 2016-04-11 11:50:00 +00:00
ripper ripper: fix ripper.E 2016-04-25 07:56:06 +00:00
sdbm remove unnecessary volatiles 2016-05-23 04:31:55 +00:00
socket * ext/socket/raddrinfo.c (host_str, port_str): Use StringValueCStr 2016-05-30 15:33:06 +00:00
stringio stringio.c: share strings 2016-05-30 05:54:59 +00:00
strscan Update dependencies. 2016-04-11 11:50:00 +00:00
syslog Update dependencies. 2016-04-11 11:50:00 +00:00
tk tcltklib.c: elimitate dead code 2016-05-23 04:40:43 +00:00
win32 registry.rb: fix API names 2016-04-10 11:54:17 +00:00
win32ole win32ole.c: share the content 2016-05-20 12:17:14 +00:00
zlib * ext/zlib/zlib.c: remove hacky macro introduced at r30437. 2016-05-21 17:47:52 +00:00
.document * ext/win32ole/win32ole.c: separate WIN32OLE::VARIANT src file 2014-08-02 14:55:36 +00:00
extmk.rb extmk.rb: fix skipping messages 2016-05-16 00:16:13 +00:00
Setup ext/thread: remove 2016-04-30 02:56:17 +00:00
Setup.atheos cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00
Setup.nacl cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00
Setup.nt cgi/escape: Optimize CGI.escapeHTML 2015-12-20 11:54:54 +00:00