diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-12-14 19:33:16 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-12-14 10:46:27 +0000 |
| commit | 674c3d73e0f92d730bd2e544be344585a638ab37 (patch) | |
| tree | eaa0d49357de1b16f2888062c1ff856c8a9180cc /test/ruby/test_encoding.rb | |
| parent | 7969b654181af13f547afb88834f017694881353 (diff) | |
[ruby/openssl] pkcs7: raise OpenSSL::PKCS7::PKCS7Error in #initialize
When d2i_PKCS7_bio() and PEM_read_bio_PKCS7() fail to decode the input,
OpenSSL::PKCS7.new currently raises ArgumentError. The usual practice
in ruby/openssl where an error originates from the underlying OpenSSL
library is to raise OpenSSL::OpenSSLError.
Raise OpenSSL::PKCS7::PKCS7Error instead for consistency with
OpenSSL::PKCS7.read_smime and all other existing #initialize methods
that handle DER/PEM-encoded inputs.
https://github.com/ruby/openssl/commit/67a608ce53
Diffstat (limited to 'test/ruby/test_encoding.rb')
0 files changed, 0 insertions, 0 deletions
