Skip to content

Commit 870cce9

Browse files
rheniummatzbot
authored andcommitted
[ruby/openssl] x509store: fix exception class in OpenSSL::X509::StoreContext#verify
Follow-up commit ruby/openssl@0789643d7333 (openssl: clear OpenSSL error queue before return to Ruby, 2016-05-18). It should raise OpenSSL::X509::StoreError instead of OpenSSL::X509::CertificateError. ruby/openssl@0201f23ad6
1 parent 3656c1d commit 870cce9

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)