Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* Copyright 2013 Mozilla Foundation |
michael@0 | 4 | * |
michael@0 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
michael@0 | 6 | * you may not use this file except in compliance with the License. |
michael@0 | 7 | * You may obtain a copy of the License at |
michael@0 | 8 | * |
michael@0 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
michael@0 | 10 | * |
michael@0 | 11 | * Unless required by applicable law or agreed to in writing, software |
michael@0 | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
michael@0 | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
michael@0 | 14 | * See the License for the specific language governing permissions and |
michael@0 | 15 | * limitations under the License. |
michael@0 | 16 | */ |
michael@0 | 17 | |
michael@0 | 18 | #ifndef mozilla_pkix__pkixcheck_h |
michael@0 | 19 | #define mozilla_pkix__pkixcheck_h |
michael@0 | 20 | |
michael@0 | 21 | #include "pkix/pkixtypes.h" |
michael@0 | 22 | #include "pkixutil.h" |
michael@0 | 23 | #include "certt.h" |
michael@0 | 24 | |
michael@0 | 25 | namespace mozilla { namespace pkix { |
michael@0 | 26 | |
michael@0 | 27 | Result CheckIssuerIndependentProperties( |
michael@0 | 28 | TrustDomain& trustDomain, |
michael@0 | 29 | BackCert& cert, |
michael@0 | 30 | PRTime time, |
michael@0 | 31 | EndEntityOrCA endEntityOrCA, |
michael@0 | 32 | KeyUsage requiredKeyUsageIfPresent, |
michael@0 | 33 | SECOidTag requiredEKUIfPresent, |
michael@0 | 34 | SECOidTag requiredPolicy, |
michael@0 | 35 | unsigned int subCACount, |
michael@0 | 36 | /*optional out*/ TrustDomain::TrustLevel* trustLevel = nullptr); |
michael@0 | 37 | |
michael@0 | 38 | Result CheckNameConstraints(BackCert& cert); |
michael@0 | 39 | |
michael@0 | 40 | } } // namespace mozilla::pkix |
michael@0 | 41 | |
michael@0 | 42 | #endif // mozilla_pkix__pkixcheck_h |