Bug 1869043 allow a device to be specified with MediaTrackGraph::NotifyWhenDeviceStar...
[gecko.git] / security / ct / CTLog.h
blob3d59dbd29674dc96acc3be06a1addc07aa0b4496
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef CTLog_h
8 #define CTLog_h
10 #include <stdint.h>
11 #include <vector>
13 namespace mozilla {
14 namespace ct {
16 // Signed integer sufficient to store the numeric ID of CT log operators
17 // as assigned at https://www.certificate-transparency.org/known-logs .
18 // The assigned IDs are 0-based positive integers, so you can use special
19 // values (such as -1) to indicate a "null" or unknown log ID.
20 typedef int16_t CTLogOperatorId;
22 typedef std::vector<CTLogOperatorId> CTLogOperatorList;
24 // Current status of a CT log in regard to its inclusion in the
25 // Known Logs List such as https://www.certificate-transparency.org/known-logs
26 enum class CTLogStatus {
27 // Status unknown or unavailable.
28 Unknown,
29 // Included in the list of known logs.
30 Included,
31 // Previously included, but disqualified at some point of time.
32 Disqualified,
35 } // namespace ct
36 } // namespace mozilla
38 #endif // CTLog_h