Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / X509CertValidity.h
blob8201c52253887257efb25b83a8e9aa2e519d15d6
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef X509CertValidity_h
6 #define X509CertValidity_h
8 #include "mozpkix/Input.h"
9 #include "nsIX509CertValidity.h"
10 #include "prtime.h"
12 class X509CertValidity : public nsIX509CertValidity {
13 public:
14 NS_DECL_THREADSAFE_ISUPPORTS
15 NS_DECL_NSIX509CERTVALIDITY
17 explicit X509CertValidity(mozilla::pkix::Input certDER);
19 X509CertValidity(const X509CertValidity& x) = delete;
20 X509CertValidity& operator=(const X509CertValidity& x) = delete;
22 protected:
23 virtual ~X509CertValidity() = default;
25 private:
26 PRTime mNotBefore;
27 PRTime mNotAfter;
28 bool mTimesInitialized;
31 #endif // X509CertValidity_h