summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_ns_spki.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-09-21 18:29:59 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-12-20 23:42:02 +0900
commit8ebf5978852e22358cbcdf74c0eb506f22e2c73f (patch)
treea284f8bc2e7513ca4d7594362c23badeb003a6d1 /ext/openssl/ossl_ns_spki.h
parentb93ae54258684d0c3d1501400af949c013f44fba (diff)
downloadruby-8ebf5978852e22358cbcdf74c0eb506f22e2c73f.tar.gz
[ruby/openssl] pkey: deprecate PKey#set_* methods
OpenSSL 3.0 made EVP_PKEY immutable. This means we can only have a const pointer of the low level struct and the following methods can no longer be provided when linked against OpenSSL 3.0: - OpenSSL::PKey::RSA#set_key - OpenSSL::PKey::RSA#set_factors - OpenSSL::PKey::RSA#set_crt_params - OpenSSL::PKey::DSA#set_pqg - OpenSSL::PKey::DSA#set_key - OpenSSL::PKey::DH#set_pqg - OpenSSL::PKey::DH#set_key - OpenSSL::PKey::EC#group= - OpenSSL::PKey::EC#private_key= - OpenSSL::PKey::EC#public_key= There is no direct replacement for this functionality at the moment. I plan to introduce a wrapper around EVP_PKEY_fromdata(), which takes all key components at once to construct an EVP_PKEY. https://github.com/ruby/openssl/commit/6848d2d969
Diffstat (limited to 'ext/openssl/ossl_ns_spki.h')
0 files changed, 0 insertions, 0 deletions