forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkey_pinning.mojom
35 lines (31 loc) · 1.01 KB
/
key_pinning.mojom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module network.mojom;
// Structure used to hold information about a specific pinset.
struct PinSet {
// Name of the pinset.
string name;
// Set of allowed SPKIs hashes.
array<array<uint8>> static_spki_hashes;
// Optional set of forbidden SPKIs hashes
array<array<uint8>> bad_static_spki_hashes;
// Optional URI to send bad pin reports to.
string report_uri;
};
struct PinSetInfo {
// Hostname this pinset applies to.
string hostname;
// Name of the pinset.
string pinset_name;
// Whether this pinset applies to subdomains.
bool include_subdomains;
};
struct PinList {
// All known pinsets.
array<PinSet> pinsets;
// List of known hosts with pins. Each element represents a different
// hostname, and includes the name of the pinset that applies to it, and
// whether it applies to subdomains.
array<PinSetInfo> host_pins;
};