aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-05 16:23:38 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-14 20:00:58 +0900
commit748dcd1c2c8e5ebda3c71c88475d957c460353ab (patch)
tree9f807e04191730c22055defa2c53f238a89343a5 /README.md
parentdf6e577094610d51f0c6891edd2c8663af0c07d6 (diff)
downloadruby-748dcd1c2c8e5ebda3c71c88475d957c460353ab.tar.gz
ext/openssl: EVP_PKEY, DH, DSA, RSA, EC_KEY are made opaque
Use EVP_PKEY_get0_* instead of pkey->pkey.* Use EVP_PKEY_base_id(pkey) instead of EVP_PKEY_type(pkey->type) Because of this, we can no longer set the parameters/keys directly, and the newly added functions as alternative require setting all relevant values at the same time. So this patch contains incompatibility: the following code no longer works (if using 1.1.0): dh = OpenSSL::PKey::DH.new(...) dh.priv_key = OpenSSL::BN.new(...) ...and we have to write like: dh = OpenSSL::PKey::DH.new(...) priv = OpenSSL::BN.new(...) pub = <calculate (dh.g ** priv) % dh.p> dh.set_key(pub, priv)
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions