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 SharedCertVerifier_h
6 #define SharedCertVerifier_h
8 #include "CertVerifier.h"
9 #include "EnterpriseRoots.h"
10 #include "mozilla/RefPtr.h"
11 #include "mozilla/TimeStamp.h"
16 class SharedCertVerifier
: public mozilla::psm::CertVerifier
{
18 ~SharedCertVerifier();
21 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SharedCertVerifier
)
23 SharedCertVerifier(OcspDownloadConfig odc
, OcspStrictConfig osc
,
24 mozilla::TimeDuration ocspSoftTimeout
,
25 mozilla::TimeDuration ocspHardTimeout
,
26 uint32_t certShortLifetimeInDays
,
27 NetscapeStepUpPolicy netscapeStepUpPolicy
,
28 CertificateTransparencyConfig
&& ctConfig
,
29 CRLiteMode crliteMode
,
30 const nsTArray
<EnterpriseCert
>& thirdPartyCerts
)
31 : mozilla::psm::CertVerifier(odc
, osc
, ocspSoftTimeout
, ocspHardTimeout
,
32 certShortLifetimeInDays
,
33 netscapeStepUpPolicy
, std::move(ctConfig
),
34 crliteMode
, thirdPartyCerts
) {}
38 } // namespace mozilla
40 #endif // SharedCertVerifier_h