diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:49:10 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:49:10 +0000 |
commit | 61ce01276dc8b2fe7afa85a8d788f7774a451f0a (patch) | |
tree | d9b2cc1ad0bc5472fe324171e2090971b4fe636a /test/openssl | |
parent | 1dd5d8e4f00692b3cdc32f7781e590ac00e70f5e (diff) |
merges r31244 from trunk into ruby_1_9_2.
--
* ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize):
pop pushed error after each try of reading. fixes #4550
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_initialize): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_pkey_rsa.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb index 401cb6c3e0..445029ef27 100644 --- a/test/openssl/test_pkey_rsa.rb +++ b/test/openssl/test_pkey_rsa.rb @@ -44,6 +44,13 @@ class OpenSSL::TestPKeyRSA < Test::Unit::TestCase key4 = OpenSSL::PKey::RSA.new(key3.to_der) assert(!key4.private?) end + + def test_new + key = OpenSSL::PKey::RSA.new 512 + pem = key.public_key.to_pem + OpenSSL::PKey::RSA.new pem + assert_equal([], OpenSSL.errors) + end end end |