SharedCertVerifier.h (1287B)
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 SharedCertVerifier_h 6 #define SharedCertVerifier_h 7 8 #include "CertVerifier.h" 9 #include "EnterpriseRoots.h" 10 #include "mozilla/TimeStamp.h" 11 12 namespace mozilla { 13 namespace psm { 14 15 class SharedCertVerifier : public mozilla::psm::CertVerifier { 16 protected: 17 ~SharedCertVerifier(); 18 19 public: 20 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SharedCertVerifier) 21 22 SharedCertVerifier(OcspDownloadConfig odc, OcspStrictConfig osc, 23 mozilla::TimeDuration ocspSoftTimeout, 24 mozilla::TimeDuration ocspHardTimeout, 25 uint32_t certShortLifetimeInDays, 26 CertificateTransparencyConfig&& ctConfig, 27 CRLiteMode crliteMode, 28 const nsTArray<EnterpriseCert>& thirdPartyCerts) 29 : mozilla::psm::CertVerifier(odc, osc, ocspSoftTimeout, ocspHardTimeout, 30 certShortLifetimeInDays, std::move(ctConfig), 31 crliteMode, thirdPartyCerts) {} 32 }; 33 34 } // namespace psm 35 } // namespace mozilla 36 37 #endif // SharedCertVerifier_h