RSA Security logo

RSA BSAFE Cert-C
API Reference

certerr.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-2003.  All rights reserved.  
00003 * This work contains proprietary, confidential, and trade secret 
00004 * information of RSA Security Inc.  Use, disclosure or reproduction 
00005 * without the express written authorization of RSA Security Inc. is
00006 * prohibited.
00007 */
00008 
00009 #ifndef HEADER_BSAFE_CERTC_CERTERR
00010 #define HEADER_BSAFE_CERTC_CERTERR 1
00011 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #define E_CERTC_MIN         0x0700
00028 /* BCERT errors */
00029 #define E_ALLOC             0x0700
00030 #define E_BER_ENCODING      0x0701
00031 #define E_CANCEL            0x0702
00032 #define E_DATA              0x0703
00033 #define E_INDEX             0x0704
00034 #define E_INPUT_DATA        0x0705
00035 #define E_INPUT_LEN         0x0706
00036 #define E_INVALID_PARAMETER 0x0707
00037 #define E_NOT_FOUND         0x0708
00038 #define E_NOT_SUPPORTED     0x0709
00039 #define E_OUTPUT_LEN        0x070a
00040 #define E_OVER_32K          0x070b
00041 #define E_VALIDITY          0x070c
00042 #define E_HMAC_FAILED       0x07A6
00043 #define E_VALUE_NOT_SET     0x07A8
00044 
00045 /* attribute errors
00046  */
00047 #define E_ATTRIBUTE_TAG            0x070d
00048 #define E_ATTRIBUTE_TYPE           0x070e
00049 #define E_ATTRIBUTE_TYPE_LEN       0x070f
00050 #define E_ATTRIBUTE_TYPE_NOT_FOUND 0x0710
00051 #define E_ATTRIBUTE_VALUE          0x0711
00052 #define E_ATTRIBUTE_VALUE_LEN      0x0712
00053 #define E_ATTRIBUTE_VALUE_INDEX    0x0713
00054 #define E_ATTRIBUTES_ENCODING      0x0714
00055 #define E_ATTRIBUTES_OBJ           0x0715
00056 
00057 #define E_NAME_OBJ      0x0716
00058 #define E_NAME_ENCODING 0x0717
00059 
00060 /* Common errors for CERT_OBJ, CERT_REQUEST_OBJ, PKCS10_OBJ, CRL_OBJ
00061  */
00062 #define E_COMPUTE_ASN_SIGNATURE       0x0718
00063 #define E_COMPUTE_DIGEST              0x0719
00064 #define E_DER_UNKNOWN                 0x071a
00065 #define E_KEY_TYPE_NOT_SUPPORTED      0x071b
00066 #define E_INNER_DER_UNKNOWN           0x071c 
00067 #define E_ISSUER_NAME                 0x071d
00068 #define E_PRIVATE_KEY                 0x071e
00069 #define E_PUBLIC_KEY                  0x071f
00070 #define E_SIGN_MACRO_OBJECT           0x0720
00071 #define E_SIGN_VALUE_UNKNOWN          0x0721
00072 #define E_SIGNATURE_ALG_NOT_SUPPORTED 0x0722
00073 #define E_SIGNATURE_ALG_UNKNOWN       0x0723
00074 #define E_SUBJECT_NAME                0x0724
00075 #define E_VERIFY_ASN_SIGNATURE        0x0725
00076 
00077 /* CERT_OBJ errors
00078  */ 
00079 #define E_CERT_FIELDS  0x0726
00080 #define E_CERT_OBJ     0x0727
00081 #define E_CERT_SERIAL  0x0728
00082 #define E_CERT_VERSION 0x0729
00083 
00084 
00085 /* CERT_REQUEST_OBJ, PKCS10_OBJ errors
00086  */
00087 #define E_CERT_EXTENSIONS       0x072a
00088 #define E_CERT_REQUEST_FIELDS   0x072b
00089 #define E_PKCS10_FIELDS         0x072b
00090 #define E_CERT_REQUEST_OBJ      0x072c
00091 #define E_PKCS10_OBJ            0x072c
00092 #define E_CERT_REQUEST_VERSION  0x072d
00093 #define E_PKCS10_VERSION        0x072d
00094 #define E_INVALID_SIGNATURE     0x072e 
00095 #define E_CERT_REQUEST_ENCODING 0x072f 
00096 #define E_PKCS10_ENCODING       0x072f 
00097 
00098 /* CRL_OBJ errors
00099  */
00100 #define E_CRL_ENTRIES_OBJ      0x0730
00101 #define E_CRL_ENTRY_EXTENSIONS 0x0731
00102 #define E_CRL_EXTENSIONS       0x0732
00103 #define E_CRL_FIELDS           0x0733
00104 #define E_CRL_OBJ              0x0734
00105 #define E_CRL_VERSION          0x0735
00106 
00107 #define E_LIST_OBJ 0x0736
00108 
00109 /* EXTENSIONS_OBJ errors
00110  */
00111 #define E_EXTENSION_ALREADY_EXISTS   0x0737
00112 #define E_EXTENSION_TYPE_NOT_ALLOWED 0x0738
00113 #define E_EXTENSIONS_OBJ             0x0739
00114 
00115 #define E_INVALID_CRITICALITY         0x073a
00116 #define E_MULTIPLE_VALUES_NOT_ALLOWED 0x073b
00117 #define E_UNKNOWN_CRITICAL_EXTENSION  0x073c
00118 #define E_VALUE_INDEX                 0x073d
00119 
00120 #define E_APPL_CTX 0x073e
00121 
00122 /* Registering Extensions errors
00123  */
00124 #define E_DEFAULT_STANDARD_EXTENSION    0x073f
00125 #define E_EXTENSIONS_OBJ_TYPE           0x0740
00126 #define E_INVALID_HANDLER               0x0741
00127 #define E_OVERRIDE_HANDLER_NOT_ALLOWED  0x0742  
00128 #define E_OVERRIDE_CRITICAL_NOT_ALLOWED 0x0743
00129 
00130 /* Service Provider errors
00131  */
00132 #define E_NO_SERVICE        0x0744   /* no service handler found */
00133 #define E_DUPLICATE_SERVICE 0x0745   /* duplicate service handler */
00134 #define E_IO                0x0746   /* i/o service provider error */
00135 #define E_EOS               0x0747   /* end-of-stream during i/o */
00136 #define E_LOG               0x0748   /* log service provider error */
00137 #define E_SURRENDER         0x0749   /* surrender service provider error */
00138 #define E_DB                0x074a   /* database service provider error */
00139 #define E_CRYPTO            0x074b   /* crypto service provider error */
00140 
00141 /* Cert Path Provider errors
00142  */
00143 #define E_PATH_NOT_FOUND         0x0750 /* valid cert path not found */
00144 #define E_NOT_VALIDATED          0x0751 /* validation process failed */
00145 #define E_PATH_ALG_NOT_SUPPORTED 0x0752 /* path algorithm not supported */
00146 #define E_PATH_PROVIDER          0x0753 /* path provider specific error */
00147 #define E_PATH_POLICY            0x0754 /* Required policy not present or path not validated under given user policies */
00148 #define E_PATH_POLICY_MAPPING    0x0755 /* Illegal ID-P policy mapping detected */
00149 
00150 /* PKCS#7 message errors 
00151 */
00152 #define E_DIGEST_ALG_NOT_SUPPORTED  0x0760 /* message digest algorithms not supported */
00153 #define E_DIGEST_NOT_MATCHED        0x0761 /* digest in DigestedData not match calculated digest */ 
00154 #define E_ENCRYPT_ALG_NOT_SUPPORTED 0x0762 /* message encryption algorithms not supported */
00155 #define E_CMSF_OPTION               0x0763 /* CMS option not supported */
00156 #define E_MESSAGE_TYPE_NOT_VALID    0x0764 /* message type not valid */
00157 #define E_VERSION_NOT_SUPPORTED     0x0765 /* version of message not supported */
00158 #define E_KEY_ENCRYPTION_ALG_NOT_SUPPORTED 0x766 
00159                                            /* recipient key encryption algorithms not supported */
00160 /* LDAP errors 
00161  */
00162 #define E_LDAP_ERROR          0x0770  /* Generic LDAP error. LDAP return codes
00163                                          provide more information */
00164 #define E_LDAP_NO_SUCH_OBJECT 0x0771  /* LDAP operation returned LDAP_NO_SUCH_OBJECT */
00165 #define E_LDAP_UNBIND         0x0772  /* LDAP unbind failed */
00166 #define E_LDAP_ATTRLIST       0x0773  /* Problem building base DN or search filter for LDAP search */
00167 #define E_LDAP_ATTR_NOTFOUND  0x0774  /* DN or search filter component not found in subject name */
00168 
00169 /* PKI, distributed system and network-transport errors
00170  */
00171 #define E_PKI_MSG_INVALID             0x780  /* malformed message BER/DER/data format                 */
00172 #define E_PKI_MSG_OBJ                 0x781  /* invalid PKI_MSG_OBJ                                   */
00173 #define E_PKI_MSG_TYPE                0x782  /* message type mismatch                                 */
00174 #define E_PKI_SIGNER_COUNT            0x783  /* invalid # of authenticated, expected response signers */
00175 #define E_PKI_MISSING_POP             0x784  /* required proof-of-posession missing                   */
00176 #define E_PKI_NONCE_MISMATCH          0x785  /* sender and recipient nonce mismatch                   */
00177 #define E_PKI_INVALID_CONFIGURATION   0x786  /* configuration information specified incorrectly       */
00178 #define E_PKI_TRANSACTION_ID_MISMATCH 0x787  /* sender and recipient transaction ID mismatch          */
00179 #define E_PKI_UNEXPECTED_DATA         0x788  /* data unanticipated by provider (internal error)       */
00180 #define E_PKI_INCORRECT_MSGTYPE       0x789  /* incorrect message type in message                     */
00181 #define E_PKI_TRANSPORT               0x78a  /* data transport I/O error                              */
00182 #define E_URL_ENCODING                0x790  /* data incorrectly url-encoded                          */
00183 #define E_TIMEOUT                     0x791  /* timeout occured during operation                      */
00184 #define E_OS_PLATFORM                 0x792  /* platform-specific problem (library binding, etc.)     */
00185 #define E_BUSY                        0x793  /* requested service busy -- try later                   */
00186 #define E_NOT_AUTHORIZED              0x794  /* not authorized/identified to use service              */
00187 #define E_SERVER_FAILURE              0x795  /* server/remote internal error                          */
00188 #define E_NOURI                       0x796  /* Missing URI information, unable to make request       */
00189 #define E_PKI_OBJ                     0x797  /* invalid PKI_xxx object      */
00190 #define E_CERT_TEMPLATE_OBJ           0x798  /* certificate template object is invalid */
00191 #define E_STATUS_INFO_OBJ             0x799  /* status info object is invalid */
00192  
00193 /* Crypto API errors
00194  */
00195 #define E_INSERT                       0x7A0 /* cannot insert cert/CRL/key */
00196 #define E_RETRIEVE                     0x7A1 /* cannot retrieve cert/CRL/key */
00197 #define E_DELETE                       0x7A2 /* cannot delete cert/CRL/key */
00198 #define E_PROVIDER                     0x7A3 /* CSP related error (cannot acquire context, etc.) */
00199 #define E_KEY                          0x7A4 /* invalid key, key specs, etc. */
00200 #define E_CANT_ASSOCIATE_CERT_WITH_KEY 0x7A5 /* cannot associate cert with private key */
00201                                     /* 0x7A6    defined above */
00202 #define E_PROV_DLL_NOT_FOUND           0x7A7 /* Provider DLL not found */
00203                                     /* 0x7A8    defined above */
00204 
00205 /* PKCS #11 database provider errors
00206  */
00207 #define E_PKCS11DB_LIBRARY_ERROR     0x7C0 /* generic PKCS #11 error */
00208 #define E_PKCS11DB_CRYPTOKIFUNCTIONS 0x7C1 /* cryptoki function list not obtained or not provided */
00209 #define E_PKCS11DB_INIT_LIBRARY      0x7C2 /* PKCS #11 library could not be initialized */
00210 #define E_PKCS11DB_LIBRARY_VERSION   0x7C3 /* library version in inappropriate for use */
00211 #define E_PKCS11DB_OPEN_SESSION      0x7C4 /* session to the token could not be opened */
00212 #define E_PKCS11DB_NO_TOKENS_PRESENT 0x7C5 /* no tokens found in any slot */
00213 #define E_PKCS11DB_TOKEN_NOT_FOUND   0x7C6 /* cannot find token with given label */
00214 #define E_PKCS11DB_BAD_PIN           0x7C7 /* PIN is incorrect, expired or locked */
00215 #define E_PKCS11DB_LOGIN_FAILED      0x7C8 /* could not log in session */
00216 #define E_PKCS11DB_LIBRARY_NOT_FOUND 0x7c9 /* PKCS #11 library not found */
00217 
00218 #define E_C_CMS_OBJ      0x7d0     /* invalid C_CMS_OBJ */
00219 #define E_OID_MISMATCH   0x7e0     /* OIDs do not match */
00220 
00221 #define E_CERTC_CTX      0x7f0     /* CERTC_CTX error */
00222 
00223 #define E_CERTC_MAX      0x7ff   
00224 
00225 #ifdef __cplusplus
00226 }
00227 #endif
00228 
00229 #endif /* HEADER_BSAFE_CERTC_CERTERR */



RSA BSAFE® Cert-C 2.7 API Reference