RSA BSAFE Cert-C

Certificate Components for C

Crypto-C 6.2.1 Developer's Guide
Search

NAME_CONSTRAINTS Reference

Contains a Name Constraints extension for X.509 v3 certificates.

This extension is used only in CA certificates. It describes the name space where all subject names of subsequent certificates in a certification path must be located. The name constraints can apply to a subject's DN or to a subject's alternative names. The default criticality for this extension is CRITICAL. A certificate can have only one Name Constraints extension at a time. This structure is used with C_AddExtensionValue() and C_GetExtensionValue().

note.gif
If both permittedSubtrees and excludedSubtrees are present and the name spaces overlap, the exclusion statement takes precedence.

#include <certext.h>

typedef struct NAME_CONSTRAINTS {

  unsigned int     permittedSubtreeCount;

  GENERAL_SUBTREE *permittedSubtrees;

  unsigned int     excludedSubtreeCount;

  GENERAL_SUBTREE *excludedSubtrees;
} NAME_CONSTRAINTS;

Data Fields

unsigned int permittedSubtreeCount
 An int value that specifies the number of elements in the permittedSubtrees array.

GENERAL_SUBTREEpermittedSubtrees
 A pointer to a GENERAL_SUBTREE array that contains the subtrees that are to be permitted in the certification path. More...

unsigned int excludedSubtreeCount
 An int value that specifies the number of elements in the excludedSubtrees array.

GENERAL_SUBTREEexcludedSubtrees
 A pointer to a GENERAL_SUBTREE array that contains the subtrees to exclude from the certification path. More...


Field Documentation

GENERAL_SUBTREE* excludedSubtrees
 

A pointer to a GENERAL_SUBTREE array that contains the subtrees to exclude from the certification path. If excludedSubtrees is present, any certificate issued by the subject CA or subsequent CAs in the certification path that has a subject name within these subtrees is unacceptable.

GENERAL_SUBTREE* permittedSubtrees
 

A pointer to a GENERAL_SUBTREE array that contains the subtrees that are to be permitted in the certification path. If permittedSubtrees is present, of all the certificates issued by the subject CA and subsequent CAs in the certification path, only those certificates with subject names within these subtrees are acceptable.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 067-001001-2720-001-000 - 2.7.2