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

ruby-changes:43025

From: rhe <ko1@a...>
Date: Sat, 21 May 2016 14:45:46 +0900 (JST)
Subject: [ruby-changes:43025] rhe:r55099 (trunk): openssl: fix SSL client example in documentation [ci skip]

rhe	2016-05-21 14:45:41 +0900 (Sat, 21 May 2016)

  New Revision: 55099

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

  Log:
    openssl: fix SSL client example in documentation [ci skip]
    
    * ext/openssl/ossl.c: [DOC] Fix SSL client example. The variable name
      was wrong. Patch by Andreas Tiefenthaler <at@a...> (@pxlpnk).
      [GH ruby/openssl#32]

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl.c
Index: ext/openssl/ossl.c
===================================================================
--- ext/openssl/ossl.c	(revision 55098)
+++ ext/openssl/ossl.c	(revision 55099)
@@ -1067,8 +1067,8 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L1067
  *
  *   require 'socket'
  *
- *   tcp_client = TCPSocket.new 'localhost', 5000
- *   ssl_client = OpenSSL::SSL::SSLSocket.new client_socket, context
+ *   tcp_socket = TCPSocket.new 'localhost', 5000
+ *   ssl_client = OpenSSL::SSL::SSLSocket.new tcp_socket, context
  *   ssl_client.connect
  *
  *   ssl_client.puts "hello server!"
@@ -1087,8 +1087,8 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L1087
  *
  *   require 'socket'
  *
- *   tcp_client = TCPSocket.new 'localhost', 5000
- *   ssl_client = OpenSSL::SSL::SSLSocket.new client_socket, context
+ *   tcp_socket = TCPSocket.new 'localhost', 5000
+ *   ssl_client = OpenSSL::SSL::SSLSocket.new tcp_socket, context
  *   ssl_client.connect
  *
  *   ssl_client.puts "hello server!"
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55098)
+++ ChangeLog	(revision 55099)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat May 21 14:41:14 2016  Kazuki Yamaguchi  <k@r...>
+
+	* ext/openssl/ossl.c: [DOC] Fix SSL client example. The variable name
+	  was wrong. Patch by Andreas Tiefenthaler <at@a...> (@pxlpnk).
+	  [GH ruby/openssl#32]
+
 Sat May 21 14:25:38 2016  Kazuki Yamaguchi  <k@r...>
 
 	* ext/openssl/ossl_pkey_ec.c: rename PKey::EC#private_key? and

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

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