michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=8 sts=2 et sw=2 tw=80: */ michael@0: /* Copyright 2013 Mozilla Foundation michael@0: * michael@0: * Licensed under the Apache License, Version 2.0 (the "License"); michael@0: * you may not use this file except in compliance with the License. michael@0: * You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, software michael@0: * distributed under the License is distributed on an "AS IS" BASIS, michael@0: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: * See the License for the specific language governing permissions and michael@0: * limitations under the License. michael@0: */ michael@0: michael@0: #ifndef mozilla_pkix__pkixcheck_h michael@0: #define mozilla_pkix__pkixcheck_h michael@0: michael@0: #include "pkix/pkixtypes.h" michael@0: #include "pkixutil.h" michael@0: #include "certt.h" michael@0: michael@0: namespace mozilla { namespace pkix { michael@0: michael@0: Result CheckIssuerIndependentProperties( michael@0: TrustDomain& trustDomain, michael@0: BackCert& cert, michael@0: PRTime time, michael@0: EndEntityOrCA endEntityOrCA, michael@0: KeyUsage requiredKeyUsageIfPresent, michael@0: SECOidTag requiredEKUIfPresent, michael@0: SECOidTag requiredPolicy, michael@0: unsigned int subCACount, michael@0: /*optional out*/ TrustDomain::TrustLevel* trustLevel = nullptr); michael@0: michael@0: Result CheckNameConstraints(BackCert& cert); michael@0: michael@0: } } // namespace mozilla::pkix michael@0: michael@0: #endif // mozilla_pkix__pkixcheck_h