diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-20 06:06:46 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-20 06:06:46 +0000 |
commit | be4f7bf51253b5a0519126fb742b8de514bad278 (patch) | |
tree | c44d9f82e72e3b37003adc8c13b0a7c53fa75258 /ChangeLog | |
parent | 0ead5c4983edcdef071eb4317b904d9d0419b388 (diff) | |
download | ruby-be4f7bf51253b5a0519126fb742b8de514bad278.tar.gz |
* Make sure to clear $! when ignoring an exception
* ext/openssl/ossl.c (ossl_pem_passwd_cb0, ossl_verify_cb):
pem_passwd_cb and verify_cb ignores the exception raised in a
callback proc so it should clear $! for subsequent execution.
That's said, both subsequent processes for pem_passwd_cb and
verify_cb raises another exception before leaking $! to Ruby world.
We cannot test this fix in Ruby land.
* test/openssl/test_pkey_rsa.rb
(test_read_private_key_pem_pw_exception): Test for pem_passwd_cb +
exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ +Tue Dec 20 15:04:18 2011 Hiroshi Nakamura <nahi@ruby-lang.org> + + * Make sure to clear $! when ignoring an exception + + * ext/openssl/ossl.c (ossl_pem_passwd_cb0, ossl_verify_cb): + pem_passwd_cb and verify_cb ignores the exception raised in a + callback proc so it should clear $! for subsequent execution. + + That's said, both subsequent processes for pem_passwd_cb and + verify_cb raises another exception before leaking $! to Ruby world. + We cannot test this fix in Ruby land. + + * test/openssl/test_pkey_rsa.rb + (test_read_private_key_pem_pw_exception): Test for pem_passwd_cb + + exception. + Tue Dec 20 11:49:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * test/date/test_date_base.rb (test_jd): tests for |