Bug 1843230 - Remove IsWin8OrLater checks from dom/geolocation/ r=emk
[gecko.git] / security / certverifier / CRLiteTimestamp.h
blob56b816eb7d3b1be72afb2ed3b11389e609bd4229
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=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 CRLiteTimestamp_h
8 #define CRLiteTimestamp_h
10 #include "nsICertStorage.h"
11 #include "SignedCertificateTimestamp.h"
13 namespace mozilla::psm {
15 class CRLiteTimestamp final : public nsICRLiteTimestamp {
16 public:
17 NS_DECL_ISUPPORTS
18 NS_DECL_NSICRLITETIMESTAMP
20 CRLiteTimestamp() : mTimestamp(0) {}
21 explicit CRLiteTimestamp(const ct::SignedCertificateTimestamp& sct)
22 : mLogID(Span(sct.logId)), mTimestamp(sct.timestamp) {}
24 private:
25 ~CRLiteTimestamp() = default;
27 nsTArray<uint8_t> mLogID;
28 uint64_t mTimestamp;
31 } // namespace mozilla::psm
33 #endif // CRLiteTimestamp_h