GoogleGit

commit32765f80889421c6161a7b9e73bc1ee722db6892[log][tgz]
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>Thu Dec 16 00:01:37 2010
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>Thu Dec 16 00:01:37 2010
treebba0f974c84f9859da5b62bc233d00955e63c032
parent235478be87f59f3962eda9d8f3fba04e8a5096e4[diff]
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.

BUG=8470
TEST=To follow

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69351 0039d316-1c4b-4281-b951-d872f2087c98
20 files changed
tree: bba0f974c84f9859da5b62bc233d00955e63c032
  1. .gitignore
  2. AUTHORS
  3. DEPS
  4. LICENSE
  5. PRESUBMIT.py
  6. WATCHLISTS
  7. app/
  8. base/
  9. breakpad/
  10. build/
  11. ceee/
  12. chrome/
  13. chrome_frame/
  14. codereview.settings
  15. courgette/
  16. gears/
  17. gfx/
  18. google_update/
  19. gpu/
  20. ipc/
  21. jingle/
  22. media/
  23. net/
  24. o3d/
  25. ppapi/
  26. printing/
  27. remoting/
  28. sandbox/
  29. sdch/
  30. skia/
  31. testing/
  32. third_party/
  33. tools/
  34. views/
  35. webkit/