diff options
Diffstat (limited to 'test/openssl/test_pkey_dsa.rb')
-rw-r--r-- | test/openssl/test_pkey_dsa.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/openssl/test_pkey_dsa.rb b/test/openssl/test_pkey_dsa.rb index ba3bfb5b4a..e498e3c03a 100644 --- a/test/openssl/test_pkey_dsa.rb +++ b/test/openssl/test_pkey_dsa.rb @@ -76,6 +76,7 @@ end assert_equal(g, key.g) assert_equal(y, key.pub_key) assert_equal(nil, key.priv_key) + assert_equal([], OpenSSL.errors) end def test_read_DSAPublicKey_pem @@ -100,6 +101,7 @@ fWLOqqkzFeRrYMDzUpl36XktY6Yq8EJYlW9pCMmBVNy/dQ== assert_equal(g, key.g) assert_equal(y, key.pub_key) assert_equal(nil, key.priv_key) + assert_equal([], OpenSSL.errors) end def test_read_DSA_PUBKEY_pem @@ -125,6 +127,7 @@ YNMbNw== assert_equal(g, key.g) assert_equal(y, key.pub_key) assert_equal(nil, key.priv_key) + assert_equal([], OpenSSL.errors) end def test_export_format_is_DSA_PUBKEY_pem @@ -154,6 +157,7 @@ YNMbNw== pub_key = OpenSSL::ASN1.decode(seq[1].value) assert_equal(OpenSSL::ASN1::INTEGER, pub_key.tag) assert_equal(key.pub_key, pub_key.value) + assert_equal([], OpenSSL.errors) end def test_read_private_key_der @@ -162,6 +166,7 @@ YNMbNw== key2 = OpenSSL::PKey.read(der) assert(key2.private?) assert_equal(der, key2.to_der) + assert_equal([], OpenSSL.errors) end def test_read_private_key_pem @@ -170,6 +175,7 @@ YNMbNw== key2 = OpenSSL::PKey.read(pem) assert(key2.private?) assert_equal(pem, key2.to_pem) + assert_equal([], OpenSSL.errors) end def test_read_public_key_der @@ -178,6 +184,7 @@ YNMbNw== key2 = OpenSSL::PKey.read(der) assert(!key2.private?) assert_equal(der, key2.to_der) + assert_equal([], OpenSSL.errors) end def test_read_public_key_pem @@ -186,6 +193,7 @@ YNMbNw== key2 = OpenSSL::PKey.read(pem) assert(!key2.private?) assert_equal(pem, key2.to_pem) + assert_equal([], OpenSSL.errors) end def test_read_private_key_pem_pw @@ -200,6 +208,7 @@ YNMbNw== key2 = OpenSSL::PKey.read(pem, 'secret') assert(key2.private?) #omit pem equality check, will be different due to cipher iv + assert_equal([], OpenSSL.errors) end private |