summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-24 16:27:11 (GMT)
committerrhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-24 16:27:11 (GMT)
commit8cbd74a362a918b6ce332d6240432318165527b0 (patch)
treea0da55ba61e705738f68f0fc709862f34e53b465 /test
parentb3d3d52cd69cb6ea3848e5eb5b4b18318850142f (diff)
openssl: rename EC#generate_key to EC#generate_key!
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_generate_key): Fix up RDoc. (Init_ossl_ec): Rename EC#generate_key to EC#generate_key!. Make the old name an alias of #generate_key!. This change is for consistency with other PKey types. [ruby-core:45541] [Bug #6567] * test/openssl/test_pkey_ec.rb: Use EC#generate_key! instead of EC#generate_key. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_pkey_ec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/openssl/test_pkey_ec.rb b/test/openssl/test_pkey_ec.rb
index 302259b..712507f 100644
--- a/test/openssl/test_pkey_ec.rb
+++ b/test/openssl/test_pkey_ec.rb
@@ -16,7 +16,7 @@ class OpenSSL::TestEC < OpenSSL::TestCase
group = OpenSSL::PKey::EC::Group.new(curve)
key = OpenSSL::PKey::EC.new(group)
- key.generate_key
+ key.generate_key!
@groups << group
@keys << key
@@ -127,7 +127,7 @@ class OpenSSL::TestEC < OpenSSL::TestCase
def test_dh_compute_key
for key in @keys
k = OpenSSL::PKey::EC.new(key.group)
- k.generate_key
+ k.generate_key!
puba = key.public_key
pubb = k.public_key