summaryrefslogtreecommitdiff
path: root/test/openssl/utils.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <[email protected]>2017-03-18 17:26:33 +0900
committerKazuki Yamaguchi <[email protected]>2021-03-16 19:16:10 +0900
commitefad0166c660d565d5e80e862cd9ff9457f8ed03 (patch)
tree915de0348bf6ac929e15f3decd408f24b6928c9d /test/openssl/utils.rb
parentc157f6e787221bcdbf8b6bb28db1b43578b89d66 (diff)
[ruby/openssl] pkey: have PKey.read parse PEM-encoded DHParameter
Try PEM_read_bio_Parameters(). Only PEM format is supported at the moment since corresponding d2i_* functions are not provided by OpenSSL. https://github.com/ruby/openssl/commit/867e5c021b
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r--test/openssl/utils.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index 3776fbac4e..c1d737b2ab 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -42,9 +42,6 @@ module OpenSSL::TestUtils
def pkey(name)
OpenSSL::PKey.read(read_file("pkey", name))
- rescue OpenSSL::PKey::PKeyError
- # TODO: DH parameters can be read by OpenSSL::PKey.read atm
- OpenSSL::PKey::DH.new(read_file("pkey", name))
end
def read_file(category, name)