[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
This commit is contained in:
parent
3656c1db29
commit
870cce9798
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user