aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-05-17 18:25:38 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-04-15 20:23:55 +0900
commite0b4c56956ef4ef3ab47cf5d2eed55fbcc5152e8 (patch)
treeb88ebf7a7e797ab3e176eeed9e6b7fbd52443436 /lib
parentd172036b4a3e137107a35f2f7818e01b9b4d630d (diff)
downloadruby-openssl-e0b4c56956ef4ef3ab47cf5d2eed55fbcc5152e8.tar.gz
pkey: implement #to_text using EVP API
Use EVP_PKEY_print_private() instead of the low-level API *_print() functions, such as RSA_print(). EVP_PKEY_print_*() family was added in OpenSSL 1.0.0. Note that it falls back to EVP_PKEY_print_public() and EVP_PKEY_print_params() as necessary. This is required for EVP_PKEY_DH type for which _private() fails if the private component is not set in the pkey object. Since the new API works in the same way for all key types, we now implement #to_text in the base class OpenSSL::PKey::PKey rather than in each subclass.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions