]> granicus.if.org Git - openssl/commit
Add OCSP API test executable
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 19 Oct 2017 19:44:10 +0000 (14:44 -0500)
committerBen Kaduk <kaduk@mit.edu>
Wed, 13 Dec 2017 01:08:22 +0000 (19:08 -0600)
commitc74503ebfc599d2d5afbfccaab0cb4bf585fba8c
tree2adf5dec1d1aab0bd958242028da423f719437dd
parent1f0067ec9a8d2ab71132604b4a1a5dd9ffab4f23
Add OCSP API test executable

Some of the OCSP APIs (such as the recently added OCSP_resp_get0_signer)
do not really merit inclusion in the ocsp(1) utility, but we should still
have unit tests for them.

For now, only test OCSP_resp_get0_signer(), but it should be easy to
add more tests in the future.

Provide an X509 cert and private key in the test's data directory
to use for signing responses, since constructing those on the fly
is more effort than is needed.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 27da13430bfb3c178716cec10e8d5d6134e54f90)

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4723)
test/build.info
test/ocspapitest.c [new file with mode: 0644]
test/recipes/80-test_ocsp.t
test/recipes/80-test_ocsp_data/cert.pem [new file with mode: 0644]
test/recipes/80-test_ocsp_data/key.pem [new file with mode: 0644]