mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
openssl: fix examples [ci skip]
* ext/openssl/ossl.c: Add missing variables to documentation examples. [Fix GH-1189] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c79402c4f0
commit
fa8920288c
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jan 9 23:15:25 2016 Jon Moss <maclover7@users.noreply.github.com>
|
||||||
|
|
||||||
|
* ext/openssl/ossl.c: Add missing variables to documentation
|
||||||
|
examples. [Fix GH-1189]
|
||||||
|
|
||||||
Sat Jan 9 18:25:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jan 9 18:25:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* symbol.h (is_attrset_id): ASET is an attrset ID. fix
|
* symbol.h (is_attrset_id): ASET is an attrset ID. fix
|
||||||
|
|
|
@ -626,6 +626,7 @@ static void Init_ossl_locks(void)
|
||||||
* loading the key:
|
* loading the key:
|
||||||
*
|
*
|
||||||
* key4_pem = File.read 'private.secure.pem'
|
* key4_pem = File.read 'private.secure.pem'
|
||||||
|
* pass_phrase = 'my secure pass phrase goes here'
|
||||||
* key4 = OpenSSL::PKey::RSA.new key4_pem, pass_phrase
|
* key4 = OpenSSL::PKey::RSA.new key4_pem, pass_phrase
|
||||||
*
|
*
|
||||||
* == RSA Encryption
|
* == RSA Encryption
|
||||||
|
@ -790,6 +791,7 @@ static void Init_ossl_locks(void)
|
||||||
* This example creates a self-signed certificate using an RSA key and a SHA1
|
* This example creates a self-signed certificate using an RSA key and a SHA1
|
||||||
* signature.
|
* signature.
|
||||||
*
|
*
|
||||||
|
* key = OpenSSL::PKey::RSA.new 2048
|
||||||
* name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'
|
* name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'
|
||||||
*
|
*
|
||||||
* cert = OpenSSL::X509::Certificate.new
|
* cert = OpenSSL::X509::Certificate.new
|
||||||
|
@ -859,6 +861,7 @@ static void Init_ossl_locks(void)
|
||||||
* not readable by other users.
|
* not readable by other users.
|
||||||
*
|
*
|
||||||
* ca_key = OpenSSL::PKey::RSA.new 2048
|
* ca_key = OpenSSL::PKey::RSA.new 2048
|
||||||
|
* pass_phrase = 'my secure pass phrase goes here'
|
||||||
*
|
*
|
||||||
* cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
|
* cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue