security/manager/ssl/src/SharedCertVerifier.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/src/SharedCertVerifier.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef mozilla_psm__SharedCertVerifier_h
     1.9 +#define mozilla_psm__SharedCertVerifier_h
    1.10 +
    1.11 +#include "certt.h"
    1.12 +#include "CertVerifier.h"
    1.13 +#include "mozilla/RefPtr.h"
    1.14 +
    1.15 +namespace mozilla { namespace psm {
    1.16 +
    1.17 +class SharedCertVerifier : public mozilla::psm::CertVerifier
    1.18 +{
    1.19 +protected:
    1.20 +  ~SharedCertVerifier();
    1.21 +
    1.22 +public:
    1.23 +  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(SharedCertVerifier)
    1.24 +
    1.25 +  SharedCertVerifier(implementation_config ic,
    1.26 +#ifndef NSS_NO_LIBPKIX
    1.27 +                     missing_cert_download_config ac, crl_download_config cdc,
    1.28 +#endif
    1.29 +                     ocsp_download_config odc, ocsp_strict_config osc,
    1.30 +                     ocsp_get_config ogc,
    1.31 +                     pinning_enforcement_config pinningEnforcementLevel)
    1.32 +    : mozilla::psm::CertVerifier(ic,
    1.33 +#ifndef NSS_NO_LIBPKIX
    1.34 +                                 ac, cdc,
    1.35 +#endif
    1.36 +                                 odc, osc, ogc,
    1.37 +                                 pinningEnforcementLevel)
    1.38 +  {
    1.39 +  }
    1.40 +};
    1.41 +
    1.42 +} } // namespace mozilla::psm
    1.43 +
    1.44 +#endif // mozilla_psm__SharedCertVerifier_h

mercurial