tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

X509CertValidity.h (816B)


      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/. */
      4 
      5 #ifndef X509CertValidity_h
      6 #define X509CertValidity_h
      7 
      8 #include "mozpkix/Input.h"
      9 #include "nsIX509CertValidity.h"
     10 #include "prtime.h"
     11 
     12 class X509CertValidity : public nsIX509CertValidity {
     13 public:
     14  NS_DECL_THREADSAFE_ISUPPORTS
     15  NS_DECL_NSIX509CERTVALIDITY
     16 
     17  explicit X509CertValidity(mozilla::pkix::Input certDER);
     18 
     19  X509CertValidity(const X509CertValidity& x) = delete;
     20  X509CertValidity& operator=(const X509CertValidity& x) = delete;
     21 
     22 protected:
     23  virtual ~X509CertValidity() = default;
     24 
     25 private:
     26  PRTime mNotBefore;
     27  PRTime mNotAfter;
     28  bool mTimesInitialized;
     29 };
     30 
     31 #endif  // X509CertValidity_h