Skip to content

Commit 0201f23

Browse files
committed
x509store: fix exception class in OpenSSL::X509::StoreContext#verify
Follow-up commit 0789643 (openssl: clear OpenSSL error queue before return to Ruby, 2016-05-18). It should raise OpenSSL::X509::StoreError instead of OpenSSL::X509::CertificateError.
1 parent 527b610 commit 0201f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/ossl_x509store.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ ossl_x509stctx_verify(VALUE self)
636636
ossl_clear_error();
637637
return Qfalse;
638638
default:
639-
ossl_raise(eX509CertError, "X509_verify_cert");
639+
ossl_raise(eX509StoreError, "X509_verify_cert");
640640
}
641641
}
642642

0 commit comments

Comments
 (0)