andre@0: /* This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: /* andre@0: * pkix_pl_basicconstraints.h andre@0: * andre@0: * BasicConstraints Object Definitions andre@0: * andre@0: */ andre@0: andre@0: #ifndef _PKIX_PL_BASICCONSTRAINTS_H andre@0: #define _PKIX_PL_BASICCONSTRAINTS_H andre@0: andre@0: #include "pkix_pl_common.h" andre@0: andre@0: #ifdef __cplusplus andre@0: extern "C" { andre@0: #endif andre@0: andre@0: /* This structure reflects the contents of the basic constraints andre@0: * extension as described in Section 4.2.1.10 of RFC 3280. andre@0: * The cA flag indicates whether the public key in this certificate andre@0: * belongs to a certification authority. The pathLen constraint andre@0: * gives the maximum number of non-self-issued intermediate certificates andre@0: * that may follow this certificate in a valid certification path. andre@0: */ andre@0: struct PKIX_PL_CertBasicConstraintsStruct { andre@0: PKIX_Boolean isCA; andre@0: PKIX_Int32 pathLen; andre@0: }; andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_CertBasicConstraints_Create( andre@0: PKIX_Boolean isCA, andre@0: PKIX_Int32 pathLen, andre@0: PKIX_PL_CertBasicConstraints **object, andre@0: void *plContext); andre@0: andre@0: PKIX_Error * andre@0: pkix_pl_CertBasicConstraints_RegisterSelf( andre@0: void *plContext); andre@0: andre@0: #ifdef __cplusplus andre@0: } andre@0: #endif andre@0: andre@0: #endif /* _PKIX_PL_BASICCONSTRAINTS_H */