security/certverifier/ExtendedValidation.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/certverifier/ExtendedValidation.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef mozilla_psm_ExtendedValidation_h
    1.10 +#define mozilla_psm_ExtendedValidation_h
    1.11 +
    1.12 +#include "certt.h"
    1.13 +#include "prtypes.h"
    1.14 +
    1.15 +namespace mozilla { namespace psm {
    1.16 +
    1.17 +#ifndef MOZ_NO_EV_CERTS
    1.18 +void EnsureIdentityInfoLoaded();
    1.19 +void CleanupIdentityInfo();
    1.20 +SECStatus GetFirstEVPolicy(CERTCertificate* cert, SECOidTag& outOidTag);
    1.21 +
    1.22 +// CertIsAuthoritativeForEVPolicy does NOT evaluate whether the cert is trusted
    1.23 +// or distrusted.
    1.24 +bool CertIsAuthoritativeForEVPolicy(const CERTCertificate* cert,
    1.25 +                                    SECOidTag policyOidTag);
    1.26 +#endif
    1.27 +
    1.28 +#ifndef NSS_NO_LIBPKIX
    1.29 +CERTCertList* GetRootsForOid(SECOidTag oid_tag);
    1.30 +#endif
    1.31 +
    1.32 +} } // namespace mozilla::psm
    1.33 +
    1.34 +#endif // mozilla_psm_ExtendedValidation_h

mercurial