diff options
author | Kazuki Yamaguchi <[email protected]> | 2020-04-21 02:12:29 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2020-05-13 15:47:51 +0900 |
commit | 6f008c9d2fec52f2c2d39c04ad83e87c7975105c (patch) | |
tree | b9f95b1bfe44d38db386df64bbf6cd016447786e /id_table.h | |
parent | a7145c3de4ddbe9f90bd6f087afac44a764fae04 (diff) |
[ruby/openssl] pkey: add PKey#inspect and #oid
Implement OpenSSL::PKey::PKey#oid as a wrapper around EVP_PKEY_id().
This allows user code to check the type of a PKey object.
EVP_PKEY can have a pkey type for which we do not provide a dedicated
subclass. In other words, an EVP_PKEY that is not any of {RSA,DSA,DH,EC}
can exist. It is currently not possible to distinguish such a pkey.
Also, implement PKey#inspect to include the key type for convenience.
https://github.com/ruby/openssl/commit/dafbb1b3e6
Diffstat (limited to 'id_table.h')
0 files changed, 0 insertions, 0 deletions