nzerror.inc 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. {
  2. Automatically converted by H2Pas 1.0.0 from nzerror.h
  3. The following command line parameters were used:
  4. -p
  5. -D
  6. -l
  7. jojo.so
  8. nzerror.h
  9. }
  10. {$PACKRECORDS C}
  11. { DISABLE check_long_lines }
  12. {
  13. * $Header: nzerror.h 30-jan-2005.21:20:26 skalyana Exp $
  14. *
  15. * Copyright (c) 1995, 2005, Oracle. All rights reserved.
  16. }
  17. { ENABLE check_long_lines }
  18. {
  19. NAME
  20. nzerror.h - error numbers for the Oracle Security Server
  21. DESCRIPTION
  22. None.
  23. PUBLIC FUNCTION(S)
  24. None.
  25. PRIVATE FUNCTION(S)
  26. None.
  27. NOTES
  28. A pragma is used to silence olint about the enum value names not being
  29. unique within 7 characters. This limit is being changed to 30.
  30. MODIFIED
  31. skalyana 01/30/05 -
  32. rchahal 07/16/04 - add cert label
  33. rchahal 07/06/04 -
  34. rchahal 10/15/03 - bug 2513821
  35. rchahal 08/14/03 - new error range (43000 - 43499)
  36. skalyana 08/25/03 - Error changes
  37. rchahal 06/27/03 - RSA errors
  38. rchahal 05/27/03 - convert wallet
  39. skalyana 03/07/03 - Move FIPS errors
  40. rchahal 02/28/03 - bug 2648177
  41. rchahal 01/20/03 - use sltsky
  42. rchahal 11/11/02 - pkcs11 support
  43. skalyana 11/29/02 - Add mutex errors
  44. akoyfman 11/01/02 - adding crl cache
  45. rchahal 10/23/02 - crldp error
  46. rchahal 10/15/02 - fetch crl from ldap
  47. rchahal 10/07/02 - crl support
  48. akoyfman 10/16/02 - Update with SSL PLus 4.2 errors
  49. skalyana 10/04/02 - Certicom SSL Plus 4.2 Upgrade changes
  50. akoyfman 08/06/02 - adding sso wallet errors
  51. akoyfman 07/12/02 - adding secret store errors
  52. skalyana 07/07/02 - Add more errors for FIPS self tests
  53. skalyana 07/01/02 - Add more errors
  54. skalyana 06/03/02 - Add NZ error for self test failure.
  55. ajacobs 02/22/01 - Add some entrust errors
  56. vle 02/09/01 - add error mesg
  57. lkethana 08/11/00 - Extension Errors
  58. lkethana 07/30/00 - add pkcs12 errors
  59. lkethana 06/17/00 - mult cert errors
  60. lkethana 06/11/00 - multiple cert support
  61. rturlapa 03/29/00 - Add error meesage for Entrust Login failure.
  62. rwessman 07/07/99 - Deleted include of sslerrs.h. It caused the RDBMS bu
  63. rwessman 07/02/99 - fixed merge errors
  64. rwessman 07/01/99 - moved NZOS errors to nzerror to make them visible
  65. supriya 12/16/98 - add new error for cert chain.
  66. arswamin 12/04/98 - add NZERROR_NO_MATCHING_PRIVATE_KEY
  67. qdinh 11/12/98 - add NZERROR_VALIDITY_EXPIRED.
  68. arswamin 06/17/98 - add INIT_FAILED
  69. sdange 06/10/98 - change wrong password to bad password
  70. amthakur 06/09/98 - adding error messages
  71. wliau 03/10/97 - Add new error message for snzdfo.c.
  72. rwessman 03/14/97 - Consolidated PL/SQL toolkit errors into generic erro
  73. rwessman 02/26/97 - Added NZERROR_UNSUPPORTED. Corrected values of
  74. errors outside the valid range.
  75. asriniva 03/02/97 - Fix olint warning
  76. rwessman 02/26/97 - Added NZERROR_UNSUPPORTED
  77. rwessman 01/02/97 - Changed PLSQL package errors to be TK_PLSQL to
  78. separate them from the errors generated by the
  79. Oracle interface.
  80. rwessman 12/30/96 - Merged in PL/SQL toolkit errors
  81. sdange 11/14/96 - (Added NZERROR_DECRYPT_FAILED to the enum list)
  82. rwessman 12/02/96 -
  83. rwessman 11/25/96 - Added error messages for PL/SQL functions.
  84. asriniva 10/31/96 - Include oratypes.h
  85. asriniva 10/29/96 - Fix numbering.
  86. asriniva 10/29/96 - Fix error numbers
  87. asriniva 10/29/96 - Correct type-o
  88. asriniva 10/28/96 - Add more TK errors
  89. asriniva 10/28/96 - Convert OKAPI errors to TK errors.
  90. rwessman 10/17/96 - still more OSS TK errors
  91. asriniva 10/16/96 - OKAPI errors
  92. asriniva 10/15/96 - OSSTK errors
  93. rwessman 10/15/96 - Added more OSS TK errors
  94. asriniva 10/09/96 - Add OSSTK errors.
  95. rwessman 09/05/96 - Added errors for PL/SQL functions.
  96. wliau 09/05/96 - correct error numbers.
  97. $Log: $
  98. * Revision 1.26 1996/07/15 23:07:23 wliau
  99. * Added NZERROR_AUTH_SHARED_MEMORY
  100. *
  101. * Revision 1.25 1996/07/01 20:40:15 asriniva
  102. * Finished RSA verify/sign.
  103. *
  104. * Revision 1.24 1996/06/27 20:39:41 rwessman
  105. * Added more errors.
  106. *
  107. * Revision 1.23 1996/05/31 17:33:40 rwessman
  108. * Updated nzerror.h to contain bug # for olint enum bug.
  109. *
  110. * Revision 1.22 1996/05/31 17:12:30 rwessman
  111. * Assigned values to the various errors.
  112. *
  113. * Revision 1.21 1996/05/13 20:46:58 ggilchri
  114. * Added more attribute related error conditions
  115. *
  116. }
  117. { ORATYPES }
  118. {
  119. ** Errors - when an error is added here, a message corresponding to the
  120. ** error number must be added to the message file.
  121. ** New errors must be assigned numbers, otherwise the compiler can assign any
  122. ** value that it wants, which may lead to invalid error numbers being
  123. ** generated.
  124. ** The number range currently assigned to the OSS is 28750 - 29249
  125. ** New number range 43000 - 43499
  126. }
  127. { A catchall for errors }
  128. { No more memory }
  129. { Failed to init data source }
  130. { Failed to terminate data source }
  131. { Store object in data source failed }
  132. { Failed to obtain object from data source }
  133. { Callback failed to allocate memory }
  134. { Attempted to ask for 0 bytes of memory }
  135. { Callback failed to free memory }
  136. { Open of file failed }
  137. { Creation of list failed }
  138. { No list element found }
  139. { Addition of list element failed }
  140. { Retrieval of an unknown parameter type }
  141. { Retrieval of parameter failed }
  142. { Data method list does not exist }
  143. { Failed to terminate }
  144. { Bad version number }
  145. { Bad magic number }
  146. { Data retrieval method specified does not exist }
  147. {The data source is already initialized }
  148. { The data source is not initialized }
  149. { File ID is bad }
  150. { Failed to write magic and version }
  151. { Failed to write to file }
  152. { Failed to close file }
  153. { The buffer supplied by the caller is too small }
  154. { NL failed in creating a binding }
  155. { A parameter was in a bad format }
  156. { No method was specified for a data type }
  157. { Illegal method for data type }
  158. { No method specified when required }
  159. { Data source is not allocated }
  160. { Invalid parameter name }
  161. { Could not translate OSD file name }
  162. { Selected parameter is non-existent }
  163. { Encrypted private key decryption failure } { Private key encryption failed }
  164. { Incorrect input or unknown error } { Type of name requested is not available }
  165. { Failure to generate an NLS string }
  166. { Failed to verify a certificate }
  167. { an OCI call to process some plsql failed }
  168. { an OCI call to bind an internal var. failed }
  169. { failed to init role retrieval }
  170. { Did not complete role retrieval }
  171. { Data method specified not supported }
  172. { Invalid data type specified for key }
  173. { Number of sub-keys to bind does not match count in initialized key }
  174. { Failed to retreieve authentication information from the shared memory }
  175. { RIO Open Failed }
  176. { RIO object type invalid }
  177. { RIO mode invalid }
  178. { RIO io set or numberinvalid }
  179. { RIO close failed }
  180. { RIO retrieve failed }
  181. { RIO store failed }
  182. { RIO update failed }
  183. { RIO info failed }
  184. { RIO delete failed }
  185. { Key descriptor create failed }
  186. { access descriptor invalid }
  187. { record invalid }
  188. { record type and AD type not matched }
  189. { A number passed to PL/SQL could not be converted to real format }
  190. { A number in machine format could not be converted to Oracle format }
  191. { A password was not provided to a PL/SQL function }
  192. { A PL/SQL function returned an error }
  193. { The package context was not specified to a PL/SQL function }
  194. { The user's distinguished name was not provided to a PL/SQL function }
  195. { The state of either a signature or decryption/encryption was not provided }
  196. { An input buffer was specified to a PL/SQL function }
  197. { No seed was specified to the PL/SQL seed initialization function }
  198. { Number of bytes was not specified to the PL/SQL random number generator }
  199. { Invalid encryption/decryption/signature state passed }
  200. { No crypto engine function was passed in }
  201. { An invalid crypto engine function was passed in }
  202. { An invalid cipher type was passed in }
  203. { An invalid identity type was specified }
  204. { No cipher type was specified }
  205. { No identity type was specified }
  206. { No data unit format was specified }
  207. { Invalid data unit format was provided to function }
  208. { Not enough info (usually parameters) provided to a PL/SQL function }
  209. { Buffer provided by PL/SQL is too small for data to be returned }
  210. { Identity descriptor not present or too small }
  211. { Wallet has not been opened yet }
  212. { No wallet descriptor specified to PL/SQL function }
  213. { No identity descriptor specified to PL/SQL function }
  214. { No persona descriptor was specified to PL/SQL function }
  215. { Wallet was already opened }
  216. { Operation is not supported }
  217. { Bad file permission specified }
  218. { OSD error when opening file }
  219. { cert + privkey + tp files do not exist }
  220. { no certificate }
  221. { no private-key }
  222. { no clear key-file }
  223. { no encrypted priv key }
  224. { no trustpoints }
  225. { no clear trustpoints }
  226. { no encrypted trustpoints }
  227. { bad password }
  228. { init failed or
  229. module loading failed }
  230. {****************************** SSL ERRORS ******************************* }
  231. {
  232. * In order to allow SSL errors to be mapped to Oracle errors, space is
  233. * provided here. One Oracle error is provided for each SSL error to make
  234. * error handling easier. A macro is provided to do the conversion.
  235. * NOTE: ANY CHANGE IN SSL ERRORS MUST BE REFLECTED HERE.
  236. * To add an SSL error, use the following formula to calculate the Oracle
  237. * error:
  238. * new_oracle_error = (new_ssl_error - SSLMemoryError) + NZERROR_SSLMemoryErr
  239. * or numerically:
  240. * new_oracle_error = (new_ssl_error - -7000) + 28854
  241. }
  242. { ============>>> ENTRUST ERRORS }
  243. { ============>>> NZERRORS CONTINUED }
  244. { ============>>> PKI VENDORS ERRORS 29050 - 29099 }
  245. { ============>>> SSL Errors CONTINUED }
  246. { ============>>> PKCS12 error 29100 - 29149 }
  247. { ===========>>> SSL Errors CONTINUED 29135 - 29139 }
  248. { ==========>>> Mutex Errors 29138 - 29139 }
  249. { ============>>> EXTENSIONS Errors 29140 - 29149 }
  250. { ============>>> FIPS ERRORS 29150 - 29175 }
  251. { ============>>> CRL ERRORS 29176 - 29200 }
  252. {CRL signature verification failed } {Cert is not in CRL - cert is not revoked } {Cert is in CRL - cert is revoked } {Cert revocation check failed } { ldap_open failed }
  253. { ldap_bind failed }
  254. { ldap_search failed }
  255. { ldap_result failed }
  256. { ldap_first_attribute failed }
  257. { ldap_get_values_len failed }
  258. { unsupported validation mechanism }
  259. { ldap_count_entries failed }
  260. { No entry found in OID }
  261. { Multiple entries in OID }
  262. { Validation mechanism not set in OID }
  263. { No CRL found using CRLDP mechanism }
  264. { No CRL found in the cache }
  265. { CRL nextUpdate time is in the past }
  266. { ============>>> ADD ERRORS HERE -- NOTE DECREASING numbers }
  267. { for nztCompareDN }
  268. { unable to create a cert chain
  269. * with the existing TPs for the
  270. * cert to be installed.
  271. }
  272. { No matching cert_req was
  273. * found the corresponding to
  274. * the privatekey which
  275. * matches the cert to be
  276. * installed }
  277. { we are attempting to
  278. * install a cert again into
  279. * a persona which already
  280. * has it installed.
  281. }
  282. { could not find a matching
  283. * persona-private(privatekey) in
  284. * the Persona, for the given
  285. * cert(public key).
  286. }
  287. { certificate validity date expired }
  288. { Couldn't determine # of bytes needed }
  289. { Magic number found in header does not match expected }
  290. { Header length passed in not sufficient for message header }
  291. { Crypto engine failed to initialize }
  292. { Crypto engine key initialization failed }
  293. { Count not encode key object }
  294. { Could not decode key into object }
  295. { Crypto engine failed to get key info }
  296. { Couldn't seed random number generator }
  297. { Couldn't finish algorithm }
  298. { Couldn't apply algorithm to data }
  299. { Couldn't init CE for algorithm }
  300. { Have no idea what algorithm you want }
  301. { Cannot grow output buffer block }
  302. { Key not large enough for data }
  303. { Unknown key type. }
  304. { Wallet resource locator not specified to PL/SQL function }
  305. { Unknown crypto engine function }
  306. { Unknown TDU format }
  307. { Object must be open }
  308. { Bad WRL type }
  309. { Bad state specified for the crypto engine }
  310. { After 29249, use error numbers in block 43000 - 43499 }
  311. { PKCS #11 library not found }
  312. { can't find token with given label }
  313. { passphrase is incorrect/expired }
  314. { C_GetFunctionList returned error }
  315. { C_Initialize returned error }
  316. { No tokens present }
  317. { C_GetSlotList returned error }
  318. { C_GetTokenInfo returned error }
  319. { Symbol not found in PKCS11 lib }
  320. { Token login failed }
  321. { Change providers error }
  322. { Error trying to find private key on token }
  323. { Key pair gen error }
  324. { Wallet already contains
  325. pkcs11 info }
  326. { No cert found on token }
  327. {No user cert found on token }
  328. {No cert found on token with given certificate label. }
  329. {Multiple certs found on token with given certificate label. }
  330. {Cert with given cert is not a user cert because no corresponding pvt key found on token }
  331. { RSA ERRORS 43050 - 43059 }
  332. { C_BindService returned error }
  333. { B_CreateKeyObject returned error }
  334. { C_GetCertFields returned error }
  335. { C_CreatePKCS10Object returned error }
  336. { C_SetPKCS10Fields returned error }
  337. { C_SignCertRequest returned error }
  338. { C_GetPKCS10DER returned error }
  339. { C_InitializeCertC returned error }
  340. { C_InsertPrivateKey returned error }
  341. { RSA error. See trace output }
  342. { slts ERRORS 43060 - 43069 }
  343. { sltsini() returned error }
  344. { sltskyc() returned error }
  345. { sltster() returned error }
  346. { sltskys() returned error }
  347. { bad sso header length }
  348. { wallet not empty }
  349. { Last available error }
  350. { MAXIMUM ERROR NUMBER IS 43499 }
  351. {
  352. * DO NOT JUST INSERT NEW ERRORS IN ANY OLD PLACE. New errors should be
  353. * added such the current error retains their integer values. Duplicate
  354. * values will cause compiler errors.
  355. }
  356. type
  357. Pnzerror = ^nzerror;
  358. nzerror = (NZERROR_OK := 0,NZERROR_GENERIC := 28750,
  359. NZERROR_NO_MEMORY := 28751,NZERROR_DATA_SOURCE_INIT_FAILED := 28752,
  360. NZERROR_DATA_SOURCE_TERM_FAILED := 28753,
  361. NZERROR_OBJECT_STORE_FAILED := 28754,NZERROR_OBJECT_GET_FAILED := 28755,
  362. NZERROR_MEMORY_ALLOC_FAILED := 28756,NZERROR_MEMORY_ALLOC_0_BYTES := 28757,
  363. NZERROR_MEMORY_FREE_FAILED := 28758,NZERROR_FILE_OPEN_FAILED := 28759,
  364. NZERROR_LIST_CREATION_FAILED := 28760,
  365. NZERROR_NO_ELEMENT := 28761,NZERROR_ELEMENT_ADD_FAILED := 28762,
  366. NZERROR_PARAMETER_BAD_TYPE := 28763,NZERROR_PARAMETER_RETRIEVAL := 28764,
  367. NZERROR_NO_LIST := 28765,NZERROR_TERMINATE_FAIL := 28766,
  368. NZERROR_BAD_VERSION_NUMBER := 28767,NZERROR_BAD_MAGIC_NUMBER := 28768,
  369. NZERROR_METHOD_NOT_FOUND := 28769,NZERROR_ALREADY_INITIALIZED := 28770,
  370. NZERROR_NOT_INITIALIZED := 28771,NZERROR_BAD_FILE_ID := 28772,
  371. NZERROR_WRITE_MAGIC_VERSION := 28773,NZERROR_FILE_WRITE_FAILED := 28774,
  372. NZERROR_FILE_CLOSE_FAILED := 28775,NZERROR_OUTPUT_BUFFER_TOO_SMALL := 28776,
  373. NZERROR_BINDING_CREATION_FAILED := 28777,
  374. NZERROR_PARAMETER_MALFORMED := 28778,NZERROR_PARAMETER_NO_METHOD := 28779,
  375. NZERROR_BAD_PARAMETER_METHOD := 28780,
  376. NZERROR_PARAMETER_NO_DATA := 28781,NZERROR_NOT_ALLOCATED := 28782,
  377. NZERROR_INVALID_PARAMETER := 28783,NZERROR_FILE_NAME_TRANSLATION := 28784,
  378. NZERROR_NO_SUCH_PARAMETER := 28785,NZERROR_DECRYPT_FAILED := 28786,
  379. NZERROR_ENCRYPT_FAILED := 28787,NZERROR_INVALID_INPUT := 28788,
  380. NZERROR_NAME_TYPE_NOT_FOUND := 28789,NZERROR_NLS_STRING_OPEN_FAILED := 28790,
  381. NZERROR_CERTIFICATE_VERIFY := 28791,NZERROR_OCI_PLSQL_FAILED := 28792,
  382. NZERROR_OCI_BIND_FAILED := 28793,NZERROR_ATTRIBUTE_INIT := 28794,
  383. NZERROR_ATTRIBUTE_FINISH_FAILED := 28795,
  384. NZERROR_UNSUPPORTED_METHOD := 28796,NZERROR_INVALID_KEY_DATA_TYPE := 28797,
  385. NZEROR_BIND_SUBKEY_COUNT := 28798,NZERROR_AUTH_SHARED_MEMORY := 28799,
  386. NZERROR_RIO_OPEN := 28800,NZERROR_RIO_OBJECT_TYPE := 28801,
  387. NZERROR_RIO_MODE := 28802,NZERROR_RIO_IO := 28803,
  388. NZERROR_RIO_CLOSE := 28804,NZERROR_RIO_RETRIEVE := 28805,
  389. NZERROR_RIO_STORE := 28806,NZERROR_RIO_UPDATE := 28807,
  390. NZERROR_RIO_INFO := 28808,NZERROR_RIO_DELETE := 28809,
  391. NZERROR_KD_CREATE := 28810,NZERROR_RIO_ACCESS_DESCRIPTOR := 28811,
  392. NZERROR_RIO_RECORD := 28812,NZERROR_RIO_RECORD_TYPE := 28813,
  393. NZERROR_PLSQL_ORACLE_TO_REAL := 28814,
  394. NZERROR_PLSQL_REAL_TO_ORACLE := 28815,
  395. NZERROR_TK_PLSQL_NO_PASSWORD := 28816,
  396. NZERROR_TK_PLSQL_GENERIC := 28817,NZERROR_TK_PLSQL_NO_CONTEXT := 28818,
  397. NZERROR_TK_PLSQL_NO_DIST_NAME := 28819,
  398. NZERROR_TK_PLSQL_NO_STATE := 28820,NZERROR_TK_PLSQL_NO_INPUT := 28821,
  399. NZERROR_TK_PLSQL_NO_SEED := 28822,NZERROR_TK_PLSQL_NO_BYTES := 28823,
  400. NZERROR_TK_INVALID_STATE := 28824,NZERROR_TK_PLSQL_NO_ENG_FUNC := 28825,
  401. NZERROR_TK_INV_ENG_FUNC := 28826,NZERROR_TK_INV_CIPHR_TYPE := 28827,
  402. NZERROR_TK_INV_IDENT_TYPE := 28828,NZERROR_TK_PLSQL_NO_CIPHER_TYPE := 28829,
  403. NZERROR_TK_PLSQL_NO_IDENT_TYPE := 28830,
  404. NZERROR_TK_PLSQL_NO_DATA_FMT := 28831,
  405. NZERROR_TK_INV_DATA_FMT := 28832,NZERROR_TK_PLSQL_INSUFF_INFO := 28833,
  406. NZERROR_TK_PLSQL_BUF_TOO_SMALL := 28834,
  407. NZERROR_TK_PLSQL_INV_IDENT_DESC := 28835,
  408. NZERROR_TK_PLSQL_WALLET_NOTOPEN := 28836,
  409. NZERROR_TK_PLSQL_NO_WALLET := 28837,NZERROR_TK_PLSQL_NO_IDENTITY := 28838,
  410. NZERROR_TK_PLSQL_NO_PERSONA := 28839,NZERROR_TK_PLSQL_WALLET_OPEN := 28840,
  411. NZERROR_UNSUPPORTED := 28841,NZERROR_FILE_BAD_PERMISSION := 28842,
  412. NZERROR_FILE_OSD_ERROR := 28843,NZERROR_NO_WALLET := 28844,
  413. NZERROR_NO_CERTIFICATE_ALERT := 28845,
  414. NZERROR_NO_PRIVATE_KEY := 28846,NZERROR_NO_CLEAR_PRIVATE_KEY_FILE := 28847,
  415. NZERROR_NO_ENCRYPTED_PRIVATE_KEY_FILE := 28848,
  416. NZERROR_NO_TRUSTPOINTS := 28849,NZERROR_NO_CLEAR_TRUSTPOINT_FILE := 28850,
  417. NZERROR_NO_ENCRYPTED_TRUSTPOINT_FILE := 28851,
  418. NZERROR_BAD_PASSWORD := 28852,NZERROR_INITIALIZATION_FAILED := 28853,
  419. NZERROR_SSLMemoryErr := 28854,NZERROR_SSLUnsupportedErr := 28855,
  420. NZERROR_SSLOverflowErr := 28856,NZERROR_SSLUnknownErr := 28857,
  421. NZERROR_SSLProtocolErr := 28858,NZERROR_SSLNegotiationErr := 28859,
  422. NZERROR_SSLFatalAlert := 28860,NZERROR_SSLWouldBlockErr := 28861,
  423. NZERROR_SSLIOErr := 28862,NZERROR_SSLSessionNotFoundErr := 28863,
  424. NZERROR_SSLConnectionClosedGraceful := 28864,
  425. NZERROR_SSLConnectionClosedError := 28865,
  426. NZERROR_ASNBadEncodingErr := 28866,NZERROR_ASNIntegerTooBigErr := 28867,
  427. NZERROR_X509CertChainInvalidErr := 28868,
  428. NZERROR_X509CertExpiredErr := 28869,NZERROR_X509NamesNotEqualErr := 28870,
  429. NZERROR_X509CertChainIncompleteErr := 28871,
  430. NZERROR_X509DataNotFoundErr := 28872,NZERROR_SSLBadParameterErr := 28873,
  431. NZERROR_SSLIOClosedOverrideGoodbyeKiss := 28874,
  432. NZERROR_X509MozillaSGCErr := 28875,NZERROR_X509IESGCErr := 28876,
  433. NZERROR_ImproperServerCredentials := 28877,
  434. NZERROR_ImproperClientCredentials := 28878,
  435. NZERROR_NoProtocolSideSet := 28879,NZERROR_setPersonaFailed := 28880,
  436. NZERROR_setCertFailed := 28881,NZERROR_setVKeyFailed := 28882,
  437. NZERROR_setTPFailed := 28883,NZERROR_BadCipherSuite := 28884,
  438. NZERROR_NoKeyPairForKeyUsage := 28885,
  439. NZERROR_EntrustLoginFailed := 28890,NZERROR_EntrustGetInfoFailed := 28891,
  440. NZERROR_EntrustLoadCertificateFailed := 28892,
  441. NZERROR_EntrustGetNameFailed := 28893,
  442. NZERROR_CertNotInstalled := 29000,NZERROR_ServerDNMisMatched := 29002,
  443. NZERROR_ServerDNMisConfigured := 29003,
  444. NZERROR_CIC_ERR_SSL_ALERT_CB_FAILURE := 29004,
  445. NZERROR_CIC_ERR_SSL_BAD_CERTIFICATE := 29005,
  446. NZERROR_CIC_ERR_SSL_BAD_CERTIFICATE_REQUEST := 29006,
  447. NZERROR_CIC_ERR_SSL_BAD_CLEAR_KEY_LEN := 29007,
  448. NZERROR_CIC_ERR_SSL_BAD_DHPARAM_KEY_LENGTH := 29008,
  449. NZERROR_CIC_ERR_SSL_BAD_ENCRYPTED_KEY_LEN := 29009,
  450. NZERROR_CIC_ERR_SSL_BAD_EXPORT_KEY_LENGTH := 29010,
  451. NZERROR_CIC_ERR_SSL_BAD_FINISHED_MESSAGE := 29011,
  452. NZERROR_CIC_ERR_SSL_BAD_KEY_ARG_LEN := 29012,
  453. NZERROR_CIC_ERR_SSL_BAD_MAC := 29013,NZERROR_CIC_ERR_SSL_BAD_MAX_FRAGMENT_LENGTH_EXTENSION := 29014,
  454. NZERROR_CIC_ERR_SSL_BAD_MESSAGE_LENGTH := 29015,
  455. NZERROR_CIC_ERR_SSL_BAD_PKCS1_PADDING := 29016,
  456. NZERROR_CIC_ERR_SSL_BAD_PREMASTER_SECRET_LENGTH := 29017,
  457. NZERROR_CIC_ERR_SSL_BAD_PREMASTER_SECRET_VERSION := 29018,
  458. NZERROR_CIC_ERR_SSL_BAD_PROTOCOL_VERSION := 29019,
  459. NZERROR_CIC_ERR_SSL_BAD_RECORD_LENGTH := 29020,
  460. NZERROR_CIC_ERR_SSL_BAD_SECRET_KEY_LEN := 29021,
  461. NZERROR_CIC_ERR_SSL_BAD_SIDE := 29022,
  462. NZERROR_CIC_ERR_SSL_BUFFERS_NOT_EMPTY := 29023,
  463. NZERROR_CIC_ERR_SSL_CERTIFICATE_VALIDATE_FAILED := 29024,
  464. NZERROR_CIC_ERR_SSL_CERT_CHECK_CALLBACK := 29025,
  465. NZERROR_CIC_ERR_SSL_DECRYPT_FAILED := 29026,
  466. NZERROR_CIC_ERR_SSL_ENTROPY_COLLECTION := 29027,
  467. NZERROR_CIC_ERR_SSL_FAIL_SERVER_VERIFY := 29028,
  468. NZERROR_CIC_ERR_SSL_HANDSHAKE_ALREADY_COMPLETED := 29029,
  469. NZERROR_CIC_ERR_SSL_HANDSHAKE_REQUESTED := 29030,
  470. NZERROR_CIC_ERR_SSL_HANDSHAKE_REQUIRED := 29031,
  471. NZERROR_CIC_ERR_SSL_INCOMPLETE_IDENTITY := 29032,
  472. NZERROR_CIC_ERR_SSL_INVALID_PFX := 29033,
  473. NZERROR_CIC_ERR_SSL_NEEDS_CIPHER_OR_CLIENTAUTH := 29034,
  474. NZERROR_CIC_ERR_SSL_NEEDS_PRNG := 29035,
  475. NZERROR_CIC_ERR_SSL_NOT_SUPPORTED := 29036,
  476. NZERROR_CIC_ERR_SSL_NO_CERTIFICATE := 29037,
  477. NZERROR_CIC_ERR_SSL_NO_MATCHING_CERTIFICATES := 29038,
  478. NZERROR_CIC_ERR_SSL_NO_MATCHING_CIPHER_SUITES := 29039,
  479. NZERROR_CIC_ERR_SSL_NO_SUPPORTED_CIPHER_SUITES := 29040,
  480. NZERROR_CIC_ERR_SSL_NULL_CB := 29041,NZERROR_CIC_ERR_SSL_READ_BUFFER_NOT_EMPTY := 29042,
  481. NZERROR_CIC_ERR_SSL_READ_REQUIRED := 29043,
  482. NZERROR_CIC_ERR_SSL_RENEGOTIATION_ALREADY_REQUESTED := 29044,
  483. NZERROR_CIC_ERR_SSL_RENEGOTIATION_REFUSED := 29045,
  484. NZERROR_CIC_ERR_SSL_RESUMABLE_SESSION := 29046,
  485. NZERROR_CIC_ERR_SSL_TLS_EXTENSION_MISMATCH := 29047,
  486. NZERROR_CIC_ERR_SSL_UNEXPECTED_MSG := 29048,
  487. NZERROR_CIC_ERR_SSL_UNKNOWN_RECORD := 29049,
  488. NZERROR_CIC_ERR_SSL_UNSUPPORTED_CLIENT_AUTH_MODE := 29050,
  489. NZERROR_CIC_ERR_SSL_UNSUPPORTED_PUBKEY_TYPE := 29051,
  490. NZERROR_CIC_ERR_SSL_WRITE_BUFFER_NOT_EMPTY := 29052,
  491. NZERROR_CIC_ERR_PKCS12_MISSING_ALG := 29053,
  492. NZERROR_CIC_ERR_PKCS_AUTH_FAILED := 29054,
  493. NZERROR_CIC_ERR_PKCS_BAD_CONTENT_TYPE := 29055,
  494. NZERROR_CIC_ERR_PKCS_BAD_INPUT := 29056,
  495. NZERROR_CIC_ERR_PKCS_BAD_PADDING := 29057,
  496. NZERROR_CIC_ERR_PKCS_BAD_SN := 29058,NZERROR_CIC_ERR_PKCS_BAD_SN_LENGTH := 29059,
  497. NZERROR_CIC_ERR_PKCS_BAD_VERSION := 29060,
  498. NZERROR_CIC_ERR_PKCS_BASE := 29061,NZERROR_CIC_ERR_PKCS_FIELD_NOT_PRESENT := 29062,
  499. NZERROR_CIC_ERR_PKCS_NEED_CERTVAL := 29063,
  500. NZERROR_CIC_ERR_PKCS_NEED_PASSWORD := 29064,
  501. NZERROR_CIC_ERR_PKCS_NEED_PKC := 29065,
  502. NZERROR_CIC_ERR_PKCS_NEED_PRV_KEY := 29066,
  503. NZERROR_CIC_ERR_PKCS_NEED_TRUSTED := 29067,
  504. NZERROR_CIC_ERR_PKCS_UNSUPPORTED_CERT_FORMAT := 29068,
  505. NZERROR_CIC_ERR_PKCS_UNSUP_PRVKEY_TYPE := 29069,
  506. NZERROR_CIC_ERR_CODING_BAD_PEM := 29070,
  507. NZERROR_CIC_ERR_CODING_BASE := 29071,NZERROR_CIC_ERR_DER_BAD_ENCODING := 29072,
  508. NZERROR_CIC_ERR_DER_BAD_ENCODING_LENGTH := 29073,
  509. NZERROR_CIC_ERR_DER_BASE := 29074,NZERROR_CIC_ERR_DER_ELEMENT_TOO_LONG := 29075,
  510. NZERROR_CIC_ERR_DER_INDEFINITE_LENGTH := 29076,
  511. NZERROR_CIC_ERR_DER_NO_MORE_ELEMENTS := 29077,
  512. NZERROR_CIC_ERR_DER_OBJECT_TOO_LONG := 29078,
  513. NZERROR_CIC_ERR_DER_TAG_SIZE := 29079,
  514. NZERROR_CIC_ERR_DER_TIME_OUT_OF_RANGE := 29080,
  515. NZERROR_CIC_ERR_DER_UNUSED_BITS_IN_BIT_STR := 29081,
  516. NZERROR_CIC_ERR_GENERAL_BASE := 29082,
  517. NZERROR_CIC_ERR_HASH_BASE := 29083,NZERROR_CIC_ERR_ILLEGAL_PARAM := 29084,
  518. NZERROR_CIC_ERR_MEM_NOT_OURS := 29085,
  519. NZERROR_CIC_ERR_MEM_OVERRUN := 29086,NZERROR_CIC_ERR_MEM_UNDERRUN := 29087,
  520. NZERROR_CIC_ERR_MEM_WAS_FREED := 29088,
  521. NZERROR_CIC_ERR_NOT_FOUND := 29090,NZERROR_CIC_ERR_NO_PTR := 29091,
  522. NZERROR_CIC_ERR_TIMEOUT := 29092,NZERROR_CIC_ERR_UNIT_MASK := 29093,
  523. NZERROR_CIC_ERR_BAD_CTX := 29094,NZERROR_CIC_ERR_BAD_INDEX := 29095,
  524. NZERROR_CIC_ERR_BAD_LENGTH := 29096,NZERROR_CIC_ERR_CODING_BAD_ENCODING := 29097,
  525. NZERROR_CIC_ERR_SSL_NO_CLIENT_AUTH_MODES := 29098,
  526. NZERROR_LOCKEYID_CREATE_FAILED := 29100,
  527. NZERROR_P12_ADD_PVTKEY_FAILED := 29101,
  528. NZERROR_P12_ADD_CERT_FAILED := 29102,NZERROR_P12_WLT_CREATE_FAILED := 29103,
  529. NZERROR_P12_ADD_CERTREQ_FAILED := 29104,
  530. NZERROR_P12_WLT_EXP_FAILED := 29105,NZERROR_P12_WLT_IMP_FAILED := 29106,
  531. NZERROR_P12_CREATE_FAILED := 29107,NZERROR_P12_DEST_FAILED := 29107,
  532. NZERROR_P12_RAND_ERROR := 29108,NZERROR_P12_PVTKEY_CRT_FAILED := 29109,
  533. NZERROR_P12_INVALID_BAG := 29110,NZERROR_P12_INVALID_INDEX := 29111,
  534. NZERROR_P12_GET_CERT_FAILED := 29112,NZERROR_P12_GET_PVTKEY_FAILED := 29113,
  535. NZERROR_P12_IMP_PVTKEY_FAILED := 29114,
  536. NZERROR_P12_EXP_PVTKEY_FAILED := 29115,
  537. NZERROR_P12_GET_ATTRIB_FAILED := 29116,
  538. NZERROR_P12_ADD_ATTRIB_FAILED := 29117,
  539. NZERROR_P12_CRT_ATTRIB_FAILED := 29118,
  540. NZERROR_P12_IMP_CERT_FAILED := 29119,NZERROR_P12_EXP_CERT_FAILED := 29120,
  541. NZERROR_P12_ADD_SECRET_FAILED := 29121,
  542. NZERROR_P12_ADD_PKCS11INFO_FAILED := 29122,
  543. NZERROR_P12_GET_PKCS11INFO_FAILED := 29123,
  544. NZERROR_P12_MULTIPLE_PKCS11_LIBNAME := 29124,
  545. NZERROR_P12_MULTIPLE_PKCS11_TOKENLABEL := 29125,
  546. NZERROR_P12_MULTIPLE_PKCS11_TOKENPASSPHRASE := 29126,
  547. NZERROR_P12_UNKNOWN_PKCS11INFO := 29127,
  548. NZERROR_P12_PKCS11_LIBNAME_NOT_SET := 29128,
  549. NZERROR_P12_PKCS11_TOKENLABEL_NOT_SET := 29129,
  550. NZERROR_P12_PKCS11_TOKENPASSPHRASE_NOT_SET := 29130,
  551. NZERROR_P12_MULTIPLE_PKCS11_CERTLABEL := 29131,
  552. NZERROR_CIC_ERR_RANDOM := 29135,NZERROR_CIC_ERR_SMALL_BUFFER := 29136,
  553. NZERROR_CIC_ERR_SSL_BAD_CONTEXT := 29137,
  554. NZERROR_MUTEX_INITIALIZE_FAILED := 29138,
  555. NZERROR_MUTEX_DESTROY_FAILED := 29139,
  556. NZERROR_BS_CERTOBJ_CREAT_FAILED := 29140,
  557. NZERROR_BS_DER_IMP_FAILED := 29141,NZERROR_DES_SELF_TEST_FAILED := 29150,
  558. NZERROR_3DES_SELF_TEST_FAILED := 29151,
  559. NZERROR_SHA_SELF_TEST_FAILED := 29152,
  560. NZERROR_RSA_SELF_TEST_FAILED := 29153,
  561. NZERROR_DRNG_SELF_TEST_FAILED := 29154,
  562. NZERROR_CKEYPAIR_SELF_TEST_FAILED := 29155,
  563. NZERROR_CRNG_SELF_TEST_FAILED := 29156,
  564. NZERROR_FIPS_PATHNAME_ERROR := 29157,NZERROR_FIPS_LIB_OPEN_FAILED := 29158,
  565. NZERROR_FIPS_LIB_READ_ERROR := 29159,NZERROR_FIPS_LIB_DIFFERS := 29160,
  566. NZERROR_DAC_SELF_TEST_FAILED := 29161,
  567. NZERROR_NONFIPS_CIPHERSUITE := 29162,NZERROR_VENDOR_NOT_SUPPORTED_FIPS_MODE := 29163,
  568. NZERROR_EXTERNAL_PKCS12_NOT_SUPPORTED_FIPS_MODE := 29164,
  569. NZERROR_AES_SELF_TEST_FAILED := 29165,
  570. NZERROR_CRL_SIG_VERIFY_FAILED := 29176,
  571. NZERROR_CERT_NOT_IN_CRL := 29177,NZERROR_CERT_IN_CRL := 29178,
  572. NZERROR_CERT_IN_CRL_CHECK_FAILED := 29179,
  573. NZERROR_INVALID_CERT_STATUS_PROTOCOL := 29180,
  574. NZERROR_LDAP_OPEN_FAILED := 29181,NZERROR_LDAP_BIND_FAILED := 29182,
  575. NZERROR_LDAP_SEARCH_FAILED := 29183,NZERROR_LDAP_RESULT_FAILED := 29184,
  576. NZERROR_LDAP_FIRSTATTR_FAILED := 29185,
  577. NZERROR_LDAP_GETVALUESLEN_FAILED := 29186,
  578. NZERROR_LDAP_UNSUPPORTED_VALMEC := 29187,
  579. NZERROR_LDAP_COUNT_ENTRIES_FAILED := 29188,
  580. NZERROR_LDAP_NO_ENTRY_FOUND := 29189,NZERROR_LDAP_MULTIPLE_ENTRIES_FOUND := 29190,
  581. NZERROR_OID_INFO_NOT_SET := 29191,NZERROR_LDAP_VALMEC_NOT_SET := 29192,
  582. NZERROR_CRLDP_NO_CRL_FOUND := 29193,NZERROR_CRL_NOT_IN_CACHE := 29194,
  583. NZERROR_CRL_EXPIRED := 29195,NZERROR_DN_MATCH := 29222,
  584. NZERROR_CERT_CHAIN_CREATION := 29223,NZERROR_NO_MATCHING_CERT_REQ := 29224,
  585. NZERROR_CERT_ALREADY_INSTALLED := 29225,
  586. NZERROR_NO_MATCHING_PRIVATE_KEY := 29226,
  587. NZERROR_VALIDITY_EXPIRED := 29227,NZERROR_TK_BYTES_NEEDED := 29228,
  588. NZERROR_TK_BAD_MAGIC_NUMBER := 29229,NZERROR_TK_BAD_HEADER_LENGTH := 29230,
  589. NZERROR_TK_CE_INIT := 29231,NZERROR_TK_CE_KEYINIT := 29232,
  590. NZERROR_TK_CE_ENCODE_KEY := 29233,NZERROR_TK_CE_DECODE_KEY := 29234,
  591. NZERROR_TK_CE_GEYKEYINFO := 29235,NZERROR_TK_SEED_RANDOM := 29236,
  592. NZERROR_TK_CE_ALGFINISH := 29237,NZERROR_TK_CE_ALGAPPLY := 29238,
  593. NZERROR_TK_CE_ALGINIT := 29239,NZERROR_TK_ALGORITHM := 29240,
  594. NZERROR_TK_CANNOT_GROW := 29241,NZERROR_TK_KEYSIZE := 29242,
  595. NZERROR_TK_KEYTYPE := 29243,NZERROR_TK_PLSQL_NO_WRL := 29244,
  596. NZERROR_TK_CE_FUNC := 29245,NZERROR_TK_TDU_FORMAT := 29246,
  597. NZERROR_TK_NOTOPEN := 29247,NZERROR_TK_WRLTYPE := 29248,
  598. NZERROR_TK_CE_STATE := 29249,NZERROR_PKCS11_LIBRARY_NOT_FOUND := 43000,
  599. NZERROR_PKCS11_TOKEN_NOT_FOUND := 43001,
  600. NZERROR_PKCS11_BAD_PASSPHRASE := 43002,
  601. NZERROR_PKCS11_GET_FUNC_LIST := 43003,
  602. NZERROR_PKCS11_INITIALIZE := 43004,NZERROR_PKCS11_NO_TOKENS_PRESENT := 43005,
  603. NZERROR_PKCS11_GET_SLOT_LIST := 43006,
  604. NZERROR_PKCS11_GET_TOKEN_INFO := 43008,
  605. NZERROR_PKCS11_SYMBOL_NOT_FOUND := 43009,
  606. NZERROR_PKCS11_TOKEN_LOGIN_FAILED := 43011,
  607. NZERROR_PKCS11_CHANGE_PROVIDERS_ERROR := 43013,
  608. NZERROR_PKCS11_GET_PRIVATE_KEY_ERROR := 43014,
  609. NZERROR_PKCS11_CREATE_KEYPAIR_ERROR := 43015,
  610. NZERROR_PKCS11_WALLET_CONTAINS_P11_INFO := 43016,
  611. NZERROR_PKCS11_NO_CERT_ON_TOKEN := 43017,
  612. NZERROR_PKCS11_NO_USER_CERT_ON_TOKEN := 43018,
  613. NZERROR_PKCS11_NO_CERT_ON_TOKEN_WITH_GIVEN_LABEL := 43019,
  614. NZERROR_PKCS11_MULTIPLE_CERTS_ON_TOKEN_WITH_GIVEN_LABEL := 43020,
  615. NZERROR_PKCS11_CERT_WITH_LABEL_NOT_USER_CERT := 43021,
  616. NZERROR_BIND_SERVICE_ERROR := 43050,NZERROR_CREATE_KEY_OBJ_ERROR := 43051,
  617. NZERROR_GET_CERT_FIELDS := 43052,NZERROR_CREATE_PKCS10_OBJECT := 43053,
  618. NZERROR_SET_PKCS10_FIELDS := 43054,NZERROR_SIGN_CERT_REQUEST := 43055,
  619. NZERROR_GET_PKCS10_DER := 43056,NZERROR_INITIALIZE_CERTC := 43057,
  620. NZERROR_INSERT_PRIVATE_KEY := 43058,NZERROR_RSA_ERROR := 43059,
  621. NZERROR_SLTSCTX_INIT_FAILED := 43060,NZERROR_SLTSKYC_FAILED := 43061,
  622. NZERROR_SLTSCTX_TERM_FAILED := 43062,NZERROR_SLTSKYS_FAILED := 43063,
  623. NZERROR_INVALID_HEADER_LENGTH := 43070,
  624. NZERROR_WALLET_CONTAINS_USER_CREDENTIALS := 43071,
  625. NZERROR_LAST_ERROR := 43499,NZERROR_THIS_MUST_BE_LAST
  626. );
  627. {
  628. * Macro to convert SSL errors to Oracle errors. As SSL errors are negative
  629. * and Oracle numbers are positive, the following needs to be done.
  630. * 1. The base error number, which is the highest, is added to the
  631. * SSL error to get the index into the number range.
  632. * 2. The result is added to the base Oracle number to get the Oracle error.
  633. }
  634. { was #define dname(params) para_def_expr }
  635. { argument types are unknown }
  636. { return type might be wrong }
  637. // function NZERROR_SSL_TO_ORACLE(ssl_error_ : longint) : longint;
  638. {implementation
  639. function NZERROR_SSL_TO_ORACLE(ssl_error_ : longint) : longint;
  640. var
  641. if_local1 : longint;
  642. (* result types are not known *)
  643. begin
  644. if ssl_error_=SSLNoErr then
  645. if_local1:=NZERROR_OK
  646. else
  647. if_local1:=nzerror((ssl_error_-SSLMemoryErr)+(uword(NZERROR_SSLMemoryErr)));
  648. NZERROR_SSL_TO_ORACLE:=if_local1;
  649. end;
  650. end.}