| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/Oracle/OCI/include/nzerror.h
Go to the documentation of this file.

    00001 /* DISABLE check_long_lines  */
    00002
    00003 /*
    00004  * $Header$
    00005  *
    00006  * Copyright (c) 1995, 2003, Oracle Corporation.  All rights reserved.
    00007  */
    00008
    00009 /* ENABLE check_long_lines  */
    00010 /*
    00011   NAME
    00012      nzerror.h - error numbers for the Oracle Security Server
    00013   DESCRIPTION
    00014      None.
    00015   PUBLIC FUNCTION(S)
    00016      None.
    00017   PRIVATE FUNCTION(S)
    00018      None.
    00019   NOTES
    00020      A pragma is used to silence olint about the enum value names not being
    00021      unique within 7 characters. This limit is being changed to 30.
    00022   MODIFIED
    00023      rchahal    10/15/03 - bug 2513821
    00024      rchahal    08/14/03 - new error range (43000 - 43499)
    00025      skalyana   08/25/03 - Error changes
    00026      rchahal    06/27/03 - RSA errors
    00027      rchahal    05/27/03 - convert wallet
    00028      skalyana   03/07/03 - Move FIPS errors
    00029      rchahal    02/28/03 - bug 2648177
    00030      rchahal    01/20/03 - use sltsky
    00031      rchahal    11/11/02 - pkcs11 support
    00032      skalyana   11/29/02 - Add mutex errors
    00033      akoyfman   11/01/02 - adding crl cache
    00034      rchahal    10/23/02 - crldp error
    00035      rchahal    10/15/02 - fetch crl from ldap
    00036      rchahal    10/07/02 - crl support
    00037      akoyfman   10/16/02 - Update with SSL PLus 4.2 errors
    00038      skalyana   10/04/02 - Certicom SSL Plus 4.2 Upgrade changes
    00039      akoyfman   08/06/02 - adding sso wallet errors
    00040      akoyfman   07/12/02 - adding secret store errors
    00041      skalyana   07/07/02 - Add more errors for FIPS self tests
    00042      skalyana   07/01/02 - Add more errors
    00043      skalyana   06/03/02 - Add NZ error for self test failure.
    00044      ajacobs    02/22/01 - Add some entrust errors
    00045      vle        02/09/01 - add error mesg
    00046      lkethana   08/11/00 - Extension Errors
    00047      lkethana   07/30/00 - add pkcs12 errors
    00048      lkethana   06/17/00 - mult cert errors
    00049      lkethana   06/11/00 - multiple cert support
    00050      rturlapa   03/29/00 - Add error meesage for Entrust Login failure.
    00051      rwessman   07/07/99 - Deleted include of sslerrs.h. It caused the RDBMS bu
    00052      rwessman   07/02/99 - fixed merge errors
    00053      rwessman   07/01/99 - moved NZOS errors to nzerror to make them visible
    00054      supriya    12/16/98 - add new error for cert chain.
    00055      arswamin   12/04/98 - add NZERROR_NO_MATCHING_PRIVATE_KEY
    00056      qdinh      11/12/98 - add NZERROR_VALIDITY_EXPIRED.
    00057      arswamin   06/17/98 - add INIT_FAILED
    00058      sdange     06/10/98 - change wrong password to bad password
    00059      amthakur   06/09/98 - adding error messages
    00060      wliau      03/10/97 - Add new error message for snzdfo.c.
    00061      rwessman   03/14/97 - Consolidated PL/SQL toolkit errors into generic erro
    00062      rwessman   02/26/97 - Added NZERROR_UNSUPPORTED. Corrected values of
    00063                            errors outside the valid range.
    00064      asriniva   03/02/97 - Fix olint warning
    00065      rwessman   02/26/97 - Added NZERROR_UNSUPPORTED
    00066      rwessman   01/02/97 - Changed PLSQL package errors to be TK_PLSQL to
    00067                            separate them from the errors generated by the
    00068                            Oracle interface.
    00069      rwessman   12/30/96 - Merged in PL/SQL toolkit errors
    00070      sdange     11/14/96 - (Added NZERROR_DECRYPT_FAILED to the enum list)
    00071      rwessman   12/02/96 -
    00072      rwessman   11/25/96 - Added error messages for PL/SQL functions.
    00073      asriniva   10/31/96 - Include oratypes.h
    00074      asriniva   10/29/96 - Fix numbering.
    00075      asriniva   10/29/96 - Fix error numbers
    00076      asriniva   10/29/96 - Correct type-o
    00077      asriniva   10/28/96 - Add more TK errors
    00078      asriniva   10/28/96 - Convert OKAPI errors to TK errors.
    00079      rwessman   10/17/96 - still more OSS TK errors
    00080      asriniva   10/16/96 - OKAPI errors
    00081      asriniva   10/15/96 - OSSTK errors
    00082      rwessman   10/15/96 - Added more OSS TK errors
    00083      asriniva   10/09/96 - Add OSSTK errors.
    00084      rwessman   09/05/96 - Added errors for PL/SQL functions.
    00085      wliau      09/05/96 - correct error numbers.
    00086      $Log$
    00087  * Revision 1.26  1996/07/15  23:07:23  wliau
    00088  * Added NZERROR_AUTH_SHARED_MEMORY
    00089  *
    00090  * Revision 1.25  1996/07/01  20:40:15  asriniva
    00091  * Finished RSA verify/sign.
    00092  *
    00093  * Revision 1.24  1996/06/27  20:39:41  rwessman
    00094  * Added more errors.
    00095  *
    00096  * Revision 1.23  1996/05/31  17:33:40  rwessman
    00097  * Updated nzerror.h to contain bug # for olint enum bug.
    00098  *
    00099  * Revision 1.22  1996/05/31  17:12:30  rwessman
    00100  * Assigned values to the various errors.
    00101  *
    00102  * Revision 1.21  1996/05/13  20:46:58  ggilchri
    00103  * Added more attribute related error conditions
    00104  *
    00105 */
    00106
    00107 #ifndef NZERROR_ORACLE
    00108 # define NZERROR_ORACLE
    00109
    00110 #ifndef ORATYPES
    00111 # include <oratypes.h>
    00112 #endif /* ORATYPES */
    00113
    00114 /*
    00115 ** Errors - when an error is added here, a message corresponding to the
    00116 ** error number must be added to the message file.
    00117 ** New errors must be assigned numbers, otherwise the compiler can assign any
    00118 ** value that it wants, which may lead to invalid error numbers being
    00119 ** generated.
    00120 ** The number range currently assigned to the OSS is 28750 - 29249
    00121 ** New number range 43000 - 43499
    00122 */
    00123
    00124 typedef enum nzerror
    00125 {
    00126   NZERROR_OK = 0,
    00127   NZERROR_GENERIC = 28750,                          /* A catchall for errors */
    00128   NZERROR_NO_MEMORY = 28751,                               /* No more memory */
    00129   NZERROR_DATA_SOURCE_INIT_FAILED = 28752,     /* Failed to init data source */
    00130   NZERROR_DATA_SOURCE_TERM_FAILED = 28753,/* Failed to terminate data source */
    00131   NZERROR_OBJECT_STORE_FAILED = 28754, /* Store object in data source failed */
    00132   NZERROR_OBJECT_GET_FAILED = 28755,
    00133                                  /* Failed to obtain object from data source */
    00134   NZERROR_MEMORY_ALLOC_FAILED = 28756,
    00135                                        /* Callback failed to allocate memory */
    00136   NZERROR_MEMORY_ALLOC_0_BYTES = 28757,
    00137                                    /* Attempted to ask for 0 bytes of memory */
    00138   NZERROR_MEMORY_FREE_FAILED = 28758,
    00139                                            /* Callback failed to free memory */
    00140   NZERROR_FILE_OPEN_FAILED = 28759,
    00141                                                       /* Open of file failed */
    00142   NZERROR_LIST_CREATION_FAILED = 28760,
    00143                                                   /* Creation of list failed */
    00144   NZERROR_NO_ELEMENT = 28761,
    00145                                                     /* No list element found */
    00146   NZERROR_ELEMENT_ADD_FAILED = 28762,
    00147                                           /* Addition of list element failed */
    00148   NZERROR_PARAMETER_BAD_TYPE = 28763,
    00149                                    /* Retrieval of an unknown parameter type */
    00150   NZERROR_PARAMETER_RETRIEVAL = 28764,      /* Retrieval of parameter failed */
    00151
    00152   NZERROR_NO_LIST = 28765,                /* Data method list does not exist */
    00153   NZERROR_TERMINATE_FAIL = 28766,                     /* Failed to terminate */
    00154   NZERROR_BAD_VERSION_NUMBER = 28767,                  /* Bad version number */
    00155   NZERROR_BAD_MAGIC_NUMBER = 28768,                      /* Bad magic number */
    00156   NZERROR_METHOD_NOT_FOUND = 28769,
    00157                            /* Data retrieval method specified does not exist */
    00158   NZERROR_ALREADY_INITIALIZED = 28770,
    00159                                     /*The data source is already initialized */
    00160   NZERROR_NOT_INITIALIZED = 28771,     /* The data source is not initialized */
    00161   NZERROR_BAD_FILE_ID = 28772,                             /* File ID is bad */
    00162   NZERROR_WRITE_MAGIC_VERSION = 28773,  /* Failed to write magic and version */
    00163   NZERROR_FILE_WRITE_FAILED = 28774,              /* Failed to write to file */
    00164   NZERROR_FILE_CLOSE_FAILED = 28775,                 /* Failed to close file */
    00165   NZERROR_OUTPUT_BUFFER_TOO_SMALL = 28776,
    00166                            /* The buffer supplied by the caller is too small */
    00167   NZERROR_BINDING_CREATION_FAILED = 28777,/* NL failed in creating a binding */
    00168   NZERROR_PARAMETER_MALFORMED = 28778,    /* A parameter was in a bad format */
    00169   NZERROR_PARAMETER_NO_METHOD = 28779,
    00170                                   /* No method was specified for a data type */
    00171   NZERROR_BAD_PARAMETER_METHOD = 28780,      /* Illegal method for data type */
    00172   NZERROR_PARAMETER_NO_DATA = 28781,    /* No method specified when required */
    00173   NZERROR_NOT_ALLOCATED = 28782,             /* Data source is not allocated */
    00174   NZERROR_INVALID_PARAMETER = 28783,               /* Invalid parameter name */
    00175   NZERROR_FILE_NAME_TRANSLATION = 28784,/* Could not translate OSD file name */
    00176   NZERROR_NO_SUCH_PARAMETER = 28785,   /* Selected parameter is non-existent */
    00177
    00178   NZERROR_DECRYPT_FAILED = 28786,
    00179                                  /* Encrypted private key decryption failure */
    00180   NZERROR_ENCRYPT_FAILED = 28787,     /* Private key encryption failed */
    00181
    00182   NZERROR_INVALID_INPUT = 28788,     /* Incorrect input or unknown error */
    00183
    00184   NZERROR_NAME_TYPE_NOT_FOUND = 28789,
    00185                                   /* Type of name requested is not available */
    00186   NZERROR_NLS_STRING_OPEN_FAILED = 28790,
    00187                                         /* Failure to generate an NLS string */
    00188   NZERROR_CERTIFICATE_VERIFY = 28791,      /* Failed to verify a certificate */
    00189   NZERROR_OCI_PLSQL_FAILED = 28792,
    00190                                  /* an OCI call to process some plsql failed */
    00191   NZERROR_OCI_BIND_FAILED = 28793,
    00192                               /* an OCI call to bind an internal var. failed */
    00193   NZERROR_ATTRIBUTE_INIT = 28794,           /* failed to init role retrieval */
    00194   NZERROR_ATTRIBUTE_FINISH_FAILED = 28795,/* Did not complete role retrieval */
    00195   NZERROR_UNSUPPORTED_METHOD = 28796, /* Data method specified not supported */
    00196   NZERROR_INVALID_KEY_DATA_TYPE = 28797,
    00197                                       /* Invalid data type specified for key */
    00198   NZEROR_BIND_SUBKEY_COUNT = 28798,
    00199        /* Number of sub-keys to bind does not match count in initialized key */
    00200   NZERROR_AUTH_SHARED_MEMORY = 28799,
    00201     /* Failed to retreieve authentication information from the shared memory */
    00202   NZERROR_RIO_OPEN = 28800,                               /* RIO Open Failed */
    00203   NZERROR_RIO_OBJECT_TYPE = 28801,                /* RIO object type invalid */
    00204   NZERROR_RIO_MODE = 28802,                              /* RIO mode invalid */
    00205   NZERROR_RIO_IO = 28803,                     /* RIO io set or numberinvalid */
    00206   NZERROR_RIO_CLOSE = 28804,                             /* RIO close failed */
    00207   NZERROR_RIO_RETRIEVE = 28805,                       /* RIO retrieve failed */
    00208   NZERROR_RIO_STORE = 28806,                             /* RIO store failed */
    00209   NZERROR_RIO_UPDATE = 28807,                           /* RIO update failed */
    00210   NZERROR_RIO_INFO = 28808,                               /* RIO info failed */
    00211   NZERROR_RIO_DELETE = 28809,                           /* RIO delete failed */
    00212   NZERROR_KD_CREATE = 28810,                 /* Key descriptor create failed */
    00213   NZERROR_RIO_ACCESS_DESCRIPTOR = 28811,        /* access descriptor invalid */
    00214   NZERROR_RIO_RECORD = 28812,                              /* record invalid */
    00215   NZERROR_RIO_RECORD_TYPE = 28813,    /* record type and AD type not matched */
    00216   NZERROR_PLSQL_ORACLE_TO_REAL = 28814,
    00217           /* A number passed to PL/SQL could not be converted to real format */
    00218   NZERROR_PLSQL_REAL_TO_ORACLE = 28815,
    00219        /* A number in machine format could not be converted to Oracle format */
    00220   NZERROR_TK_PLSQL_NO_PASSWORD = 28816,
    00221                          /* A password was not provided to a PL/SQL function */
    00222   NZERROR_TK_PLSQL_GENERIC = 28817,
    00223                                       /* A PL/SQL function returned an error */
    00224   NZERROR_TK_PLSQL_NO_CONTEXT = 28818,
    00225                /* The package context was not specified to a PL/SQL function */
    00226   NZERROR_TK_PLSQL_NO_DIST_NAME = 28819,
    00227       /* The user's distinguished name was not provided to a PL/SQL function */
    00228   NZERROR_TK_PLSQL_NO_STATE = 28820,
    00229 /* The state of either a signature or decryption/encryption was not provided */
    00230   NZERROR_TK_PLSQL_NO_INPUT = 28821,
    00231                        /* An input buffer was specified to a PL/SQL function */
    00232   NZERROR_TK_PLSQL_NO_SEED = 28822,
    00233          /* No seed was specified to the PL/SQL seed initialization function */
    00234   NZERROR_TK_PLSQL_NO_BYTES = 28823,
    00235   /* Number of bytes was not specified to the PL/SQL random number generator */
    00236   NZERROR_TK_INVALID_STATE = 28824,
    00237                      /* Invalid encryption/decryption/signature state passed */
    00238   NZERROR_TK_PLSQL_NO_ENG_FUNC = 28825,
    00239                                   /* No crypto engine function was passed in */
    00240   NZERROR_TK_INV_ENG_FUNC = 28826,
    00241                           /* An invalid crypto engine function was passed in */
    00242   NZERROR_TK_INV_CIPHR_TYPE = 28827,
    00243                                      /* An invalid cipher type was passed in */
    00244   NZERROR_TK_INV_IDENT_TYPE = 28828,
    00245                                    /* An invalid identity type was specified */
    00246   NZERROR_TK_PLSQL_NO_CIPHER_TYPE = 28829,
    00247                                              /* No cipher type was specified */
    00248   NZERROR_TK_PLSQL_NO_IDENT_TYPE = 28830,
    00249                                            /* No identity type was specified */
    00250   NZERROR_TK_PLSQL_NO_DATA_FMT = 28831,
    00251                                         /* No data unit format was specified */
    00252   NZERROR_TK_INV_DATA_FMT = 28832,
    00253                         /* Invalid data unit format was provided to function */
    00254   NZERROR_TK_PLSQL_INSUFF_INFO = 28833,
    00255        /* Not enough info (usually parameters) provided to a PL/SQL function */
    00256   NZERROR_TK_PLSQL_BUF_TOO_SMALL = 28834,
    00257            /* Buffer provided by PL/SQL is too small for data to be returned */
    00258   NZERROR_TK_PLSQL_INV_IDENT_DESC = 28835,
    00259                              /* Identity descriptor not present or too small */
    00260   NZERROR_TK_PLSQL_WALLET_NOTOPEN = 28836,
    00261                                            /* Wallet has not been opened yet */
    00262   NZERROR_TK_PLSQL_NO_WALLET = 28837,
    00263                         /* No wallet descriptor specified to PL/SQL function */
    00264   NZERROR_TK_PLSQL_NO_IDENTITY = 28838,
    00265                       /* No identity descriptor specified to PL/SQL function */
    00266   NZERROR_TK_PLSQL_NO_PERSONA = 28839,
    00267                    /* No persona descriptor was specified to PL/SQL function */
    00268   NZERROR_TK_PLSQL_WALLET_OPEN = 28840,
    00269                                                 /* Wallet was already opened */
    00270   NZERROR_UNSUPPORTED = 28841,                 /* Operation is not supported */
    00271   NZERROR_FILE_BAD_PERMISSION = 28842,      /* Bad file permission specified */
    00272   NZERROR_FILE_OSD_ERROR = 28843,             /* OSD error when opening file */
    00273   NZERROR_NO_WALLET  = 28844,  /* cert + privkey + tp files do not exist */
    00274   NZERROR_NO_CERTIFICATE_ALERT    = 28845,  /* no certificate */
    00275   NZERROR_NO_PRIVATE_KEY          = 28846,  /* no private-key */
    00276   NZERROR_NO_CLEAR_PRIVATE_KEY_FILE   = 28847,   /* no clear key-file */
    00277   NZERROR_NO_ENCRYPTED_PRIVATE_KEY_FILE = 28848,  /* no encrypted priv key */
    00278   NZERROR_NO_TRUSTPOINTS     = 28849,       /* no trustpoints */
    00279   NZERROR_NO_CLEAR_TRUSTPOINT_FILE    = 28850,   /* no clear trustpoints */
    00280   NZERROR_NO_ENCRYPTED_TRUSTPOINT_FILE = 28851,   /* no encrypted trustpoints */
    00281   NZERROR_BAD_PASSWORD    = 28852,   /* bad password */
    00282   NZERROR_INITIALIZATION_FAILED   =  28853, /* init failed or
    00283                                                               module loading failed */
    00284   /******************************* SSL ERRORS ********************************/
    00285   /*
    00286    * In order to allow SSL errors to be mapped to Oracle errors, space is
    00287    * provided here. One Oracle error is provided for each SSL error to make
    00288    * error handling easier. A macro is provided to do the conversion.
    00289    * NOTE: ANY CHANGE IN SSL ERRORS MUST BE REFLECTED HERE.
    00290    * To add an SSL error, use the following formula to calculate the Oracle
    00291    * error:
    00292    * new_oracle_error = (new_ssl_error - SSLMemoryError) + NZERROR_SSLMemoryErr
    00293    * or numerically:
    00294    * new_oracle_error = (new_ssl_error - -7000) + 28854
    00295    */
    00296   NZERROR_SSLMemoryErr = 28854,
    00297   NZERROR_SSLUnsupportedErr = 28855,
    00298   NZERROR_SSLOverflowErr = 28856,
    00299   NZERROR_SSLUnknownErr = 28857,
    00300   NZERROR_SSLProtocolErr = 28858,
    00301   NZERROR_SSLNegotiationErr = 28859,
    00302   NZERROR_SSLFatalAlert = 28860,
    00303   NZERROR_SSLWouldBlockErr = 28861,
    00304   NZERROR_SSLIOErr = 28862,
    00305   NZERROR_SSLSessionNotFoundErr = 28863,
    00306   NZERROR_SSLConnectionClosedGraceful = 28864,
    00307   NZERROR_SSLConnectionClosedError = 28865,
    00308   NZERROR_ASNBadEncodingErr = 28866,
    00309   NZERROR_ASNIntegerTooBigErr = 28867,
    00310   NZERROR_X509CertChainInvalidErr = 28868,
    00311   NZERROR_X509CertExpiredErr = 28869,
    00312   NZERROR_X509NamesNotEqualErr = 28870,
    00313   NZERROR_X509CertChainIncompleteErr = 28871,
    00314   NZERROR_X509DataNotFoundErr = 28872,
    00315   NZERROR_SSLBadParameterErr = 28873,
    00316   NZERROR_SSLIOClosedOverrideGoodbyeKiss = 28874,
    00317   NZERROR_X509MozillaSGCErr  =  28875,
    00318   NZERROR_X509IESGCErr       =  28876,
    00319   NZERROR_ImproperServerCredentials = 28877,
    00320   NZERROR_ImproperClientCredentials = 28878,
    00321   NZERROR_NoProtocolSideSet = 28879,
    00322   NZERROR_setPersonaFailed = 28880,
    00323   NZERROR_setCertFailed = 28881,
    00324   NZERROR_setVKeyFailed = 28882,
    00325   NZERROR_setTPFailed = 28883,
    00326   NZERROR_BadCipherSuite = 28884,
    00327   NZERROR_NoKeyPairForKeyUsage = 28885,
    00328
    00329 /* ============>>>  ENTRUST ERRORS */
    00330   NZERROR_EntrustLoginFailed = 28890,
    00331   NZERROR_EntrustGetInfoFailed = 28891,
    00332   NZERROR_EntrustLoadCertificateFailed = 28892,
    00333   NZERROR_EntrustGetNameFailed = 28893,
    00334
    00335 /* ============>>> NZERRORS CONTINUED */
    00336   NZERROR_CertNotInstalled = 29000,
    00337   NZERROR_ServerDNMisMatched = 29002,
    00338   NZERROR_ServerDNMisConfigured = 29003,
    00339
    00340 /* ============>>> PKI VENDORS ERRORS 29050 - 29099 */
    00341
    00342 /* ============>>> SSL Errors CONTINUED */
    00343   NZERROR_CIC_ERR_SSL_ALERT_CB_FAILURE = 29004,
    00344   NZERROR_CIC_ERR_SSL_BAD_CERTIFICATE = 29005,
    00345   NZERROR_CIC_ERR_SSL_BAD_CERTIFICATE_REQUEST = 29006,
    00346   NZERROR_CIC_ERR_SSL_BAD_CLEAR_KEY_LEN = 29007,
    00347   NZERROR_CIC_ERR_SSL_BAD_DHPARAM_KEY_LENGTH = 29008,
    00348   NZERROR_CIC_ERR_SSL_BAD_ENCRYPTED_KEY_LEN = 29009,
    00349   NZERROR_CIC_ERR_SSL_BAD_EXPORT_KEY_LENGTH = 29010,
    00350   NZERROR_CIC_ERR_SSL_BAD_FINISHED_MESSAGE = 29011,
    00351   NZERROR_CIC_ERR_SSL_BAD_KEY_ARG_LEN = 29012,
    00352   NZERROR_CIC_ERR_SSL_BAD_MAC = 29013,
    00353   NZERROR_CIC_ERR_SSL_BAD_MAX_FRAGMENT_LENGTH_EXTENSION = 29014,
    00354   NZERROR_CIC_ERR_SSL_BAD_MESSAGE_LENGTH = 29015,
    00355   NZERROR_CIC_ERR_SSL_BAD_PKCS1_PADDING = 29016,
    00356   NZERROR_CIC_ERR_SSL_BAD_PREMASTER_SECRET_LENGTH = 29017,
    00357   NZERROR_CIC_ERR_SSL_BAD_PREMASTER_SECRET_VERSION = 29018,
    00358   NZERROR_CIC_ERR_SSL_BAD_PROTOCOL_VERSION = 29019,
    00359   NZERROR_CIC_ERR_SSL_BAD_RECORD_LENGTH = 29020,
    00360   NZERROR_CIC_ERR_SSL_BAD_SECRET_KEY_LEN = 29021,
    00361   NZERROR_CIC_ERR_SSL_BAD_SIDE = 29022,
    00362   NZERROR_CIC_ERR_SSL_BUFFERS_NOT_EMPTY = 29023,
    00363   NZERROR_CIC_ERR_SSL_CERTIFICATE_VALIDATE_FAILED = 29024,
    00364   NZERROR_CIC_ERR_SSL_CERT_CHECK_CALLBACK = 29025,
    00365   NZERROR_CIC_ERR_SSL_DECRYPT_FAILED = 29026,
    00366   NZERROR_CIC_ERR_SSL_ENTROPY_COLLECTION = 29027,
    00367   NZERROR_CIC_ERR_SSL_FAIL_SERVER_VERIFY = 29028,
    00368   NZERROR_CIC_ERR_SSL_HANDSHAKE_ALREADY_COMPLETED = 29029,
    00369   NZERROR_CIC_ERR_SSL_HANDSHAKE_REQUESTED = 29030,
    00370   NZERROR_CIC_ERR_SSL_HANDSHAKE_REQUIRED = 29031,
    00371   NZERROR_CIC_ERR_SSL_INCOMPLETE_IDENTITY = 29032,
    00372   NZERROR_CIC_ERR_SSL_INVALID_PFX = 29033,
    00373   NZERROR_CIC_ERR_SSL_NEEDS_CIPHER_OR_CLIENTAUTH = 29034,
    00374   NZERROR_CIC_ERR_SSL_NEEDS_PRNG = 29035,
    00375   NZERROR_CIC_ERR_SSL_NOT_SUPPORTED = 29036,
    00376   NZERROR_CIC_ERR_SSL_NO_CERTIFICATE = 29037,
    00377   NZERROR_CIC_ERR_SSL_NO_MATCHING_CERTIFICATES = 29038,
    00378   NZERROR_CIC_ERR_SSL_NO_MATCHING_CIPHER_SUITES = 29039,
    00379   NZERROR_CIC_ERR_SSL_NO_SUPPORTED_CIPHER_SUITES = 29040,
    00380   NZERROR_CIC_ERR_SSL_NULL_CB = 29041,
    00381   NZERROR_CIC_ERR_SSL_READ_BUFFER_NOT_EMPTY = 29042,
    00382   NZERROR_CIC_ERR_SSL_READ_REQUIRED = 29043,
    00383   NZERROR_CIC_ERR_SSL_RENEGOTIATION_ALREADY_REQUESTED = 29044,
    00384   NZERROR_CIC_ERR_SSL_RENEGOTIATION_REFUSED = 29045,
    00385   NZERROR_CIC_ERR_SSL_RESUMABLE_SESSION = 29046,
    00386   NZERROR_CIC_ERR_SSL_TLS_EXTENSION_MISMATCH = 29047,
    00387   NZERROR_CIC_ERR_SSL_UNEXPECTED_MSG = 29048,
    00388   NZERROR_CIC_ERR_SSL_UNKNOWN_RECORD = 29049,
    00389   NZERROR_CIC_ERR_SSL_UNSUPPORTED_CLIENT_AUTH_MODE = 29050,
    00390   NZERROR_CIC_ERR_SSL_UNSUPPORTED_PUBKEY_TYPE = 29051,
    00391   NZERROR_CIC_ERR_SSL_WRITE_BUFFER_NOT_EMPTY = 29052,
    00392   NZERROR_CIC_ERR_PKCS12_MISSING_ALG = 29053,
    00393   NZERROR_CIC_ERR_PKCS_AUTH_FAILED = 29054,
    00394   NZERROR_CIC_ERR_PKCS_BAD_CONTENT_TYPE = 29055,
    00395   NZERROR_CIC_ERR_PKCS_BAD_INPUT = 29056,
    00396   NZERROR_CIC_ERR_PKCS_BAD_PADDING = 29057,
    00397   NZERROR_CIC_ERR_PKCS_BAD_SN = 29058,
    00398   NZERROR_CIC_ERR_PKCS_BAD_SN_LENGTH = 29059,
    00399   NZERROR_CIC_ERR_PKCS_BAD_VERSION = 29060,
    00400   NZERROR_CIC_ERR_PKCS_BASE = 29061,
    00401   NZERROR_CIC_ERR_PKCS_FIELD_NOT_PRESENT = 29062,
    00402   NZERROR_CIC_ERR_PKCS_NEED_CERTVAL = 29063,
    00403   NZERROR_CIC_ERR_PKCS_NEED_PASSWORD = 29064,
    00404   NZERROR_CIC_ERR_PKCS_NEED_PKC = 29065,
    00405   NZERROR_CIC_ERR_PKCS_NEED_PRV_KEY = 29066,
    00406   NZERROR_CIC_ERR_PKCS_NEED_TRUSTED = 29067,
    00407   NZERROR_CIC_ERR_PKCS_UNSUPPORTED_CERT_FORMAT = 29068,
    00408   NZERROR_CIC_ERR_PKCS_UNSUP_PRVKEY_TYPE = 29069,
    00409   NZERROR_CIC_ERR_CODING_BAD_PEM = 29070,
    00410   NZERROR_CIC_ERR_CODING_BASE = 29071,
    00411   NZERROR_CIC_ERR_DER_BAD_ENCODING = 29072,
    00412   NZERROR_CIC_ERR_DER_BAD_ENCODING_LENGTH = 29073,
    00413   NZERROR_CIC_ERR_DER_BASE = 29074,
    00414   NZERROR_CIC_ERR_DER_ELEMENT_TOO_LONG = 29075,
    00415   NZERROR_CIC_ERR_DER_INDEFINITE_LENGTH = 29076,
    00416   NZERROR_CIC_ERR_DER_NO_MORE_ELEMENTS = 29077,
    00417   NZERROR_CIC_ERR_DER_OBJECT_TOO_LONG = 29078,
    00418   NZERROR_CIC_ERR_DER_TAG_SIZE = 29079,
    00419   NZERROR_CIC_ERR_DER_TIME_OUT_OF_RANGE = 29080,
    00420   NZERROR_CIC_ERR_DER_UNUSED_BITS_IN_BIT_STR = 29081,
    00421   NZERROR_CIC_ERR_GENERAL_BASE = 29082,
    00422   NZERROR_CIC_ERR_HASH_BASE = 29083,
    00423   NZERROR_CIC_ERR_ILLEGAL_PARAM = 29084,
    00424   NZERROR_CIC_ERR_MEM_NOT_OURS = 29085,
    00425   NZERROR_CIC_ERR_MEM_OVERRUN = 29086,
    00426   NZERROR_CIC_ERR_MEM_UNDERRUN = 29087,
    00427   NZERROR_CIC_ERR_MEM_WAS_FREED = 29088,
    00428   NZERROR_CIC_ERR_NOT_FOUND = 29090,
    00429   NZERROR_CIC_ERR_NO_PTR = 29091,
    00430   NZERROR_CIC_ERR_TIMEOUT = 29092,
    00431   NZERROR_CIC_ERR_UNIT_MASK = 29093,
    00432   NZERROR_CIC_ERR_BAD_CTX = 29094,
    00433   NZERROR_CIC_ERR_BAD_INDEX = 29095,
    00434   NZERROR_CIC_ERR_BAD_LENGTH = 29096,
    00435   NZERROR_CIC_ERR_CODING_BAD_ENCODING = 29097,
    00436
    00437   /* ============>>> PKCS12 error 29100 - 29149  */
    00438
    00439   NZERROR_LOCKEYID_CREATE_FAILED = 29100,
    00440   NZERROR_P12_ADD_PVTKEY_FAILED = 29101,
    00441   NZERROR_P12_ADD_CERT_FAILED = 29102,
    00442   NZERROR_P12_WLT_CREATE_FAILED = 29103,
    00443   NZERROR_P12_ADD_CERTREQ_FAILED = 29104,
    00444   NZERROR_P12_WLT_EXP_FAILED = 29105,
    00445   NZERROR_P12_WLT_IMP_FAILED = 29106,
    00446   NZERROR_P12_CREATE_FAILED = 29107,
    00447   NZERROR_P12_DEST_FAILED = 29107,
    00448   NZERROR_P12_RAND_ERROR = 29108,
    00449   NZERROR_P12_PVTKEY_CRT_FAILED = 29109,
    00450   NZERROR_P12_INVALID_BAG = 29110,
    00451   NZERROR_P12_INVALID_INDEX = 29111,
    00452   NZERROR_P12_GET_CERT_FAILED = 29112,
    00453   NZERROR_P12_GET_PVTKEY_FAILED = 29113,
    00454   NZERROR_P12_IMP_PVTKEY_FAILED = 29114,
    00455   NZERROR_P12_EXP_PVTKEY_FAILED = 29115,
    00456   NZERROR_P12_GET_ATTRIB_FAILED = 29116,
    00457   NZERROR_P12_ADD_ATTRIB_FAILED = 29117,
    00458   NZERROR_P12_CRT_ATTRIB_FAILED = 29118,
    00459   NZERROR_P12_IMP_CERT_FAILED = 29119,
    00460   NZERROR_P12_EXP_CERT_FAILED = 29120,
    00461   NZERROR_P12_ADD_SECRET_FAILED = 29121,
    00462   NZERROR_P12_ADD_PKCS11INFO_FAILED = 29122,
    00463   NZERROR_P12_GET_PKCS11INFO_FAILED = 29123,
    00464   NZERROR_P12_MULTIPLE_PKCS11_LIBNAME = 29124,
    00465   NZERROR_P12_MULTIPLE_PKCS11_TOKENLABEL = 29125,
    00466   NZERROR_P12_MULTIPLE_PKCS11_TOKENPASSPHRASE = 29126,
    00467   NZERROR_P12_UNKNOWN_PKCS11INFO = 29127,
    00468   NZERROR_P12_PKCS11_LIBNAME_NOT_SET = 29128,
    00469   NZERROR_P12_PKCS11_TOKENLABEL_NOT_SET = 29129,
    00470   NZERROR_P12_PKCS11_TOKENPASSPHRASE_NOT_SET = 29130,
    00471
    00472 /* ===========>>> SSL Errors CONTINUED 29135 - 29139 */
    00473   NZERROR_CIC_ERR_RANDOM = 29135,
    00474   NZERROR_CIC_ERR_SMALL_BUFFER = 29136,
    00475   NZERROR_CIC_ERR_SSL_BAD_CONTEXT = 29137,
    00476
    00477 /* ==========>>> Mutex Errors 29138 - 29139 */
    00478   NZERROR_MUTEX_INITIALIZE_FAILED = 29138,
    00479   NZERROR_MUTEX_DESTROY_FAILED = 29139,
    00480
    00481
    00482 /* ============>>> EXTENSIONS Errors 29140 - 29149 */
    00483   NZERROR_BS_CERTOBJ_CREAT_FAILED = 29140,
    00484   NZERROR_BS_DER_IMP_FAILED = 29141,
    00485
    00486
    00487 /* ============>>> FIPS ERRORS 29150 - 29175 */
    00488   NZERROR_DES_SELF_TEST_FAILED = 29150,
    00489   NZERROR_3DES_SELF_TEST_FAILED = 29151,
    00490   NZERROR_SHA_SELF_TEST_FAILED = 29152,
    00491   NZERROR_RSA_SELF_TEST_FAILED = 29153,
    00492   NZERROR_DRNG_SELF_TEST_FAILED = 29154,
    00493   NZERROR_CKEYPAIR_SELF_TEST_FAILED = 29155,
    00494   NZERROR_CRNG_SELF_TEST_FAILED = 29156,
    00495   NZERROR_FIPS_PATHNAME_ERROR = 29157,
    00496   NZERROR_FIPS_LIB_OPEN_FAILED = 29158,
    00497   NZERROR_FIPS_LIB_READ_ERROR = 29159,
    00498   NZERROR_FIPS_LIB_DIFFERS = 29160,
    00499   NZERROR_DAC_SELF_TEST_FAILED = 29161,
    00500   NZERROR_NONFIPS_CIPHERSUITE = 29162,
    00501   NZERROR_VENDOR_NOT_SUPPORTED_FIPS_MODE = 29163,
    00502   NZERROR_EXTERNAL_PKCS12_NOT_SUPPORTED_FIPS_MODE = 29164,
    00503
    00504 /* ============>>> CRL ERRORS 29176 - 29200 */
    00505   NZERROR_CRL_SIG_VERIFY_FAILED = 29176, /*CRL signature verification failed*/
    00506   NZERROR_CERT_NOT_IN_CRL = 29177,
    00507                                  /*Cert is not in CRL - cert is not revoked*/
    00508   NZERROR_CERT_IN_CRL = 29178,           /*Cert is in CRL - cert is revoked*/
    00509   NZERROR_CERT_IN_CRL_CHECK_FAILED = 29179, /*Cert revocation check failed */
    00510   NZERROR_INVALID_CERT_STATUS_PROTOCOL = 29180,
    00511   NZERROR_LDAP_OPEN_FAILED = 29181,  /* ldap_open failed */
    00512   NZERROR_LDAP_BIND_FAILED = 29182,  /* ldap_bind failed */
    00513   NZERROR_LDAP_SEARCH_FAILED = 29183,  /* ldap_search failed */
    00514   NZERROR_LDAP_RESULT_FAILED = 29184,  /* ldap_result failed */
    00515   NZERROR_LDAP_FIRSTATTR_FAILED = 29185,  /* ldap_first_attribute failed */
    00516   NZERROR_LDAP_GETVALUESLEN_FAILED = 29186,  /* ldap_get_values_len failed */
    00517   NZERROR_LDAP_UNSUPPORTED_VALMEC = 29187,
    00518                                        /* unsupported validation mechanism */
    00519   NZERROR_LDAP_COUNT_ENTRIES_FAILED = 29188,/* ldap_count_entries failed */
    00520   NZERROR_LDAP_NO_ENTRY_FOUND = 29189, /* No entry found in OID */
    00521   NZERROR_LDAP_MULTIPLE_ENTRIES_FOUND = 29190, /* Multiple entries in OID*/
    00522   NZERROR_OID_INFO_NOT_SET = 29191,
    00523   NZERROR_LDAP_VALMEC_NOT_SET = 29192,
    00524                                      /* Validation mechanism not set in OID*/
    00525   NZERROR_CRLDP_NO_CRL_FOUND = 29193,
    00526                                      /* No CRL found using CRLDP mechanism */
    00527   NZERROR_CRL_NOT_IN_CACHE = 29194,  /* No CRL found in the cache*/
    00528   NZERROR_CRL_EXPIRED = 29195,       /* CRL nextUpdate time is in the past */
    00529
    00530 /* ============>>>  ADD ERRORS HERE -- NOTE DECREASING numbers */
    00531   NZERROR_DN_MATCH  =            29222,  /* for nztCompareDN */
    00532   NZERROR_CERT_CHAIN_CREATION  = 29223,  /* unable to create a cert chain
    00533                                                          * with the existing TPs for the
    00534                                                          * cert to be installed.
    00535                                                          */
    00536   NZERROR_NO_MATCHING_CERT_REQ = 29224,  /* No matching cert_req was
    00537                                                          * found the corresponding to
    00538                                                          * the privatekey which
    00539                                                          * matches the cert to be
    00540                                                          * installed */
    00541   NZERROR_CERT_ALREADY_INSTALLED = 29225, /* we are attempting to
    00542                                                           * install a cert again into
    00543                                                           * a persona which already
    00544                                                           * has it installed.
    00545                                                           */
    00546   NZERROR_NO_MATCHING_PRIVATE_KEY = 29226, /* could not find a matching
    00547                                                            * persona-private(privatekey) in
    00548                                                            * the Persona, for the given
    00549                                                            * cert(public key).
    00550                                                            */
    00551   NZERROR_VALIDITY_EXPIRED = 29227, /* certificate validity date expired */
    00552   NZERROR_TK_BYTES_NEEDED = 29228,   /* Couldn't determine # of bytes needed */
    00553   NZERROR_TK_BAD_MAGIC_NUMBER = 29229,
    00554                      /* Magic number found in header does not match expected */
    00555   NZERROR_TK_BAD_HEADER_LENGTH = 29230,
    00556                 /* Header length passed in not sufficient for message header */
    00557   NZERROR_TK_CE_INIT = 29231,          /* Crypto engine failed to initialize */
    00558   NZERROR_TK_CE_KEYINIT = 29232,  /* Crypto engine key initialization failed */
    00559   NZERROR_TK_CE_ENCODE_KEY = 29233,           /* Count not encode key object */
    00560   NZERROR_TK_CE_DECODE_KEY = 29234,      /* Could not decode key into object */
    00561   NZERROR_TK_CE_GEYKEYINFO = 29235,  /* Crypto engine failed to get key info */
    00562   NZERROR_TK_SEED_RANDOM = 29236,   /* Couldn't seed random number generator */
    00563   NZERROR_TK_CE_ALGFINISH = 29237,              /* Couldn't finish algorithm */
    00564   NZERROR_TK_CE_ALGAPPLY = 29238,        /* Couldn't apply algorithm to data */
    00565   NZERROR_TK_CE_ALGINIT = 29239,           /* Couldn't init CE for algorithm */
    00566   NZERROR_TK_ALGORITHM = 29240,      /* Have no idea what algorithm you want */
    00567   NZERROR_TK_CANNOT_GROW = 29241,         /* Cannot grow output buffer block */
    00568   NZERROR_TK_KEYSIZE = 29242,               /* Key not large enough for data */
    00569   NZERROR_TK_KEYTYPE = 29243,                           /* Unknown key type. */
    00570
    00571   NZERROR_TK_PLSQL_NO_WRL = 29244,
    00572                  /* Wallet resource locator not specified to PL/SQL function */
    00573
    00574   NZERROR_TK_CE_FUNC = 29245,              /* Unknown crypto engine function */
    00575   NZERROR_TK_TDU_FORMAT = 29246,                       /* Unknown TDU format */
    00576   NZERROR_TK_NOTOPEN = 29247,                         /* Object must be open */
    00577   NZERROR_TK_WRLTYPE = 29248,                                /* Bad WRL type */
    00578   NZERROR_TK_CE_STATE = 29249,  /* Bad state specified for the crypto engine */
    00579
    00580   /* After 29249, use error numbers in block 43000 - 43499 */
    00581   NZERROR_PKCS11_LIBRARY_NOT_FOUND = 43000, /* PKCS #11 library not found */
    00582   NZERROR_PKCS11_TOKEN_NOT_FOUND = 43001,
    00583                                          /* can't find token with given label*/
    00584   NZERROR_PKCS11_BAD_PASSPHRASE = 43002,  /* passphrase is incorrect/expired */
    00585   NZERROR_PKCS11_GET_FUNC_LIST = 43003,  /* C_GetFunctionList returned error */
    00586   NZERROR_PKCS11_INITIALIZE = 43004,     /* C_Initialize returned error */
    00587   NZERROR_PKCS11_NO_TOKENS_PRESENT = 43005, /* No tokens present */
    00588   NZERROR_PKCS11_GET_SLOT_LIST = 43006,  /* C_GetSlotList returned error */
    00589
    00590   NZERROR_PKCS11_GET_TOKEN_INFO = 43008,  /* C_GetTokenInfo returned error */
    00591   NZERROR_PKCS11_SYMBOL_NOT_FOUND = 43009, /* Symbol not found in PKCS11 lib */
    00592
    00593   NZERROR_PKCS11_TOKEN_LOGIN_FAILED = 43011, /* Token login failed */
    00594
    00595   NZERROR_PKCS11_CHANGE_PROVIDERS_ERROR = 43013, /* Change providers error */
    00596   NZERROR_PKCS11_GET_PRIVATE_KEY_ERROR = 43014,
    00597                               /* Error trying to find private key on token */
    00598   NZERROR_PKCS11_CREATE_KEYPAIR_ERROR = 43015, /* Key pair gen error */
    00599   NZERROR_PKCS11_WALLET_CONTAINS_P11_INFO = 43016, /* Wallet already contains
    00600                                                       pkcs11 info */
    00601
    00602   /* RSA ERRORS 43050 - 43059 */
    00603   NZERROR_BIND_SERVICE_ERROR = 43050,    /* C_BindService returned error */
    00604   NZERROR_CREATE_KEY_OBJ_ERROR = 43051,  /* B_CreateKeyObject returned error */
    00605   NZERROR_GET_CERT_FIELDS = 43052,       /* C_GetCertFields returned error */
    00606   NZERROR_CREATE_PKCS10_OBJECT = 43053,
    00607                                       /* C_CreatePKCS10Object returned error */
    00608   NZERROR_SET_PKCS10_FIELDS = 43054,     /* C_SetPKCS10Fields returned error */
    00609   NZERROR_SIGN_CERT_REQUEST = 43055,     /* C_SignCertRequest returned error */
    00610   NZERROR_GET_PKCS10_DER = 43056,        /* C_GetPKCS10DER returned error */
    00611   NZERROR_INITIALIZE_CERTC = 43057,      /* C_InitializeCertC returned error */
    00612   NZERROR_INSERT_PRIVATE_KEY = 43058,   /* C_InsertPrivateKey returned error */
    00613   /* slts ERRORS 43060 - 43069 */
    00614   NZERROR_SLTSCTX_INIT_FAILED = 43060,    /* sltsini() returned error */
    00615   NZERROR_SLTSKYC_FAILED = 43061,         /* sltskyc() returned error */
    00616   NZERROR_SLTSCTX_TERM_FAILED = 43062,    /* sltster() returned error */
    00617   NZERROR_SLTSKYS_FAILED = 43063,         /* sltskys() returned error */
    00618
    00619   NZERROR_INVALID_HEADER_LENGTH = 43070,       /* bad sso header length */
    00620
    00621   NZERROR_LAST_ERROR = 43499,                        /* Last available error */
    00622                                             /* MAXIMUM ERROR NUMBER IS 43499 */
    00623
    00624   /*
    00625    * DO NOT JUST INSERT NEW ERRORS IN ANY OLD PLACE.  New errors should be
    00626    * added such the current error retains their integer values. Duplicate
    00627    * values will cause compiler errors.
    00628    */
    00629   NZERROR_THIS_MUST_BE_LAST
    00630
    00631 } nzerror;
    00632
    00633 /*
    00634  * Macro to convert SSL errors to Oracle errors. As SSL errors are negative
    00635  * and Oracle numbers are positive, the following needs to be done.
    00636  * 1. The base error number, which is the highest, is added to the
    00637  *    SSL error to get the index into the number range.
    00638  * 2. The result is added to the base Oracle number to get the Oracle error.
    00639  */
    00640 #define NZERROR_SSL_TO_ORACLE(ssl_error_) \
    00641   ((ssl_error_ == SSLNoErr) \
    00642    ? NZERROR_OK \
    00643    : (nzerror) ((ssl_error_ - SSLMemoryErr) + (uword) NZERROR_SSLMemoryErr))
    00644 #endif /* NZERROR_ORACLE */

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines