1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/openssl
headius 0626d9b91c Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS
subclasses that include WaitReadable or WaitWritable rather than
extending them into the exception object each time.

* error.c: Capture EGAIN, EWOULDBLOCK, EINPROGRESS exceptions and
  export them for use in WaitReadable/Writable exceptions.
* io.c: Create versions of EAGAIN, EWOULDBLOCK, EINPROGRESS that
  include WaitReadable and WaitWritable. Add rb_readwrite_sys_fail
  for nonblocking failures using those exceptions. Use that
  function in io_getpartial and io_write_nonblock instead of
  rb_mod_sys_fail
* ext/openssl/ossl_ssl.c: Add new SSLError subclasses that include
  WaitReadable and WaitWritable. Use those classes for
  write_would_block and read_would_block instead of rb_mod_sys_fail.
* ext/socket/ancdata.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in bsock_sendmsg_internal and
  bsock_recvmsg_internal.
* ext/socket/init.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in rsock_s_recvfrom_nonblock and
  rsock_s_connect_nonblock.
* ext/socket/socket.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in sock_connect_nonblock.
* include/ruby/ruby.h: Export rb_readwrite_sys_fail for use instead
  of rb_mod_sys_fail. Introduce new constants RB_IO_WAIT_READABLE and
  RB_IO_WAIT_WRITABLE for first arg to rb_readwrite_sys_fail.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-08 19:58:55 +00:00
..
ssl_server.rb
test_asn1.rb * test/openssl/test_asn1_rb: 2012-09-03 22:54:12 +00:00
test_bn.rb * ext/openssl/ossl_bn.c (ossl_bn_initialize): fix can't create from bn. 2013-04-03 18:28:56 +00:00
test_buffering.rb * test/openssl/test_asn1_rb: 2012-09-03 22:54:12 +00:00
test_cipher.rb * remove trailing spaces. 2012-12-20 06:18:26 +00:00
test_config.rb * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when 2012-10-06 14:26:29 +00:00
test_digest.rb * ext/openssl/lib/openssl/digest.rb 2012-08-02 01:58:49 +00:00
test_engine.rb remove trainling spaces. 2012-08-21 04:50:18 +00:00
test_fips.rb * ext/openssl/ossl.c: do not use FIPS_mode_set if not available. 2012-12-20 07:00:11 +00:00
test_hmac.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_ns_spki.rb * ext/openssl/ossl_ns_spki.c: Complete documentation. 2011-10-20 17:22:09 +00:00
test_ocsp.rb * test/openssl/test_ocsp.rb 2011-07-02 00:03:29 +00:00
test_pair.rb Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS 2013-04-08 19:58:55 +00:00
test_pkcs5.rb * test/openssl/test_pkcs5.rb: add RFC 6070 tests for PBKDF2 with 2011-10-20 03:32:36 +00:00
test_pkcs7.rb remove trainling spaces. 2012-08-21 04:50:18 +00:00
test_pkcs12.rb fix typo: s/@ca_cert/@cacert/ 2013-04-02 02:02:33 +00:00
test_pkey_dh.rb * test/openssl/test_pkey_dh.rb: revert special treatment of 2012-12-20 00:32:09 +00:00
test_pkey_dsa.rb * ext/openssl/ossl.c 2012-06-10 01:23:21 +00:00
test_pkey_ec.rb remove trainling spaces. 2012-08-21 04:50:18 +00:00
test_pkey_rsa.rb * ext/openssl/ossl.c 2012-06-10 01:23:21 +00:00
test_ssl.rb * test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in 2012-12-18 02:32:28 +00:00
test_ssl_session.rb * test/openssl/test_asn1_rb: 2012-09-03 22:54:12 +00:00
test_x509cert.rb * test/openssl/test_asn1_rb: 2012-09-03 22:54:12 +00:00
test_x509crl.rb * ext/openssl/extconf.rb: Detect OpenSSL_FIPS macro 2012-09-03 01:14:26 +00:00
test_x509ext.rb drying up the requires in the openssl tests 2010-12-15 19:50:00 +00:00
test_x509name.rb * ruby.c (load_file_internal): set default source encoding as 2012-11-06 00:49:57 +00:00
test_x509req.rb * ext/openssl/extconf.rb: Detect OpenSSL_FIPS macro 2012-09-03 01:14:26 +00:00
test_x509store.rb Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement 2013-03-23 14:21:22 +00:00
utils.rb * ext/openssl/ossl.c: do not use FIPS_mode_set if not available. 2012-12-20 07:00:11 +00:00