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/. */
6 #ifndef ExtendedValidation_h
7 #define ExtendedValidation_h
9 #include "ScopedNSSTypes.h"
16 } // namespace mozilla
21 nsresult
LoadExtendedValidationInfo();
24 * Finds all policy OIDs in the given cert that are known to be EV policy OIDs.
27 * The bytes of the cert to find the EV policies of.
31 void GetKnownEVPolicies(
32 const nsTArray
<uint8_t>& cert
,
33 /*out*/ nsTArray
<mozilla::pkix::CertPolicyId
>& policies
);
35 // CertIsAuthoritativeForEVPolicy does NOT evaluate whether the cert is trusted
37 bool CertIsAuthoritativeForEVPolicy(const nsTArray
<uint8_t>& cert
,
38 const mozilla::pkix::CertPolicyId
& policy
);
41 } // namespace mozilla
43 #endif // ExtendedValidation_h