michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_psm_ExtendedValidation_h michael@0: #define mozilla_psm_ExtendedValidation_h michael@0: michael@0: #include "certt.h" michael@0: #include "prtypes.h" michael@0: michael@0: namespace mozilla { namespace psm { michael@0: michael@0: #ifndef MOZ_NO_EV_CERTS michael@0: void EnsureIdentityInfoLoaded(); michael@0: void CleanupIdentityInfo(); michael@0: SECStatus GetFirstEVPolicy(CERTCertificate* cert, SECOidTag& outOidTag); michael@0: michael@0: // CertIsAuthoritativeForEVPolicy does NOT evaluate whether the cert is trusted michael@0: // or distrusted. michael@0: bool CertIsAuthoritativeForEVPolicy(const CERTCertificate* cert, michael@0: SECOidTag policyOidTag); michael@0: #endif michael@0: michael@0: #ifndef NSS_NO_LIBPKIX michael@0: CERTCertList* GetRootsForOid(SECOidTag oid_tag); michael@0: #endif michael@0: michael@0: } } // namespace mozilla::psm michael@0: michael@0: #endif // mozilla_psm_ExtendedValidation_h