summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_x509store.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <[email protected]>2024-10-30 03:33:54 +0900
committergit <[email protected]>2024-12-07 07:55:46 +0000
commit870cce9798e7e1ad5b6c0ade7a4247b53b4f34ce (patch)
treef09118ca84fd07f743c6a40d9808ad52e291b2e9 /ext/openssl/ossl_x509store.c
parent3656c1db29b2070816f67cf9fc7af03d9d078ad1 (diff)
[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
Diffstat (limited to 'ext/openssl/ossl_x509store.c')
-rw-r--r--ext/openssl/ossl_x509store.c2
1 files changed, 1 insertions, 1 deletions
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");
}
}