aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ocsp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Allow OCSP requests without the full subject certificateNuno Goncalves2017-03-041-2/+8
| | | | | | | | | | | | | | | | A OCSP request doesn't need the full subject certificate. This extends the API to require instead of the subject certificate: * OCSP::Request: subject serial. * OCSP::online_check: subject serial AND ocsp responder url. API breaking change: * removal of OCSP::Request::subject() as OCSP::Request doesn't need to hold the certificate, but only the serial. Signed-off-by: Nuno Goncalves <[email protected]>
* The certificate being tested by the OCSP online test has expired.Jack Lloyd2017-02-261-1/+2
| | | | | | | | | | This caused a test failure if run with --run-online-tests. This is not the default but it caused the coverage build to fail. Fix the test to reflect expired status. The whole thing does not seem wholly satsifactory since we are still relying the behavior on an external party, perhaps a mock OCSP responder should be created for the tests.
* Add macro signalling support for online revocation checks.Jack Lloyd2016-11-231-0/+4
|
* Windows fixJack Lloyd2016-11-231-1/+1
|
* Better OCSP tests including online testsJack Lloyd2016-11-231-5/+91
| | | | Tests touching network are gated by --run-online-tests flag.
* Add some simple OCSP testsJack Lloyd2016-11-231-0/+115
Nothing much but better than nothing. Also add a useful arg check to OCSP::Request constructor.