Chromium logo

Revision 69351

Jump to revision: Previous Next
Author: rsleevi@chromium.org
Date: Thu Dec 16 00:01:37 2010 UTC (3 years, 4 months ago)
Changed paths: 20
Log Message:
Add support for temporarily trusting a certificate for the duration of unit tests on Windows, rather than requiring the machine to be pre-configured out-of-band.

Given the lack of a Microsoft-provided high-level API to supply application-level trusts to the verification routines, this implements a workaround that intercepts attempts to open the trusted system root store and injects the test certificates directly. This allows the unit tests to work without requiring that the Test CA be added to the machine's Trusted Certificates store.

While doing so, clean up the interface to adding/removing trusted test certificates, so as to support more than one trusted certificate if necessary.

TEST=To follow

Review URL: http://codereview.chromium.org/4646001

Changed paths:

Path Details
Directorytrunk/src/base/openssl_util.h modified , text changed
Directorytrunk/src/net/base/cert_test_util.cc modified , text changed
Directorytrunk/src/net/base/cert_test_util.h modified , text changed
Directorytrunk/src/net/base/test_root_certs.cc added
Directorytrunk/src/net/base/test_root_certs.h added
Directorytrunk/src/net/base/test_root_certs_mac.cc added
Directorytrunk/src/net/base/test_root_certs_nss.cc added
Directorytrunk/src/net/base/test_root_certs_openssl.cc added
Directorytrunk/src/net/base/test_root_certs_win.cc added
Directorytrunk/src/net/base/x509_certificate.h modified , text changed
Directorytrunk/src/net/base/x509_certificate_mac.cc modified , text changed
Directorytrunk/src/net/base/x509_certificate_openssl.cc modified , text changed
Directorytrunk/src/net/base/x509_certificate_unittest.cc modified , text changed
Directorytrunk/src/net/base/x509_certificate_win.cc modified , text changed
Directorytrunk/src/net/net.gyp modified , text changed
Directorytrunk/src/net/test/test_server.cc modified , text changed
Directorytrunk/src/net/test/test_server.h modified , text changed
Directorytrunk/src/net/test/test_server_posix.cc modified , text changed
Directorytrunk/src/net/test/test_server_win.cc modified , text changed
Directorytrunk/src/tools/valgrind/memcheck/suppressions.txt modified , text changed

Powered by ViewVC 1.1.5 ViewVC Help