summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-08-01 01:57:31 +0900
committergit <svn-admin@ruby-lang.org>2025-07-31 17:38:35 +0000
commit69ff8f736b0ad1f6ad70fa3ce288bafb364b021c (patch)
treec0d109d727e8c9c932cb8f741e60a023d9b12786 /include
parent771804248e8a7b0e65bbc5b85fb604622a285174 (diff)
[ruby/openssl] pkcs7: only set error_string in the error path
Set the error_string attribute to nil if PKCS7_verify() succeeds, since the error queue should be empty in that case. With AWS-LC, OpenSSL::PKCS#verify currently sets error_string to "invalid library (0)" when the verification succeeds, whereas with OpenSSL and LibreSSL, it becomes nil. ERR_reason_error_string() appears to behave differently when an invalid error code is passed. The branch to raise OpenSSL::PKCS7::PKCS7Error is removed because it does not appear to be reachable. https://github.com/ruby/openssl/commit/c11c6631fa
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions