aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pkcs12.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-06-28 23:38:05 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-04 21:38:36 +0900
commit6dc9b914cae52c8af6e1b4d1156613bcd914eaf5 (patch)
tree1c08759e790e6daa81cda32a063d6b20b26a9b31 /test/test_pkcs12.rb
parentbf120798efa43c9db6c68e75037fc0a0c4735703 (diff)
downloadruby-openssl-6dc9b914cae52c8af6e1b4d1156613bcd914eaf5.tar.gz
Implement missing initialize_copytopic/fix-initialize-copy
Implement initialize_copy for: - OpenSSL::PKCS12 - OpenSSL::SSL::SSLSession - OpenSSL::X509::Attribute - OpenSSL::X509::Extension - OpenSSL::X509::Name - OpenSSL::X509::Revoked Remove initialize_copy from: - OpenSSL::SSL::SSLContext - OpenSSL::SSL::SSLSocket - OpenSSL::Engine - OpenSSL::X509::Store - OpenSSL::X509::StoreContext [Bug #12381]
Diffstat (limited to 'test/test_pkcs12.rb')
-rw-r--r--test/test_pkcs12.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_pkcs12.rb b/test/test_pkcs12.rb
index 61fb4474..7ab501c4 100644
--- a/test/test_pkcs12.rb
+++ b/test/test_pkcs12.rb
@@ -180,6 +180,11 @@ Li8JsX5yIiuVYaBg/6ha3tOg4TCa5K/3r3tVliRZ2Es=
end
end
+ def test_dup
+ p12 = OpenSSL::PKCS12.create("pass", "name", TEST_KEY_RSA1024, @mycert)
+ assert_equal p12.to_der, p12.dup.to_der
+ end
+
private
def assert_cert expected, actual
[