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

ruby-changes:41414

From: nobu <ko1@a...>
Date: Sat, 9 Jan 2016 23:15:33 +0900 (JST)
Subject: [ruby-changes:41414] nobu:r53486 (trunk): openssl: fix examples [ci skip]

nobu	2016-01-09 23:15:49 +0900 (Sat, 09 Jan 2016)

  New Revision: 53486

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

  Log:
    openssl: fix examples [ci skip]
    
    * ext/openssl/ossl.c: Add missing variables to documentation
      examples.  [Fix GH-1189]

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl.c
Index: ext/openssl/ossl.c
===================================================================
--- ext/openssl/ossl.c	(revision 53485)
+++ ext/openssl/ossl.c	(revision 53486)
@@ -626,6 +626,7 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L626
  * loading the key:
  *
  *   key4_pem = File.read 'private.secure.pem'
+ *   pass_phrase = 'my secure pass phrase goes here'
  *   key4 = OpenSSL::PKey::RSA.new key4_pem, pass_phrase
  *
  * == RSA Encryption
@@ -790,6 +791,7 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L791
  * This example creates a self-signed certificate using an RSA key and a SHA1
  * signature.
  *
+ *   key = OpenSSL::PKey::RSA.new 2048
  *   name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'
  *
  *   cert = OpenSSL::X509::Certificate.new
@@ -859,6 +861,7 @@ static void Init_ossl_locks(void) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl.c#L861
  * not readable by other users.
  *
  *   ca_key = OpenSSL::PKey::RSA.new 2048
+ *   pass_phrase = 'my secure pass phrase goes here'
  *
  *   cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
  *
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53485)
+++ ChangeLog	(revision 53486)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jan  9 23:15:25 2016  Jon Moss  <maclover7@u...>
+
+	* ext/openssl/ossl.c: Add missing variables to documentation
+	  examples.  [Fix GH-1189]
+
 Sat Jan  9 18:25:57 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* symbol.h (is_attrset_id): ASET is an attrset ID.  fix

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

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