From 870cce9798e7e1ad5b6c0ade7a4247b53b4f34ce Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Wed, 30 Oct 2024 03:33:54 +0900 Subject: [PATCH] [ruby/openssl] x509store: fix exception class in OpenSSL::X509::StoreContext#verify Follow-up commit https://github.com/ruby/openssl/commit/0789643d7333 (openssl: clear OpenSSL error queue before return to Ruby, 2016-05-18). It should raise OpenSSL::X509::StoreError instead of OpenSSL::X509::CertificateError. https://github.com/ruby/openssl/commit/0201f23ad6 --- ext/openssl/ossl_x509store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index 670519febc..f1357fcefb 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -636,7 +636,7 @@ ossl_x509stctx_verify(VALUE self) ossl_clear_error(); return Qfalse; default: - ossl_raise(eX509CertError, "X509_verify_cert"); + ossl_raise(eX509StoreError, "X509_verify_cert"); } }