Remove-EV-certificates.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From d32e222a2706cb59f9855b9cf4330f88d1af5435 Mon Sep 17 00:00:00 2001
  2. From: Jan Engelhardt <jengelh@inai.de>
  3. Date: Thu, 2 Apr 2015 12:44:23 +0200
  4. Subject: [PATCH 41/66] Remove EV certificates
  5. The team chose to let EV certificates appear just like normal
  6. certificates. The web of trust is considered a failure in itself, so
  7. do not give users a false sense of extra security with EV certs.
  8. Instead, let them appear just like regular ones.
  9. --- a/net/cert/ev_root_ca_metadata.cc
  10. +++ b/net/cert/ev_root_ca_metadata.cc
  11. @@ -36,7 +36,17 @@ struct EVMetadata {
  12. const std::string_view policy_oids[kMaxOIDsPerCA];
  13. };
  14. -#include "net/data/ssl/chrome_root_store/chrome-ev-roots-inc.cc"
  15. +static const EVMetadata kEvRootCaMetadata[] = {
  16. + // need some dummy thing to make compiler happy, because
  17. + // arraysize() is implemented as a convoluted template rather than
  18. + // the traditional sizeof(x)/sizeof(*x)
  19. + { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  20. + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } },
  21. + {
  22. + "0",
  23. + }
  24. + }
  25. +};
  26. #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA)
  27. } // namespace