diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2021-04-15 19:11:32 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-07-18 17:44:51 +0900 |
commit | 3fe8387950f83874372172a79233ffc0d5d335b0 (patch) | |
tree | 82d34381d3aeb51c134fd5c4c066fe5ea209ca84 /test/openssl/test_pkey_dsa.rb | |
parent | 5d1693aac56bcae37e1f81af1f25966269c4619a (diff) | |
download | ruby-3fe8387950f83874372172a79233ffc0d5d335b0.tar.gz |
[ruby/openssl] pkey: implement {DH,DSA,RSA}#public_key in Ruby
The low-level API that is used to implement #public_key is deprecated
in OpenSSL 3.0. It is actually very simple to implement in another way,
using existing methods only, in much shorter code. Let's do it.
While we are at it, the documentation is updated to recommend against
using #public_key. Now that OpenSSL::PKey::PKey implements public_to_der
method, there is no real use case for #public_key in newly written Ruby
programs.
https://github.com/ruby/openssl/commit/48a6c391ef
Diffstat (limited to 'test/openssl/test_pkey_dsa.rb')
0 files changed, 0 insertions, 0 deletions