security/pkix/lib/pkixcheck.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/pkix/lib/pkixcheck.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=8 sts=2 et sw=2 tw=80: */
     1.6 +/* Copyright 2013 Mozilla Foundation
     1.7 + *
     1.8 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.9 + * you may not use this file except in compliance with the License.
    1.10 + * You may obtain a copy of the License at
    1.11 + *
    1.12 + *     http://www.apache.org/licenses/LICENSE-2.0
    1.13 + *
    1.14 + * Unless required by applicable law or agreed to in writing, software
    1.15 + * distributed under the License is distributed on an "AS IS" BASIS,
    1.16 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.17 + * See the License for the specific language governing permissions and
    1.18 + * limitations under the License.
    1.19 + */
    1.20 +
    1.21 +#ifndef mozilla_pkix__pkixcheck_h
    1.22 +#define mozilla_pkix__pkixcheck_h
    1.23 +
    1.24 +#include "pkix/pkixtypes.h"
    1.25 +#include "pkixutil.h"
    1.26 +#include "certt.h"
    1.27 +
    1.28 +namespace mozilla { namespace pkix {
    1.29 +
    1.30 +Result CheckIssuerIndependentProperties(
    1.31 +          TrustDomain& trustDomain,
    1.32 +          BackCert& cert,
    1.33 +          PRTime time,
    1.34 +          EndEntityOrCA endEntityOrCA,
    1.35 +          KeyUsage requiredKeyUsageIfPresent,
    1.36 +          SECOidTag requiredEKUIfPresent,
    1.37 +          SECOidTag requiredPolicy,
    1.38 +          unsigned int subCACount,
    1.39 +          /*optional out*/ TrustDomain::TrustLevel* trustLevel = nullptr);
    1.40 +
    1.41 +Result CheckNameConstraints(BackCert& cert);
    1.42 +
    1.43 +} } // namespace mozilla::pkix
    1.44 +
    1.45 +#endif // mozilla_pkix__pkixcheck_h

mercurial