mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
07f34ebd2f
The default OCSP timeout for soft-fail DV is still 2 seconds. This patch makes it configurable on the interval (0, 5] seconds. The default OCSP timeout for EV and hard-fail DV is still 10 seconds. This patch makes it configurable on the interval (0, 20] seconds. MozReview-Commit-ID: CPd8pwYrJhj --HG-- extra : rebase_source : 45bd7d06ea013f0a776ea18be9408dedb18271d8
42 lines
1.4 KiB
C++
42 lines
1.4 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef SharedCertVerifier_h
|
|
#define SharedCertVerifier_h
|
|
|
|
#include "CertVerifier.h"
|
|
#include "mozilla/RefPtr.h"
|
|
#include "mozilla/TimeStamp.h"
|
|
|
|
namespace mozilla { namespace psm {
|
|
|
|
class SharedCertVerifier : public mozilla::psm::CertVerifier
|
|
{
|
|
protected:
|
|
~SharedCertVerifier();
|
|
|
|
public:
|
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SharedCertVerifier)
|
|
|
|
SharedCertVerifier(OcspDownloadConfig odc, OcspStrictConfig osc,
|
|
OcspGetConfig ogc,
|
|
mozilla::TimeDuration ocspSoftTimeout,
|
|
mozilla::TimeDuration ocspHardTimeout,
|
|
uint32_t certShortLifetimeInDays,
|
|
PinningMode pinningMode, SHA1Mode sha1Mode,
|
|
BRNameMatchingPolicy::Mode nameMatchingMode,
|
|
NetscapeStepUpPolicy netscapeStepUpPolicy,
|
|
CertificateTransparencyMode ctMode)
|
|
: mozilla::psm::CertVerifier(odc, osc, ogc, ocspSoftTimeout,
|
|
ocspHardTimeout, certShortLifetimeInDays,
|
|
pinningMode, sha1Mode, nameMatchingMode,
|
|
netscapeStepUpPolicy, ctMode)
|
|
{
|
|
}
|
|
};
|
|
|
|
} } // namespace mozilla::psm
|
|
|
|
#endif // SharedCertVerifier_h
|