summaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_dh.c
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2011-06-30 20:20:32 +0000
committernobu <nobu@ruby-lang.org>2011-06-30 20:20:32 +0000
commit8614daa904efa04800e8a13833c510ccac5685e6 (patch)
treef304582099316eb5e92841e963dd4b70ebbe6d5a /ext/openssl/ossl_pkey_dh.c
parent6e821cf7574bdc3fe5b6054ddb76203db92b0e37 (diff)
downloadruby-openssl-history-8614daa904efa04800e8a13833c510ccac5685e6.tar.gz
* sytle fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_pkey_dh.c')
-rw-r--r--ext/openssl/ossl_pkey_dh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c
index dd56458..748d9c8 100644
--- a/ext/openssl/ossl_pkey_dh.c
+++ b/ext/openssl/ossl_pkey_dh.c
@@ -357,7 +357,7 @@ ossl_dh_to_text(VALUE self)
* per-session information.
*
* === Example
- * dh = OpenSSL::PKey::DH.new(2048) # has public and private key set
+ * dh = OpenSSL::PKey::DH.new(2048) # has public and private key set
* public_key = dh.public_key # contains only prime and generator
* parameters = public_key.to_der # it's safe to publish this
*/
@@ -574,10 +574,10 @@ Init_ossl_dh()
* dh1 = OpenSSL::PKey::DH.new(2048)
* params = dh1.public_key.to_der #you may send this publicly to the participating party
* dh2 = OpenSSL::PKey::DH.new(der)
- * dh2.generate_key! #generate the per-session key pair
+ * dh2.generate_key! #generate the per-session key pair
* symm_key1 = dh1.compute_key(dh2.pub_key)
* symm_key2 = dh2.compute_key(dh1.pub_key)
- *
+ *
* puts symm_key1 == symm_key2 # => true
*/
cDH = rb_define_class_under(mPKey, "DH", cPKey);