summaryrefslogtreecommitdiff
path: root/include/ruby/encoding.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2024-12-02 23:23:20 +0900
committergit <svn-admin@ruby-lang.org>2025-11-06 13:33:15 +0000
commit16b1aa4e4ab1b81914c58eae8b2f31c963b4bd4c (patch)
treea661f27b77c63c84e613c1bfeec1d471ab0b00df /include/ruby/encoding.h
parentd73eba51853fde74624984b3063bd648b664e3e3 (diff)
[ruby/openssl] pkey: unify error classes into PKeyError
Remove the following subclasses of OpenSSL::PKey::PKeyError and make them aliases of it. - OpenSSL::PKey::DHError - OpenSSL::PKey::DSAError - OpenSSL::PKey::ECError - OpenSSL::PKey::RSAError Historically, methods defined on OpenSSL::PKey and OpenSSL::PKey::PKey raise OpenSSL::PKey::PKeyError, while methods on the subclasses raise their respective exception classes. However, this distinction is not particularly useful since all those exception classes represent the same kind of errors from the underlying EVP_PKEY API. I think this convention comes from the fact that OpenSSL::PKey::{DH, DSA,RSA} originally wrapped the corresponding OpenSSL structs DH, DSA, and RSA, before they were unified to wrap EVP_PKEY, way back in 2002. OpenSSL::PKey::EC::Group::Error and OpenSSL::PKey::EC::Point::Error are out of scope of this change, as they are not subclasses of OpenSSL::PKey::PKeyError and do not represent errors from the EVP_PKEY API. https://github.com/ruby/openssl/commit/e74ff3e272
Diffstat (limited to 'include/ruby/encoding.h')
0 files changed, 0 insertions, 0 deletions