Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkey/dh: avoid 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.
- Loading branch information