On the ocsp-verification branch: Added test cases for OCSP response
parsing and verification.

* test/certs/create_certs.py
  (create_cert): Add option to add the 'OCSP signing' extension.
  (__main__): Generate an OCSP responder certificate.
* test/certs: Regenerated all certificates and private keys.

* test/test_ssl.c: Include OpenSSL headers for OCSP tests.
  (test_ssl_cert_certificate): Update certificate info.
  (load_ocsp_test_certs): Optionally load root CA and OCSP signer certs.
  (create_ocsp_response,
   pkey_password_cb,
   verify_ocsp_response): New helper functions.
  (test_ssl_ocsp_request_create,
   test_ssl_ocsp_request_export_import): Update call to load_ocsp_test_certs.
  (test_ssl_ocsp_verify_response,
   test_ssl_ocsp_verify_response_no_nonce,
   test_ssl_ocsp_verify_response_missing_nonce,
   test_ssl_ocsp_verify_response_ignore_missing_nonce,
   test_ssl_ocsp_verify_response_no_signer,
   test_ssl_ocsp_verify_response_wrong_signer): New tests.


git-svn-id: https://svn.apache.org/repos/asf/serf/branches/ocsp-verification@1830497 13f79535-47bb-0310-9956-ffa450edef68
17 files changed