diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-30 20:20:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-30 20:20:32 +0000 |
commit | 198c2570e740280bf7f00a38d311ade19c27fef7 (patch) | |
tree | 4bb3207e3aa7792d216e7d293934d4b3b70bea42 /ext/openssl/ossl_pkey_dh.c | |
parent | 72be91b5c0fab9e2c65adf957bafa8cb7a1783b9 (diff) | |
download | ruby-198c2570e740280bf7f00a38d311ade19c27fef7.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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c index dd56458232..748d9c82fd 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); |