components.h
Go to the documentation of this file.00001
00009
00010
00011
00012
00013 #define TOOLKIT_SUBCOMPONENT_MULTIPLIER 25
00014 #define TOOLKIT_ERROR_MULTIPLIER 500
00015 #define TOOLKIT_ERROR_EXTENSIONS 100 //used to define additional errors within a component
00016
00017
00018
00019
00020 #define TOOLKIT_ASN 1 //PKIFX509ASN.lib
00021 #define TOOLKIT_CACHE 2 //PKIFCACHE.lib
00022 #define TOOLKIT_CRYPTO 3 //PKIFCRYPTO.lib
00023 #define TOOLKIT_MESSAGE 4 //PKIFCMS.lib
00024 #define TOOLKIT_OCSP 5 //PKIFOCSP.lib
00025 #define TOOLKIT_PATH 6 //PKIFPATH.lib
00026 #define TOOLKIT_TAP 7 //PKIFTAP.lib
00027 #define TOOLKIT_TSP 8 //PKIFTSP.lib
00028 #define TOOLKIT_UTILS 9 //PKIFUTILS.lib
00029 #define TOOLKIT_APP 10 //other components, app-defined, etc.
00030 #define TOOLKIT_SCVP 11 //PKIFSCVP.lib
00031
00032
00033
00034 #define TOOLKIT_ASN_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_ASN //ASN1Errors.h
00035 #define TOOLKIT_SR_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_CACHE //CACCacheErrors.h
00036 #define TOOLKIT_CRYPTO_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_CRYPTO //CACCryptoErrors.h; CACCAPIErrors.h
00037 #define TOOLKIT_MESSAGE_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_MESSAGE //CACMessageErrors.h
00038 #define TOOLKIT_OCSP_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_OCSP //PKIFOCSPErrors.h
00039 #define TOOLKIT_PATH_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_PATH //CACPathErrors.h
00040 #define TOOLKIT_TAP_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_TAP //PKIFTAPErrors.h
00041 #define TOOLKIT_TSP_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_TSP //PKIFTSPErrors.h
00042 #define TOOLKIT_UTILS_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_UTILS //CACCommonErrors.h
00043 #define TOOLKIT_APP_DEFINED_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_APP //
00044 #define TOOLKIT_SCVP_ERROR_BASE TOOLKIT_ERROR_MULTIPLIER * TOOLKIT_SCVP
00045
00046
00047
00048
00049
00050 #define TOOLKIT_ASN_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_ASN
00051 #define TOOLKIT_SR_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_CACHE
00052 #define TOOLKIT_CRYPTO_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_CRYPTO
00053 #define TOOLKIT_MESSAGE_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_MESSAGE
00054 #define TOOLKIT_OCSP_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_OCSP
00055 #define TOOLKIT_PATH_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_PATH
00056 #define TOOLKIT_TAP_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_TAP
00057 #define TOOLKIT_TSP_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_TSP
00058 #define TOOLKIT_UTILS_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_UTILS
00059 #define TOOLKIT_APP_DEFINED_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_APP
00060 #define TOOLKIT_SCVP_SUBCOMPONENT TOOLKIT_SUBCOMPONENT_MULTIPLIER * TOOLKIT_SCVP
00061
00062
00063
00064
00065
00066 #define TOOLKIT_EXTENSION_MEDIATOR TOOLKIT_ASN_SUBCOMPONENT + 1
00067 #define TOOLKIT_X509_ASN TOOLKIT_ASN_SUBCOMPONENT + 2
00068
00069
00070 #define TOOLKIT_SR_MEDIATOR TOOLKIT_SR_SUBCOMPONENT + 1
00071 #define TOOLKIT_SR_CAPICERTUPDATE TOOLKIT_SR_SUBCOMPONENT + 2
00072 #define TOOLKIT_SR_CAPICRLUPDATE TOOLKIT_SR_SUBCOMPONENT + 3
00073 #define TOOLKIT_SR_CAPIREPOSITORY TOOLKIT_SR_SUBCOMPONENT + 4
00074 #define TOOLKIT_SR_CAPITRUSTROOTCRLSTORE TOOLKIT_SR_SUBCOMPONENT + 5
00075 #define TOOLKIT_SR_CAPITRUSTSTORE TOOLKIT_SR_SUBCOMPONENT + 6
00076 #define TOOLKIT_SR_CAPIUSERREPOSITORY TOOLKIT_SR_SUBCOMPONENT + 7
00077 #define TOOLKIT_SR_LDAPREPOSITORY TOOLKIT_SR_SUBCOMPONENT + 8
00078 #define TOOLKIT_SR_SIMPLECERTCACHE TOOLKIT_SR_SUBCOMPONENT + 9
00079 #define TOOLKIT_SR_SIMPLECRLCACHE TOOLKIT_SR_SUBCOMPONENT + 10
00080 #define TOOLKIT_SR_SIMPLEROOTSTORE TOOLKIT_SR_SUBCOMPONENT + 11
00081 #define TOOLKIT_SR_MISC TOOLKIT_SR_SUBCOMPONENT + 12 //added 11/19/2003
00082 #define TOOLKIT_SR_NSSTRUSTSTORE TOOLKIT_SR_SUBCOMPONENT + 13
00083 #define TOOLKIT_SR_NSSTRUSTROOTCRLSTORE TOOLKIT_SR_SUBCOMPONENT + 14
00084 #define TOOLKIT_SR_NSSCRLUPDATE TOOLKIT_SR_SUBCOMPONENT + 15
00085 #define TOOLKIT_SR_NSSCERTUPDATE TOOLKIT_SR_SUBCOMPONENT + 16
00086 #define TOOLKIT_SR_NSSREPOSITORY TOOLKIT_SR_SUBCOMPONENT + 17
00087
00088
00089 #define TOOLKIT_CRYPTO_MEDIATOR TOOLKIT_CRYPTO_SUBCOMPONENT + 1
00090 #define TOOLKIT_CRYPTO_CAPICRED TOOLKIT_CRYPTO_SUBCOMPONENT + 2
00091 #define TOOLKIT_CRYPTO_CAPI TOOLKIT_CRYPTO_SUBCOMPONENT + 3
00092 #define TOOLKIT_CRYPTO_CAPIRAW TOOLKIT_CRYPTO_SUBCOMPONENT + 4
00093 #define TOOLKIT_CRYPTO_KEYMATERIAL TOOLKIT_CRYPTO_SUBCOMPONENT + 5
00094 #define TOOLKIT_CRYPTO_MISC TOOLKIT_CRYPTO_SUBCOMPONENT + 6 //added 11/19/2003
00095 #define TOOLKIT_CRYPTO_NSS TOOLKIT_CRYPTO_SUBCOMPONENT + 7
00096 #define TOOLKIT_CRYPTO_NSSRAW TOOLKIT_CRYPTO_SUBCOMPONENT + 8
00097 #define TOOLKIT_CRYPTO_NSSCRED TOOLKIT_CRYPTO_SUBCOMPONENT + 9
00098 #define TOOLKIT_CRYPTO_CRYPTOPP TOOLKIT_CRYPTO_SUBCOMPONENT + 10
00099 #define TOOLKIT_CRYPTO_CRYPTOPPRAW TOOLKIT_CRYPTO_SUBCOMPONENT + 11
00100 #define TOOLKIT_CRYPTO_CRYPTOPPCRED TOOLKIT_CRYPTO_SUBCOMPONENT + 12
00101
00102
00103 #define TOOLKIT_MESSAGE_SIGNED_DATA TOOLKIT_MESSAGE_SUBCOMPONENT + 1
00104 #define TOOLKIT_MESSAGE_ATTR_MEDIATOR TOOLKIT_MESSAGE_SUBCOMPONENT + 2
00105 #define TOOLKIT_MESSAGE_ASN TOOLKIT_MESSAGE_SUBCOMPONENT + 3
00106 #define TOOLKIT_MESSAGE_PARALLEL_HASH TOOLKIT_MESSAGE_SUBCOMPONENT + 4
00107 #define TOOLKIT_MESSAGE_ENVELOPED_DATA TOOLKIT_MESSAGE_SUBCOMPONENT + 5
00108 #define TOOLKIT_MESSAGE_CONTENT_INFO TOOLKIT_MESSAGE_SUBCOMPONENT + 6
00109
00110
00111 #define TOOLKIT_PATH_MEDIATOR TOOLKIT_PATH_SUBCOMPONENT + 1
00112 #define TOOLKIT_PATH_REV_STATUS_MEDIATOR TOOLKIT_PATH_SUBCOMPONENT + 2
00113 #define TOOLKIT_PATH_CRL_CHECKER TOOLKIT_PATH_SUBCOMPONENT + 3
00114 #define TOOLKIT_PATH_BASIC_CHECKS TOOLKIT_PATH_SUBCOMPONENT + 4
00115 #define TOOLKIT_PATH_BUILDER TOOLKIT_PATH_SUBCOMPONENT + 5
00116 #define TOOLKIT_PATH_VALIDATOR TOOLKIT_PATH_SUBCOMPONENT + 6
00117 #define TOOLKIT_PATH_MISC TOOLKIT_PATH_SUBCOMPONENT + 7 //added 11/19/2003
00118
00119
00120 #define TOOLKIT_PKIF_DLL TOOLKIT_UTILS_SUBCOMPONENT + 1
00121
00122
00123 #define TOOLKIT_OCSP_ASN TOOLKIT_OCSP_SUBCOMPONENT + 1 //DER encode/decode wrapper classes
00124 #define TOOLKIT_OCSP_CHECKER TOOLKIT_OCSP_SUBCOMPONENT + 2
00125
00126
00127 #define TOOLKIT_TAP_ASN TOOLKIT_TAP_SUBCOMPONENT + 1 //DER encode/decode wrapper classes
00128
00129
00130 #define TOOLKIT_TSP_ASN TOOLKIT_TSP_SUBCOMPONENT + 1 //DER encode/decode wrapper classes
00131 #define TOOLKIT_TSP_TIMESTAMP_VERIFIER TOOLKIT_TSP_SUBCOMPONENT + 2
00132
00133
00134 #define TOOLKIT_SCVP_ASN TOOLKIT_SCVP_SUBCOMPONENT + 1 //DER encode/decode wrapper classes
00135 #define TOOLKIT_SCVP_PATH_BUILDER TOOLKIT_SCVP_SUBCOMPONENT + 2
00136 #define TOOLKIT_SCVP_PATH_VALIDATOR TOOLKIT_SCVP_SUBCOMPONENT + 3
00137 #define TOOLKIT_SCVP_PATH_PROCESSOR TOOLKIT_SCVP_SUBCOMPONENT + 4 //Build and validate
00138
00139
00140 #define REVSOURCE_UNKNOWN 0 //component unknown or no determination was made
00141 #define REVSOURCE_CRL 1 //CPKIFX509CRLChecker made the determination
00142 #define REVSOURCE_OCSP 2 //CPKIFOCSPChecker made the determination
00143