summaryrefslogtreecommitdiffstats
path: root/test/test_x509name.rb
diff options
context:
space:
mode:
authorrhe <rhe@ruby-lang.org>2016-08-29 05:47:09 +0000
committerrhe <rhe@ruby-lang.org>2016-08-29 05:47:09 +0000
commit35599b7efe1a79441d80e6d1575398bf1cbf6442 (patch)
tree81894615695f962bf52101e11737bad3874620a3 /test/test_x509name.rb
parentf8316bff03aa6c510ac801b4367bab74a3b7c2c5 (diff)
downloadruby-openssl-history-35599b7efe1a79441d80e6d1575398bf1cbf6442.tar.gz
import Ruby/OpenSSL 2.0.0.beta.1
* NEWS, {ext,test,sample}/openssl: Import Ruby/OpenSSL 2.0.0.beta.1. ext/openssl is now converted into a default gem. The full commit history since r55538 can be found at: https://github.com/ruby/openssl/compare/08e1881f5663...v2.0.0.beta.1 [Feature #9612] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_x509name.rb')
-rw-r--r--test/test_x509name.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_x509name.rb b/test/test_x509name.rb
index b87d415..250f1d0 100644
--- a/test/test_x509name.rb
+++ b/test/test_x509name.rb
@@ -355,6 +355,11 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase
expected = (d[0].ord & 0xff) | (d[1].ord & 0xff) << 8 | (d[2].ord & 0xff) << 16 | (d[3].ord & 0xff) << 24
assert_equal(expected, name_hash(name))
end
+
+ def test_dup
+ name = OpenSSL::X509::Name.parse("/CN=ruby-lang.org")
+ assert_equal(name.to_der, name.dup.to_der)
+ end
end
end