RSA Security logo

RSA BSAFE Cert-C
API Reference

pkixpath.h

Go to the documentation of this file.
00001 /*  
00002 ** Copyright (c) 2000-2002, RSA Security Inc.
00003 **
00004 ** This file is used to demonstrate how to interface to an RSA
00005 ** Security licensed development product.  You have a
00006 ** royalty-free right to use, modify, reproduce and distribute this
00007 ** demonstration file (including any modified version), provided that
00008 ** you agree that RSA Security has no warranty, implied or
00009 ** otherwise, or liability for this demonstration file or any modified
00010 ** version.
00011 **
00012 */
00013 
00014 
00015 #ifndef _PKIXPATH_H_
00016 #define _PKIXPATH_H_ 1
00017 
00026 #include "service.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00078 int S_InitializePKIXPath (
00079   CERTC_CTX         ctx,                /* Cert-C context */
00080   POINTER           params,             /* provider-specific parameters */
00081   SERVICE_FUNCS     *funcs,             /* (out) provider functions */
00082   POINTER           *handle);           /* (out) provider handle */
00083 
00084 
00085 /*
00086    Service provider specific reason codes used in error/status logging.
00087 */
00088 /* Cert signature not verified */
00089 #define CERT_SIGNATURE_NOT_VERIFIED       1 
00090 
00091 /* PolicyID is not in initial policy set */
00092 #define POLICYID_NOT_IN_INITIAL_SET       2 
00093 
00094 /* Acceptable policy set is empty */
00095 #define POLICY_SET_EMPTY                  3 
00096 
00097 /* Intersection of initial policy set and acceptable policy set is empty */
00098 #define POLICY_SET_INTERSECTION_EMPTY     4 
00099 
00100 /* Unknown critical extension found */
00101 #define UNKNOWN_CRITICAL_EXTENSION        5 
00102 
00103 /* BasicConstraints extension not found */
00104 #define BASIC_CONSTRAINTS_NOT_FOUND       6 
00105 
00106 /* BasicConstraints extension not set to be CA type */
00107 #define BASIC_CONSTRAINTS_NOT_CA          7 
00108 
00109 /* KeyUsage extension not set to be keyCertSign */
00110 #define KEY_USAGE_NOT_KEYCERTSIGN         8 
00111 
00112 /* Name does not conform to constrainedSubtrees */
00113 #define NAME_DOES_NOT_CONFORM             9 
00114 
00115 /* Name belongs to excludedSubtrees */
00116 #define NAME_IN_EXCLUDED_SUBTREES         10 
00117 
00118 /* EmailAddress does not conform to constrainedSubtrees */
00119 #define EMAIL_ADDR_DOES_NOT_CONFORM       11 
00120 
00121 /* EmailAddress belongs to excludedSubtrees */
00122 #define EMAIL_ADDR_IN_EXCLUDED_SUBTREES   12 
00123 
00124 /* AuthKeyId mismatch */
00125 #define AUTH_KEY_ID_MISMATCH              13 
00126 
00127 /* CRL signature not verified */
00128 #define CRL_SIGNATURE_NOT_VERIFIED        14 
00129 
00130 /* Cert validityPeriod not verified */
00131 #define VALIDITY_PERIOD_NOT_VERIFIED      15 
00132 
00133 /* PathLenConstraint of basicConstraints extension not verified */
00134 #define PATH_LEN_CONSTRAINT_NOT_VERIFIED  16 
00135 
00136 /* The first cert invalid */
00137 #define FIRST_CERT_INVALID                17
00138 
00139 /* Unable to find a path */
00140 #define UNABLE_TO_FIND_PATH               18
00141 
00142 /* Unable to find the subject key */
00143 #define MISSING_SUB_KEY                   19
00144 
00145 /* KeyUsage extension not present */
00146 #define KEY_USAGE_NOT_PRESENT             20 
00147  
00148 /* KeyUsage extension does not have cRLSign set */
00149 #define KEY_USAGE_NOT_CRLSIGN             21 
00150 
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154 
00155 #endif /* _PKIXPATH_H_ */



RSA BSAFE® Cert-C 2.7 API Reference