root_store.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Proto definitions supporting the Chrome Root Store.
  5. // This file should be manually kept in sync with the corresponding google3
  6. // file.
  7. syntax = "proto3";
  8. package chrome_root_store;
  9. // These structures are currently very simple, but more fields may be added in
  10. // future to support extra metadata about each trust anchor.
  11. message TrustAnchor {
  12. // The human-editable textproto version of the root store references roots in
  13. // a separate file by SHA-256 hash for convenience. It is converted to the DER
  14. // representation as part of the build process.
  15. oneof certificate {
  16. bytes der = 1;
  17. string sha256_hex = 2;
  18. }
  19. // OID should be expressed as dotted-decimal text (e.g. "1.3.159.1.17.1")
  20. repeated string ev_policy_oids = 3;
  21. }
  22. // Message storing a complete Chrome Root Store.
  23. message RootStore {
  24. repeated TrustAnchor trust_anchors = 1;
  25. // Major version # of the Chrome Root Store. It is assumed that if
  26. // root_store_1.version_major > root_store_2.version_major, then root_store_1
  27. // is newer and should be preferred over root_store_2.
  28. int64 version_major = 2;
  29. }