summaryrefslogtreecommitdiff
path: root/test/openssl/test_x509req.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_x509req.rb')
-rw-r--r--test/openssl/test_x509req.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/openssl/test_x509req.rb b/test/openssl/test_x509req.rb
index 53e5a437fc..086ccfbdb1 100644
--- a/test/openssl/test_x509req.rb
+++ b/test/openssl/test_x509req.rb
@@ -139,7 +139,7 @@ class OpenSSL::TestX509Request < OpenSSL::TestCase
req.version = 1
assert_equal(false, req.verify(@rsa1024))
rescue OpenSSL::X509::RequestError
- skip
+ pend
end if defined?(OpenSSL::Digest::DSS1)
def test_sign_and_verify_dsa_md5
@@ -147,6 +147,11 @@ class OpenSSL::TestX509Request < OpenSSL::TestCase
issue_csr(0, @dn, @dsa512, OpenSSL::Digest::MD5.new) }
end
+ def test_dup
+ req = issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::SHA1.new)
+ assert_equal(req.to_der, req.dup.to_der)
+ end
+
private
def request_error_returns_false