Kazuki Yamaguchi 674c3d73e0 [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
2025-12-14 10:46:27 +00:00
..
2025-12-10 05:28:49 +00:00
2025-09-10 05:37:21 +00:00
2025-12-14 02:59:10 +00:00
2025-12-11 10:58:31 +00:00
2025-12-12 00:29:21 +01:00
2025-12-10 06:39:36 +00:00
2025-11-10 10:12:10 +00:00
2025-11-27 15:00:57 +09:00