Annotation of win32/sql/oracle/include/oci/nzerror.h, revision 1.1
1.1 ! parser 1: /* DISABLE check_long_lines */
! 2:
! 3: /*
! 4: * $Header: /var/lib/cvsroot/parser3/parser3/src/sql/oracle/oracle32/include/oci/nzerror.h,v 1.1 2001/08/22 14:02:18 parser Exp $
! 5: *
! 6: * Copyright (c) Oracle Corporation 1995, 1996, 1997, 1998, 1999. All Rights Reserved.
! 7: */
! 8:
! 9: /* ENABLE check_long_lines */
! 10: /*
! 11: NAME
! 12: nzerror.h - error numbers for the Oracle Security Server
! 13: DESCRIPTION
! 14: None.
! 15: PUBLIC FUNCTION(S)
! 16: None.
! 17: PRIVATE FUNCTION(S)
! 18: None.
! 19: NOTES
! 20: A pragma is used to silence olint about the enum value names not being
! 21: unique within 7 characters. This limit is being changed to 30.
! 22: MODIFIED
! 23: rwessman 07/07/99 - Deleted include of sslerrs.h. It caused the RDBMS bu
! 24: rwessman 07/02/99 - fixed merge errors
! 25: rwessman 07/01/99 - moved NZOS errors to nzerror to make them visible
! 26: supriya 12/16/98 - add new error for cert chain.
! 27: arswamin 12/04/98 - add NZERROR_NO_MATCHING_PRIVATE_KEY
! 28: qdinh 11/12/98 - add NZERROR_VALIDITY_EXPIRED.
! 29: arswamin 06/17/98 - add INIT_FAILED
! 30: sdange 06/10/98 - change wrong password to bad password
! 31: amthakur 06/09/98 - adding error messages
! 32: wliau 03/10/97 - Add new error message for snzdfo.c.
! 33: rwessman 03/14/97 - Consolidated PL/SQL toolkit errors into generic erro
! 34: rwessman 02/26/97 - Added NZERROR_UNSUPPORTED. Corrected values of
! 35: errors outside the valid range.
! 36: asriniva 03/02/97 - Fix olint warning
! 37: rwessman 02/26/97 - Added NZERROR_UNSUPPORTED
! 38: rwessman 01/02/97 - Changed PLSQL package errors to be TK_PLSQL to
! 39: separate them from the errors generated by the
! 40: Oracle interface.
! 41: rwessman 12/30/96 - Merged in PL/SQL toolkit errors
! 42: sdange 11/14/96 - (Added NZERROR_DECRYPT_FAILED to the enum list)
! 43: rwessman 12/02/96 -
! 44: rwessman 11/25/96 - Added error messages for PL/SQL functions.
! 45: asriniva 10/31/96 - Include oratypes.h
! 46: asriniva 10/29/96 - Fix numbering.
! 47: asriniva 10/29/96 - Fix error numbers
! 48: asriniva 10/29/96 - Correct type-o
! 49: asriniva 10/28/96 - Add more TK errors
! 50: asriniva 10/28/96 - Convert OKAPI errors to TK errors.
! 51: rwessman 10/17/96 - still more OSS TK errors
! 52: asriniva 10/16/96 - OKAPI errors
! 53: asriniva 10/15/96 - OSSTK errors
! 54: rwessman 10/15/96 - Added more OSS TK errors
! 55: asriniva 10/09/96 - Add OSSTK errors.
! 56: rwessman 09/05/96 - Added errors for PL/SQL functions.
! 57: wliau 09/05/96 - correct error numbers.
! 58: $Log: nzerror.h,v $
! 59: Revision 1.1 2001/08/22 14:02:18 parser
! 60: oracle sql driver just linked
! 61:
! 62: * Revision 1.26 1996/07/15 23:07:23 wliau
! 63: * Added NZERROR_AUTH_SHARED_MEMORY
! 64: *
! 65: * Revision 1.25 1996/07/01 20:40:15 asriniva
! 66: * Finished RSA verify/sign.
! 67: *
! 68: * Revision 1.24 1996/06/27 20:39:41 rwessman
! 69: * Added more errors.
! 70: *
! 71: * Revision 1.23 1996/05/31 17:33:40 rwessman
! 72: * Updated nzerror.h to contain bug # for olint enum bug.
! 73: *
! 74: * Revision 1.22 1996/05/31 17:12:30 rwessman
! 75: * Assigned values to the various errors.
! 76: *
! 77: * Revision 1.21 1996/05/13 20:46:58 ggilchri
! 78: * Added more attribute related error conditions
! 79: *
! 80: */
! 81:
! 82: #ifndef NZERROR_ORACLE
! 83: # define NZERROR_ORACLE
! 84:
! 85: #ifndef ORATYPES
! 86: # include <oratypes.h>
! 87: #endif /* ORATYPES */
! 88:
! 89: /*
! 90: ** Errors - when an error is added here, a message corresponding to the
! 91: ** error number must be added to the message file.
! 92: ** New errors must be assigned numbers, otherwise the compiler can assign any
! 93: ** value that it wants, which may lead to invalid error numbers being
! 94: ** generated.
! 95: ** The number range currently assigned to the OSS is 28750 - 29249
! 96: */
! 97:
! 98: typedef enum nzerror
! 99: {
! 100: NZERROR_OK = 0,
! 101: NZERROR_GENERIC = 28750, /* A catchall for errors */
! 102: NZERROR_NO_MEMORY = 28751, /* No more memory */
! 103: NZERROR_DATA_SOURCE_INIT_FAILED = 28752, /* Failed to init data source */
! 104: NZERROR_DATA_SOURCE_TERM_FAILED = 28753,/* Failed to terminate data source */
! 105: NZERROR_OBJECT_STORE_FAILED = 28754, /* Store object in data source failed */
! 106: NZERROR_OBJECT_GET_FAILED = 28755,
! 107: /* Failed to obtain object from data source */
! 108: NZERROR_MEMORY_ALLOC_FAILED = 28756,
! 109: /* Callback failed to allocate memory */
! 110: NZERROR_MEMORY_ALLOC_0_BYTES = 28757,
! 111: /* Attempted to ask for 0 bytes of memory */
! 112: NZERROR_MEMORY_FREE_FAILED = 28758,
! 113: /* Callback failed to free memory */
! 114: NZERROR_FILE_OPEN_FAILED = 28759,
! 115: /* Open of file failed */
! 116: NZERROR_LIST_CREATION_FAILED = 28760,
! 117: /* Creation of list failed */
! 118: NZERROR_NO_ELEMENT = 28761,
! 119: /* No list element found */
! 120: NZERROR_ELEMENT_ADD_FAILED = 28762,
! 121: /* Addition of list element failed */
! 122: NZERROR_PARAMETER_BAD_TYPE = 28763,
! 123: /* Retrieval of an unknown parameter type */
! 124: NZERROR_PARAMETER_RETRIEVAL = 28764, /* Retrieval of parameter failed */
! 125:
! 126: NZERROR_NO_LIST = 28765, /* Data method list does not exist */
! 127: NZERROR_TERMINATE_FAIL = 28766, /* Failed to terminate */
! 128: NZERROR_BAD_VERSION_NUMBER = 28767, /* Bad version number */
! 129: NZERROR_BAD_MAGIC_NUMBER = 28768, /* Bad magic number */
! 130: NZERROR_METHOD_NOT_FOUND = 28769,
! 131: /* Data retrieval method specified does not exist */
! 132: NZERROR_ALREADY_INITIALIZED = 28770,
! 133: /*The data source is already initialized */
! 134: NZERROR_NOT_INITIALIZED = 28771, /* The data source is not initialized */
! 135: NZERROR_BAD_FILE_ID = 28772, /* File ID is bad */
! 136: NZERROR_WRITE_MAGIC_VERSION = 28773, /* Failed to write magic and version */
! 137: NZERROR_FILE_WRITE_FAILED = 28774, /* Failed to write to file */
! 138: NZERROR_FILE_CLOSE_FAILED = 28775, /* Failed to close file */
! 139: NZERROR_OUTPUT_BUFFER_TOO_SMALL = 28776,
! 140: /* The buffer supplied by the caller is too small */
! 141: NZERROR_BINDING_CREATION_FAILED = 28777,/* NL failed in creating a binding */
! 142: NZERROR_PARAMETER_MALFORMED = 28778, /* A parameter was in a bad format */
! 143: NZERROR_PARAMETER_NO_METHOD = 28779,
! 144: /* No method was specified for a data type */
! 145: NZERROR_BAD_PARAMETER_METHOD = 28780, /* Illegal method for data type */
! 146: NZERROR_PARAMETER_NO_DATA = 28781, /* No method specified when required */
! 147: NZERROR_NOT_ALLOCATED = 28782, /* Data source is not allocated */
! 148: NZERROR_INVALID_PARAMETER = 28783, /* Invalid parameter name */
! 149: NZERROR_FILE_NAME_TRANSLATION = 28784,/* Could not translate OSD file name */
! 150: NZERROR_NO_SUCH_PARAMETER = 28785, /* Selected parameter is non-existent */
! 151:
! 152: NZERROR_DECRYPT_FAILED = 28786, /* Encrypted private key decryption failure */
! 153: NZERROR_ENCRYPT_FAILED = 28787, /* Private key encryption failed */
! 154:
! 155: NZERROR_INVALID_INPUT = 28788, /* Incorrect input or unknown error */
! 156:
! 157: NZERROR_NAME_TYPE_NOT_FOUND = 28789,
! 158: /* Type of name requested is not available */
! 159: NZERROR_NLS_STRING_OPEN_FAILED = 28790,
! 160: /* Failure to generate an NLS string */
! 161: NZERROR_CERTIFICATE_VERIFY = 28791, /* Failed to verify a certificate */
! 162: NZERROR_OCI_PLSQL_FAILED = 28792,
! 163: /* an OCI call to process some plsql failed */
! 164: NZERROR_OCI_BIND_FAILED = 28793,
! 165: /* an OCI call to bind an internal var. failed */
! 166: NZERROR_ATTRIBUTE_INIT = 28794, /* failed to init role retrieval */
! 167: NZERROR_ATTRIBUTE_FINISH_FAILED = 28795,/* Did not complete role retrieval */
! 168: NZERROR_UNSUPPORTED_METHOD = 28796, /* Data method specified not supported */
! 169: NZERROR_INVALID_KEY_DATA_TYPE = 28797,
! 170: /* Invalid data type specified for key */
! 171: NZEROR_BIND_SUBKEY_COUNT = 28798,
! 172: /* Number of sub-keys to bind does not match count in initialized key */
! 173: NZERROR_AUTH_SHARED_MEMORY = 28799,
! 174: /* Failed to retreieve authentication information from the shared memory */
! 175: NZERROR_RIO_OPEN = 28800, /* RIO Open Failed */
! 176: NZERROR_RIO_OBJECT_TYPE = 28801, /* RIO object type invalid */
! 177: NZERROR_RIO_MODE = 28802, /* RIO mode invalid */
! 178: NZERROR_RIO_IO = 28803, /* RIO io set or numberinvalid */
! 179: NZERROR_RIO_CLOSE = 28804, /* RIO close failed */
! 180: NZERROR_RIO_RETRIEVE = 28805, /* RIO retrieve failed */
! 181: NZERROR_RIO_STORE = 28806, /* RIO store failed */
! 182: NZERROR_RIO_UPDATE = 28807, /* RIO update failed */
! 183: NZERROR_RIO_INFO = 28808, /* RIO info failed */
! 184: NZERROR_RIO_DELETE = 28809, /* RIO delete failed */
! 185: NZERROR_KD_CREATE = 28810, /* Key descriptor create failed */
! 186: NZERROR_RIO_ACCESS_DESCRIPTOR = 28811, /* access descriptor invalid */
! 187: NZERROR_RIO_RECORD = 28812, /* record invalid */
! 188: NZERROR_RIO_RECORD_TYPE = 28813, /* record type and AD type not matched */
! 189: NZERROR_PLSQL_ORACLE_TO_REAL = 28814,
! 190: /* A number passed to PL/SQL could not be converted to real format */
! 191: NZERROR_PLSQL_REAL_TO_ORACLE = 28815,
! 192: /* A number in machine format could not be converted to Oracle format */
! 193: NZERROR_TK_PLSQL_NO_PASSWORD = 28816,
! 194: /* A password was not provided to a PL/SQL function */
! 195: NZERROR_TK_PLSQL_GENERIC = 28817,
! 196: /* A PL/SQL function returned an error */
! 197: NZERROR_TK_PLSQL_NO_CONTEXT = 28818,
! 198: /* The package context was not specified to a PL/SQL function */
! 199: NZERROR_TK_PLSQL_NO_DIST_NAME = 28819,
! 200: /* The user's distinguished name was not provided to a PL/SQL function */
! 201: NZERROR_TK_PLSQL_NO_STATE = 28820,
! 202: /* The state of either a signature or decryption/encryption was not provided */
! 203: NZERROR_TK_PLSQL_NO_INPUT = 28821,
! 204: /* An input buffer was specified to a PL/SQL function */
! 205: NZERROR_TK_PLSQL_NO_SEED = 28822,
! 206: /* No seed was specified to the PL/SQL seed initialization function */
! 207: NZERROR_TK_PLSQL_NO_BYTES = 28823,
! 208: /* Number of bytes was not specified to the PL/SQL random number generator */
! 209: NZERROR_TK_INVALID_STATE = 28824,
! 210: /* Invalid encryption/decryption/signature state passed */
! 211: NZERROR_TK_PLSQL_NO_ENG_FUNC = 28825,
! 212: /* No crypto engine function was passed in */
! 213: NZERROR_TK_INV_ENG_FUNC = 28826,
! 214: /* An invalid crypto engine function was passed in */
! 215: NZERROR_TK_INV_CIPHR_TYPE = 28827,
! 216: /* An invalid cipher type was passed in */
! 217: NZERROR_TK_INV_IDENT_TYPE = 28828,
! 218: /* An invalid identity type was specified */
! 219: NZERROR_TK_PLSQL_NO_CIPHER_TYPE = 28829,
! 220: /* No cipher type was specified */
! 221: NZERROR_TK_PLSQL_NO_IDENT_TYPE = 28830,
! 222: /* No identity type was specified */
! 223: NZERROR_TK_PLSQL_NO_DATA_FMT = 28831,
! 224: /* No data unit format was specified */
! 225: NZERROR_TK_INV_DATA_FMT = 28832,
! 226: /* Invalid data unit format was provided to function */
! 227: NZERROR_TK_PLSQL_INSUFF_INFO = 28833,
! 228: /* Not enough info (usually parameters) provided to a PL/SQL function */
! 229: NZERROR_TK_PLSQL_BUF_TOO_SMALL = 28834,
! 230: /* Buffer provided by PL/SQL is too small for data to be returned */
! 231: NZERROR_TK_PLSQL_INV_IDENT_DESC = 28835,
! 232: /* Identity descriptor not present or too small */
! 233: NZERROR_TK_PLSQL_WALLET_NOTOPEN = 28836,
! 234: /* Wallet has not been opened yet */
! 235: NZERROR_TK_PLSQL_NO_WALLET = 28837,
! 236: /* No wallet descriptor specified to PL/SQL function */
! 237: NZERROR_TK_PLSQL_NO_IDENTITY = 28838,
! 238: /* No identity descriptor specified to PL/SQL function */
! 239: NZERROR_TK_PLSQL_NO_PERSONA = 28839,
! 240: /* No persona descriptor was specified to PL/SQL function */
! 241: NZERROR_TK_PLSQL_WALLET_OPEN = 28840,
! 242: /* Wallet was already opened */
! 243: NZERROR_UNSUPPORTED = 28841, /* Operation is not supported */
! 244: NZERROR_FILE_BAD_PERMISSION = 28842, /* Bad file permission specified */
! 245: NZERROR_FILE_OSD_ERROR = 28843, /* OSD error when opening file */
! 246: NZERROR_NO_WALLET = 28844, /* cert + privkey + tp files do not exist */
! 247: NZERROR_NO_CERTIFICATE_ALERT = 28845, /* no certificate */
! 248: NZERROR_NO_PRIVATE_KEY = 28846, /* no private-key */
! 249: NZERROR_NO_CLEAR_PRIVATE_KEY_FILE = 28847, /* no clear key-file */
! 250: NZERROR_NO_ENCRYPTED_PRIVATE_KEY_FILE = 28848, /* no encrypted priv key */
! 251: NZERROR_NO_TRUSTPOINTS = 28849, /* no trustpoints */
! 252: NZERROR_NO_CLEAR_TRUSTPOINT_FILE = 28850, /* no clear trustpoints */
! 253: NZERROR_NO_ENCRYPTED_TRUSTPOINT_FILE = 28851, /* no encrypted trustpoints */
! 254: NZERROR_BAD_PASSWORD = 28852, /* bad password */
! 255: NZERROR_INITIALIZATION_FAILED = 28853, /* init failed or
! 256: module loading failed */
! 257: /******************************* SSL ERRORS ********************************/
! 258: /*
! 259: * In order to allow SSL errors to be mapped to Oracle errors, space is
! 260: * provided here. One Oracle error is provided for each SSL error to make
! 261: * error handling easier. A macro is provided to do the conversion.
! 262: * NOTE: ANY CHANGE IN SSL ERRORS MUST BE REFLECTED HERE.
! 263: * To add an SSL error, use the following formula to calculate the Oracle
! 264: * error:
! 265: * new_oracle_error = (new_ssl_error - SSLMemoryError) + NZERROR_SSLMemoryErr
! 266: * or numerically:
! 267: * new_oracle_error = (new_ssl_error - -7000) + 28854
! 268: */
! 269: NZERROR_SSLMemoryErr = 28854,
! 270: NZERROR_SSLUnsupportedErr = 28855,
! 271: NZERROR_SSLOverflowErr = 28856,
! 272: NZERROR_SSLUnknownErr = 28857,
! 273: NZERROR_SSLProtocolErr = 28858,
! 274: NZERROR_SSLNegotiationErr = 28859,
! 275: NZERROR_SSLFatalAlert = 28860,
! 276: NZERROR_SSLWouldBlockErr = 28861,
! 277: NZERROR_SSLIOErr = 28862,
! 278: NZERROR_SSLSessionNotFoundErr = 28863,
! 279: NZERROR_SSLConnectionClosedGraceful = 28864,
! 280: NZERROR_SSLConnectionClosedError = 28865,
! 281: NZERROR_ASNBadEncodingErr = 28866,
! 282: NZERROR_ASNIntegerTooBigErr = 28867,
! 283: NZERROR_X509CertChainInvalidErr = 28868,
! 284: NZERROR_X509CertExpiredErr = 28869,
! 285: NZERROR_X509NamesNotEqualErr = 28870,
! 286: NZERROR_X509CertChainIncompleteErr = 28871,
! 287: NZERROR_X509DataNotFoundErr = 28872,
! 288: NZERROR_SSLBadParameterErr = 28873,
! 289: NZERROR_SSLIOClosedOverrideGoodbyeKiss = 28874,
! 290: NZERROR_X509MozillaSGCErr = 28875,
! 291: NZERROR_X509IESGCErr = 28876,
! 292: NZERROR_ImproperServerCredentials = 28877,
! 293: NZERROR_ImproperClientCredentials = 28878,
! 294: NZERROR_NoProtocolSideSet = 28879,
! 295: NZERROR_setPersonaFailed = 28880,
! 296: NZERROR_setCertFailed = 28881,
! 297: NZERROR_setVKeyFailed = 28882,
! 298: NZERROR_setTPFailed = 28883,
! 299: NZERROR_BadCipherSuite = 28884,
! 300:
! 301:
! 302: /* ============>>> ADD ERRORS HERE -- NOTE DECREASING numbers */
! 303: NZERROR_DN_MATCH = 29222, /* for nztCompareDN */
! 304: NZERROR_CERT_CHAIN_CREATION = 29223, /* unable to create a cert chain
! 305: * with the existing TPs for the
! 306: * cert to be installed.
! 307: */
! 308: NZERROR_NO_MATCHING_CERT_REQ = 29224, /* No matching cert_req was
! 309: * found the corresponding to
! 310: * the privatekey which
! 311: * matches the cert to be
! 312: * installed */
! 313: NZERROR_CERT_ALREADY_INSTALLED = 29225, /* we are attempting to
! 314: * install a cert again into
! 315: * a persona which already
! 316: * has it installed.
! 317: */
! 318: NZERROR_NO_MATCHING_PRIVATE_KEY = 29226, /* could not find a matching
! 319: * persona-private(privatekey) in
! 320: * the Persona, for the given
! 321: * cert(public key).
! 322: */
! 323: NZERROR_VALIDITY_EXPIRED = 29227, /* certificate validity date expired */
! 324: NZERROR_TK_BYTES_NEEDED = 29228, /* Couldn't determine # of bytes needed */
! 325: NZERROR_TK_BAD_MAGIC_NUMBER = 29229,
! 326: /* Magic number found in header does not match expected */
! 327: NZERROR_TK_BAD_HEADER_LENGTH = 29230,
! 328: /* Header length passed in not sufficient for message header */
! 329: NZERROR_TK_CE_INIT = 29231, /* Crypto engine failed to initialize */
! 330: NZERROR_TK_CE_KEYINIT = 29232, /* Crypto engine key initialization failed */
! 331: NZERROR_TK_CE_ENCODE_KEY = 29233, /* Count not encode key object */
! 332: NZERROR_TK_CE_DECODE_KEY = 29234, /* Could not decode key into object */
! 333: NZERROR_TK_CE_GEYKEYINFO = 29235, /* Crypto engine failed to get key info */
! 334: NZERROR_TK_SEED_RANDOM = 29236, /* Couldn't seed random number generator */
! 335: NZERROR_TK_CE_ALGFINISH = 29237, /* Couldn't finish algorithm */
! 336: NZERROR_TK_CE_ALGAPPLY = 29238, /* Couldn't apply algorithm to data */
! 337: NZERROR_TK_CE_ALGINIT = 29239, /* Couldn't init CE for algorithm */
! 338: NZERROR_TK_ALGORITHM = 29240, /* Have no idea what algorithm you want */
! 339: NZERROR_TK_CANNOT_GROW = 29241, /* Cannot grow output buffer block */
! 340: NZERROR_TK_KEYSIZE = 29242, /* Key not large enough for data */
! 341: NZERROR_TK_KEYTYPE = 29243, /* Unknown key type. */
! 342:
! 343: NZERROR_TK_PLSQL_NO_WRL = 29244,
! 344: /* Wallet resource locator not specified to PL/SQL function */
! 345:
! 346: NZERROR_TK_CE_FUNC = 29245, /* Unknown crypto engine function */
! 347: NZERROR_TK_TDU_FORMAT = 29246, /* Unknown TDU format */
! 348: NZERROR_TK_NOTOPEN = 29247, /* Object must be open */
! 349: NZERROR_TK_WRLTYPE = 29248, /* Bad WRL type */
! 350: NZERROR_TK_CE_STATE = 29249, /* Bad state specified for the crypto engine */
! 351:
! 352: NZERROR_LAST_ERROR = 29249, /* Last available error */
! 353: /* MAXIMUM ERROR NUMBER IS 29249 */
! 354:
! 355: /*
! 356: * DO NOT JUST INSERT NEW ERRORS IN ANY OLD PLACE. New errors should be
! 357: * added such the current error retains their integer values. Duplicate
! 358: * values will cause compiler errors.
! 359: */
! 360: NZERROR_THIS_MUST_BE_LAST
! 361:
! 362: } nzerror;
! 363:
! 364: /*
! 365: * Macro to convert SSL errors to Oracle errors. As SSL errors are negative
! 366: * and Oracle numbers are positive, the following needs to be done.
! 367: * 1. The base error number, which is the highest, is added to the
! 368: * SSL error to get the index into the number range.
! 369: * 2. The result is added to the base Oracle number to get the Oracle error.
! 370: */
! 371: #define NZERROR_SSL_TO_ORACLE(ssl_error_) \
! 372: ((ssl_error_ == SSLNoErr) \
! 373: ? NZERROR_OK \
! 374: : (nzerror) ((ssl_error_ - SSLMemoryErr) + (uword) NZERROR_SSLMemoryErr))
! 375: #endif /* NZERROR_ORACLE */
E-mail: