Remove-EV-certificates.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ---
  10. net/cert/ev_root_ca_metadata.cc | 14 +++++++++++++-
  11. 1 file changed, 13 insertions(+), 1 deletion(-)
  12. --- a/net/cert/ev_root_ca_metadata.cc
  13. +++ b/net/cert/ev_root_ca_metadata.cc
  14. @@ -48,6 +48,16 @@ struct EVMetadata {
  15. // These certificates may be found in net/data/ssl/ev_roots.
  16. static const EVMetadata kEvRootCaMetadata[] = {
  17. + // need some dummy thing to make compiler happy, because
  18. + // arraysize() is implemented as a convoluted template rather than
  19. + // the traditional sizeof(x)/sizeof(*x)
  20. + { { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
  21. + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } },
  22. + {
  23. + "0",
  24. + }
  25. + },
  26. +#if 0
  27. // AC Camerfirma S.A. Chambers of Commerce Root - 2008
  28. // https://www.camerfirma.com
  29. {
  30. @@ -750,7 +760,9 @@ static const EVMetadata kEvRootCaMetadat
  31. 0xd2, 0x09, 0xb7, 0x37, 0xcb, 0xe2, 0xc1, 0x8c, 0xfb, 0x2c, 0x10,
  32. 0xc0, 0xff, 0x0b, 0xcf, 0x0d, 0x32, 0x86, 0xfc, 0x1a, 0xa2}},
  33. {"2.16.840.1.114404.1.1.2.4.1", ""},
  34. - }};
  35. + }
  36. +#endif
  37. +};
  38. #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA)
  39. } // namespace