ruby/test
rhe c8cb26252a openssl: clear OpenSSL error queue before return to Ruby
* ext/openssl/ossl_x509cert.c (ossl_x509_verify): X509_verify()
  family may put errors on 0 return (0 means verification failure).
  Clear OpenSSL error queue before return to Ruby. Since the queue is
  thread global, remaining errors in the queue can cause an unexpected
  error in the next OpenSSL operation.  [ruby-core:48284] [Bug #7215]

* ext/openssl/ossl_x509crl.c (ossl_x509crl_verify): ditto.

* ext/openssl/ossl_x509req.c (ossl_x509req_verify): ditto.

* ext/openssl/ossl_x509store.c (ossl_x509stctx_verify): ditto.

* ext/openssl/ossl_pkey_dh.c (dh_generate): clear the OpenSSL error
  queue before re-raising exception.

* ext/openssl/ossl_pkey_dsa.c (dsa_generate): ditto.

* ext/openssl/ossl_pkey_rsa.c (rsa_generate): ditto.

* ext/openssl/ossl_ssl.c (ossl_start_ssl): ditto.

* test/openssl: check that OpenSSL.errors is empty every time after
  running a test case.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-18 04:07:47 +00:00
..
-ext- Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
base64 Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
benchmark Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
bigdecimal Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
cgi cgi/util.rb: remove CGI::Util#_unescape 2016-04-20 08:33:33 +00:00
coverage test_coverage.rb: suppress warnings 2016-04-11 05:13:31 +00:00
csv Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
date Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
dbm update comments. 2016-05-01 12:50:19 +00:00
digest Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
drb don't use keeper thread. [Bug #12342] 2016-05-15 11:59:00 +00:00
dtrace Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
erb erb.rb: fronzen-string-literal in comment [Fix GH-1229] 2016-01-29 05:16:29 +00:00
etc Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
excludes TestException.rb: suppress warning 2016-04-11 08:27:19 +00:00
fiddle * test_handle.rb: refine test_fallback_to_ansi 2016-05-16 06:26:56 +00:00
fileutils Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
gdbm update comments. 2016-05-01 12:50:19 +00:00
io io/console: unknown key code for names with nul 2016-04-15 01:07:14 +00:00
irb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
json Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
lib [Feature #12005] Unify Fixnum and Bignum into Integer 2016-05-17 06:53:48 +00:00
logger * test/logger/test_logdevice.rb (TestLogDevice#test_shifting_period_suffix): 2016-05-01 14:56:45 +00:00
matrix Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
minitest Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
misc Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
mkmf mkmf: Unquote directory strings 2016-03-24 16:10:43 +00:00
monitor Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
net * lib/net/http/header.rb (Net::HTTPHeader#{each_header,each_name, 2016-05-04 09:46:46 +00:00
nkf Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
objspace Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
open-uri * lib/open-uri.rb: Use userinfo for authenticated proxy. 2016-03-30 00:46:05 +00:00
openssl openssl: clear OpenSSL error queue before return to Ruby 2016-05-18 04:07:47 +00:00
optparse optparse.rb: into kwdarg 2016-01-06 08:23:10 +00:00
ostruct test_ostruct.rb: sort method names 2016-01-04 07:47:44 +00:00
pathname * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
psych * test/psych/test_emitter.rb: test_resizing_tags missing 2016-02-22 23:22:39 +00:00
rdoc test_rdoc_generator_json_index.rb: open in binmode 2015-12-22 16:41:34 +00:00
readline Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
resolv Resolv::IPv6.create: avoid modifying frozen string literal 2015-12-28 20:31:10 +00:00
rexml Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
rinda Sat Mar 5 09:17:54 2016 Rei Odaira <Rei.Odaira@gmail.com> 2016-03-05 00:29:39 +00:00
ripper Fix Ripper.lex error in dedenting squiggly heredoc 2016-02-02 23:21:34 +00:00
rss Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ruby re.c: fix up r55036 2016-05-17 18:16:08 +00:00
rubygems Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
scanf Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
sdbm update comments. 2016-05-01 12:50:19 +00:00
shell Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
socket * test/socket/test_socket.rb (test_udp_recvmsg_truncation): 2016-03-10 00:55:37 +00:00
stringio stringio.c: warn block for new 2016-04-27 06:47:56 +00:00
strscan Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
syslog Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
testunit test/unit: fix for the test 2016-02-27 04:16:44 +00:00
thread Use Integer instead of Fixnum and Bignum. 2016-05-17 13:15:57 +00:00
uri CIDR in no_proxy 2016-02-13 08:31:12 +00:00
webrick webrick/utils.rb: suppress messages 2016-05-09 00:05:32 +00:00
win32ole test/win32ole/test_win32ole_variant.rb: use other than Integer 2016-05-18 02:05:30 +00:00
zlib * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): 2016-03-04 22:20:56 +00:00
colors default colors 2015-05-17 00:50:11 +00:00
runner.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_abbrev.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_cmath.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_delegate.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_find.rb find.rb: raise with the name 2016-02-19 14:38:28 +00:00
test_forwardable.rb forwardable.rb: adjust backtrace by tail call 2015-12-30 02:28:59 +00:00
test_ipaddr.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_mathn.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_mutex_m.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_observer.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_open3.rb * lib/open3.rb: Specify frozen_string_literal: true. 2015-11-14 07:43:23 +00:00
test_pp.rb * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
test_prettyprint.rb * lib/open-uri.rb: Remove indicator for "frozen_string_literal: true". 2015-11-10 11:48:14 +00:00
test_prime.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_pstore.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_pty.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_rbconfig.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_securerandom.rb random.c: use bytes 2016-05-10 05:57:11 +00:00
test_set.rb * lib/set.rb (Set#{delete_if,keep_if,collect!,reject!,select!,classify,divide}, 2016-05-04 09:06:59 +00:00
test_shellwords.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_singleton.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_syslog.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_tempfile.rb test_tempfile.rb: use assert_file 2016-01-08 08:24:01 +00:00
test_time.rb * lib/time.rb: revert r54167 because it would break 2016-04-19 04:20:48 +00:00
test_timeout.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_tmpdir.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_tracer.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_tsort.rb test/test_tsort.rb: Specify frozen_string_literal: true. 2015-11-14 09:43:18 +00:00
test_unicode_normalize.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_weakref.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_win32api.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00