summaryrefslogtreecommitdiffstats
path: root/test/utils.rb
diff options
context:
space:
mode:
authoremboss <emboss@ruby-lang.org>2011-06-13 11:56:04 +0000
committeremboss <emboss@ruby-lang.org>2011-06-13 11:56:04 +0000
commitac0879885bedc16e118d99d7359f228f2b18ac23 (patch)
tree317e200212f972bc312a80d3f06396fae93e5003 /test/utils.rb
parent66921869f7c0007a36836837d1ec51d2fb446013 (diff)
downloadruby-openssl-history-ac0879885bedc16e118d99d7359f228f2b18ac23.tar.gz
* test/openssl/test_ec.rb
test/openssl/test_pkey_ec.rb: merge both files into test_pkey_ec.rb. Removed redundant group instantiation from PKey tests. * test/openssl/utils.rb: only create TEST_PKEY_EC_P256V1 if EC is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/utils.rb')
-rw-r--r--test/utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/utils.rb b/test/utils.rb
index 3f9662a..c502fda 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -80,6 +80,8 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S
-----END DSA PRIVATE KEY-----
_end_of_pem_
+if defined?(OpenSSL::PKey::EC)
+
TEST_KEY_EC_P256V1 = OpenSSL::PKey::EC.new <<-_end_of_pem_
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIID49FDqcf1O1eO8saTgG70UbXQw9Fqwseliit2aWhH1oAoGCCqGSM49
@@ -88,6 +90,8 @@ CeBUl+MahZtn9fO1JKdF4qJmS39dXnpENg==
-----END EC PRIVATE KEY-----
_end_of_pem_
+end
+
TEST_KEY_DH512 = OpenSSL::PKey::DH.new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MEYCQQDmWXGPqk76sKw/edIOdhAQD4XzjJ+AR/PTk2qzaGs+u4oND2yU5D2NN4wr