From f062e67d978a2ea30d8856547c7544cb672f9ba9 Mon Sep 17 00:00:00 2001 From: Sandor Szuecs Date: Wed, 11 Dec 2013 21:15:44 +0100 Subject: [PATCH] [DOC] fix example to exchane key using DH Signed-off-by: Sandor Szuecs --- ext/openssl/ossl_pkey_dh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c index a6ae006..011b6f0 100644 --- a/ext/openssl/ossl_pkey_dh.c +++ b/ext/openssl/ossl_pkey_dh.c @@ -621,7 +621,7 @@ Init_ossl_dh() * * === Example of a key exchange * dh1 = OpenSSL::PKey::DH.new(2048) - * params = dh1.public_key.to_der #you may send this publicly to the participating party + * der = 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 * symm_key1 = dh1.compute_key(dh2.pub_key) @@ -664,4 +664,3 @@ Init_ossl_dh() { } #endif /* NO_DH */ - -- 1.8.3.4 (Apple Git-47)