ExtendedValidation.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. * This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef ExtendedValidation_h
  6. #define ExtendedValidation_h
  7. #include "ScopedNSSTypes.h"
  8. #include "certt.h"
  9. #include "prtypes.h"
  10. namespace mozilla { namespace pkix { struct CertPolicyId; } }
  11. namespace mozilla { namespace psm {
  12. nsresult LoadExtendedValidationInfo();
  13. SECStatus GetFirstEVPolicy(CERTCertificate* cert,
  14. /*out*/ mozilla::pkix::CertPolicyId& policy,
  15. /*out*/ SECOidTag& policyOidTag);
  16. // CertIsAuthoritativeForEVPolicy does NOT evaluate whether the cert is trusted
  17. // or distrusted.
  18. bool CertIsAuthoritativeForEVPolicy(const UniqueCERTCertificate& cert,
  19. const mozilla::pkix::CertPolicyId& policy);
  20. } } // namespace mozilla::psm
  21. #endif // ExtendedValidation_h