diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-26 06:26:53 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-26 06:30:10 +0900 |
commit | 2b173358043400928b772988e72db9d6b2bd85dc (patch) | |
tree | d6dcbb9e3cd0593aa06956dfea6c883dc42da63d /test | |
parent | 19a2882888c50af9a9ec7243c95dced2384d92d6 (diff) | |
download | ruby-openssl-2b173358043400928b772988e72db9d6b2bd85dc.tar.gz |
test/test_ocsp: remove broken assertions
The removed assertions are wrong and testing a bug - the verification
must fail because OpenSSL shouldn't find the signer's certificate.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ocsp.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/test_ocsp.rb b/test/test_ocsp.rb index c59cf1b9..64beb761 100644 --- a/test/test_ocsp.rb +++ b/test/test_ocsp.rb @@ -113,7 +113,6 @@ class OpenSSL::TestOCSP < OpenSSL::TestCase assert_equal cid.to_der, request.certid.first.to_der store1 = OpenSSL::X509::Store.new; store1.add_cert(@ca_cert) assert_equal true, request.verify([@cert], store1) - assert_equal true, request.verify([], store1) store2 = OpenSSL::X509::Store.new; store1.add_cert(@cert) assert_equal false, request.verify([], store2) assert_equal true, request.verify([], store2, OpenSSL::OCSP::NOVERIFY) @@ -171,7 +170,6 @@ class OpenSSL::TestOCSP < OpenSSL::TestCase assert_equal true, bres.verify([@ca_cert], store1) store2 = OpenSSL::X509::Store.new assert_equal false, bres.verify([@ca_cert], store2) - assert_equal true, bres.verify([@ca_cert], store2, OpenSSL::OCSP::TRUSTOTHER) end def test_basic_response_sign_verify_signed_by_ocsp_signer |