[前][次][番号順一覧][スレッド一覧]

ruby-changes:36135

From: headius <ko1@a...>
Date: Sat, 1 Nov 2014 05:50:25 +0900 (JST)
Subject: [ruby-changes:36135] headius:r48216 (trunk): * test/openssl/test_ssl.rb: Add certificate verification chain

headius	2014-11-01 05:49:51 +0900 (Sat, 01 Nov 2014)

  New Revision: 48216

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48216

  Log:
    * test/openssl/test_ssl.rb: Add certificate verification chain
      test from JRuby community.

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_ssl.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48215)
+++ ChangeLog	(revision 48216)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 31 15:26:02 2014  Charles Oliver Nutter  <headius@h...>
+
+	* test/openssl/test_ssl.rb: Add certificate verification chain
+	  test from JRuby community.
+
 Fri Oct 31 18:58:02 2014  Charles Oliver Nutter  <headius@h...>
 
 	* test/psych/test_emitter.rb: Fix line_width test...initial value
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 48215)
+++ test/openssl/test_ssl.rb	(revision 48216)
@@ -19,6 +19,13 @@ class OpenSSL::TestSSL < OpenSSL::SSLTes https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L19
                  ctx.options & OpenSSL::SSL::OP_NO_COMPRESSION)
   end if defined?(OpenSSL::SSL::OP_NO_COMPRESSION)
 
+  def test_ctx_setup_with_extra_chain_cert
+    ctx = OpenSSL::SSL::SSLContext.new
+    ctx.extra_chain_cert = [@ca_cert, @cli_cert]
+    assert_equal(ctx.setup, true)
+    assert_equal(ctx.setup, nil)
+  end
+
   def test_not_started_session
     skip "non socket argument of SSLSocket.new is not supported on this platform" if /mswin|mingw/ =~ RUBY_PLATFORM
     open(__FILE__) do |f|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]