diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2021-12-12 01:25:20 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-12-20 23:42:01 +0900 |
commit | dc3f37c6cc64139848c074571707399a225f2efe (patch) | |
tree | 8963b19c3eba86d3ef181ae4b801c3545d5b874e /defs | |
parent | df6589e418adb2a4018e40d53dab2fd5556ed41e (diff) | |
download | ruby-dc3f37c6cc64139848c074571707399a225f2efe.tar.gz |
[ruby/openssl] pkey/dh: avoid using DH#set_key in DH#compute_key
DH#set_key will not work on OpenSSL 3.0 because keys are immutable.
For now, let's reimplement DH#compute_key by manually constructing a
DER-encoded SubjectPublicKeyInfo structure and feeding it to
OpenSSL::PKey.read.
Eventually, we should implement a new method around EVP_PKEY_fromdata()
and use it instead.
https://github.com/ruby/openssl/commit/46ca47060c
Diffstat (limited to 'defs')
0 files changed, 0 insertions, 0 deletions