summaryrefslogtreecommitdiffstats
path: root/test/utils.rb
diff options
context:
space:
mode:
authoremboss <emboss@ruby-lang.org>2012-09-02 12:50:02 +0000
committeremboss <emboss@ruby-lang.org>2012-09-02 12:50:02 +0000
commiteef7c387afc24e2b75b81935dfdd5c53790cb11f (patch)
treefbe8ab3da43ff7591491a4f19f037246167b55af /test/utils.rb
parenta3bf52c5490cc5d1d5f2d603ab34d32138b9c7e7 (diff)
downloadruby-openssl-history-eef7c387afc24e2b75b81935dfdd5c53790cb11f.tar.gz
* test/openssl/utils.rb: Use a cached DH key instead of generating a
new one each time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/utils.rb')
-rw-r--r--test/utils.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/utils.rb b/test/utils.rb
index aa42ef0..f951796 100644
--- a/test/utils.rb
+++ b/test/utils.rb
@@ -99,8 +99,15 @@ aPgwHyJBiK1/ebK3tYcrSKrOoRyrAgEC
-----END DH PARAMETERS-----
_end_of_pem_
+ TEST_KEY_DH1024 = OpenSSL::PKey::DH.new <<-_end_of_pem_
+-----BEGIN DH PARAMETERS-----
+MIGHAoGBAKnKQ8MNK6nYZzLrrcuTsLxuiJGXoOO5gT+tljOTbHBuiktdMTITzIY0
+pFxIvjG05D7HoBZQfrR0c92NGWPkAiCkhQKB8JCbPVzwNLDy6DZ0pmofDKrEsYHG
+AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC
+-----END DH PARAMETERS-----
+ _end_of_pem_
- TEST_KEY_DH1024 = OpenSSL::PKey::DH.new(1024)
+ TEST_KEY_DH1024.priv_key = OpenSSL::BN.new("48561834C67E65FFD2A9B47F41E5E78FDC95C387428FDB1E4B0188B64D1643C3A8D3455B945B7E8C4D166010C7C2CE23BFB9BEF43D0348FE7FA5284B0225E7FE1537546D114E3D8A4411B9B9351AB451E1A358F50ED61B1F00DA29336EEBBD649980AC86D76AF8BBB065298C2052672EEF3EF13AB47A15275FC2836F3AC74CEA", 16)
module_function