secerrstrs.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. /*
  13. * secerrstrs.h - map security errors to strings (used by errormap.c)
  14. *
  15. */
  16. /*
  17. ****************************************************************************
  18. * The code below this point was taken from the file
  19. * mozilla/security/nss/security/nss/cmd/lib/SECerrs.h on NSS_3_11_3_RTM.
  20. ****************************************************************************
  21. */
  22. /* General security error codes */
  23. /* Caller must #include "secerr.h" */
  24. ER3(SEC_ERROR_IO, SEC_ERROR_BASE + 0,
  25. "An I/O error occurred during security authorization.")
  26. ER3(SEC_ERROR_LIBRARY_FAILURE, SEC_ERROR_BASE + 1,
  27. "security library failure.")
  28. ER3(SEC_ERROR_BAD_DATA, SEC_ERROR_BASE + 2,
  29. "security library: received bad data.")
  30. ER3(SEC_ERROR_OUTPUT_LEN, SEC_ERROR_BASE + 3,
  31. "security library: output length error.")
  32. ER3(SEC_ERROR_INPUT_LEN, SEC_ERROR_BASE + 4,
  33. "security library has experienced an input length error.")
  34. ER3(SEC_ERROR_INVALID_ARGS, SEC_ERROR_BASE + 5,
  35. "security library: invalid arguments.")
  36. ER3(SEC_ERROR_INVALID_ALGORITHM, SEC_ERROR_BASE + 6,
  37. "security library: invalid algorithm.")
  38. ER3(SEC_ERROR_INVALID_AVA, SEC_ERROR_BASE + 7,
  39. "security library: invalid AVA.")
  40. ER3(SEC_ERROR_INVALID_TIME, SEC_ERROR_BASE + 8,
  41. "Improperly formatted time string.")
  42. ER3(SEC_ERROR_BAD_DER, SEC_ERROR_BASE + 9,
  43. "security library: improperly formatted DER-encoded message.")
  44. ER3(SEC_ERROR_BAD_SIGNATURE, SEC_ERROR_BASE + 10,
  45. "Peer's certificate has an invalid signature.")
  46. ER3(SEC_ERROR_EXPIRED_CERTIFICATE, SEC_ERROR_BASE + 11,
  47. "Peer's Certificate has expired.")
  48. ER3(SEC_ERROR_REVOKED_CERTIFICATE, SEC_ERROR_BASE + 12,
  49. "Peer's Certificate has been revoked.")
  50. ER3(SEC_ERROR_UNKNOWN_ISSUER, SEC_ERROR_BASE + 13,
  51. "Peer's Certificate issuer is not recognized.")
  52. ER3(SEC_ERROR_BAD_KEY, SEC_ERROR_BASE + 14,
  53. "Peer's public key is invalid.")
  54. ER3(SEC_ERROR_BAD_PASSWORD, SEC_ERROR_BASE + 15,
  55. "The security password entered is incorrect.")
  56. ER3(SEC_ERROR_RETRY_PASSWORD, SEC_ERROR_BASE + 16,
  57. "New password entered incorrectly. Please try again.")
  58. ER3(SEC_ERROR_NO_NODELOCK, SEC_ERROR_BASE + 17,
  59. "security library: no nodelock.")
  60. ER3(SEC_ERROR_BAD_DATABASE, SEC_ERROR_BASE + 18,
  61. "security library: bad database.")
  62. ER3(SEC_ERROR_NO_MEMORY, SEC_ERROR_BASE + 19,
  63. "security library: memory allocation failure.")
  64. ER3(SEC_ERROR_UNTRUSTED_ISSUER, SEC_ERROR_BASE + 20,
  65. "Peer's certificate issuer has been marked as not trusted by the user.")
  66. ER3(SEC_ERROR_UNTRUSTED_CERT, SEC_ERROR_BASE + 21,
  67. "Peer's certificate has been marked as not trusted by the user.")
  68. ER3(SEC_ERROR_DUPLICATE_CERT, (SEC_ERROR_BASE + 22),
  69. "Certificate already exists in your database.")
  70. ER3(SEC_ERROR_DUPLICATE_CERT_NAME, (SEC_ERROR_BASE + 23),
  71. "Downloaded certificate's name duplicates one already in your database.")
  72. ER3(SEC_ERROR_ADDING_CERT, (SEC_ERROR_BASE + 24),
  73. "Error adding certificate to database.")
  74. ER3(SEC_ERROR_FILING_KEY, (SEC_ERROR_BASE + 25),
  75. "Error refiling the key for this certificate.")
  76. ER3(SEC_ERROR_NO_KEY, (SEC_ERROR_BASE + 26),
  77. "The private key for this certificate cannot be found in key database")
  78. ER3(SEC_ERROR_CERT_VALID, (SEC_ERROR_BASE + 27),
  79. "This certificate is valid.")
  80. ER3(SEC_ERROR_CERT_NOT_VALID, (SEC_ERROR_BASE + 28),
  81. "This certificate is not valid.")
  82. ER3(SEC_ERROR_CERT_NO_RESPONSE, (SEC_ERROR_BASE + 29),
  83. "Cert Library: No Response")
  84. ER3(SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE, (SEC_ERROR_BASE + 30),
  85. "The certificate issuer's certificate has expired. Check your system date and time.")
  86. ER3(SEC_ERROR_CRL_EXPIRED, (SEC_ERROR_BASE + 31),
  87. "The CRL for the certificate's issuer has expired. Update it or check your system data and time.")
  88. ER3(SEC_ERROR_CRL_BAD_SIGNATURE, (SEC_ERROR_BASE + 32),
  89. "The CRL for the certificate's issuer has an invalid signature.")
  90. ER3(SEC_ERROR_CRL_INVALID, (SEC_ERROR_BASE + 33),
  91. "New CRL has an invalid format.")
  92. ER3(SEC_ERROR_EXTENSION_VALUE_INVALID, (SEC_ERROR_BASE + 34),
  93. "Certificate extension value is invalid.")
  94. ER3(SEC_ERROR_EXTENSION_NOT_FOUND, (SEC_ERROR_BASE + 35),
  95. "Certificate extension not found.")
  96. ER3(SEC_ERROR_CA_CERT_INVALID, (SEC_ERROR_BASE + 36),
  97. "Issuer certificate is invalid.")
  98. ER3(SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID, (SEC_ERROR_BASE + 37),
  99. "Certificate path length constraint is invalid.")
  100. ER3(SEC_ERROR_CERT_USAGES_INVALID, (SEC_ERROR_BASE + 38),
  101. "Certificate usages field is invalid.")
  102. ER3(SEC_INTERNAL_ONLY, (SEC_ERROR_BASE + 39),
  103. "**Internal ONLY module**")
  104. ER3(SEC_ERROR_INVALID_KEY, (SEC_ERROR_BASE + 40),
  105. "The key does not support the requested operation.")
  106. ER3(SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION, (SEC_ERROR_BASE + 41),
  107. "Certificate contains unknown critical extension.")
  108. ER3(SEC_ERROR_OLD_CRL, (SEC_ERROR_BASE + 42),
  109. "New CRL is not later than the current one.")
  110. ER3(SEC_ERROR_NO_EMAIL_CERT, (SEC_ERROR_BASE + 43),
  111. "Not encrypted or signed: you do not yet have an email certificate.")
  112. ER3(SEC_ERROR_NO_RECIPIENT_CERTS_QUERY, (SEC_ERROR_BASE + 44),
  113. "Not encrypted: you do not have certificates for each of the recipients.")
  114. ER3(SEC_ERROR_NOT_A_RECIPIENT, (SEC_ERROR_BASE + 45),
  115. "Cannot decrypt: you are not a recipient, or matching certificate and \
  116. private key not found.")
  117. ER3(SEC_ERROR_PKCS7_KEYALG_MISMATCH, (SEC_ERROR_BASE + 46),
  118. "Cannot decrypt: key encryption algorithm does not match your certificate.")
  119. ER3(SEC_ERROR_PKCS7_BAD_SIGNATURE, (SEC_ERROR_BASE + 47),
  120. "Signature verification failed: no signer found, too many signers found, \
  121. or improper or corrupted data.")
  122. ER3(SEC_ERROR_UNSUPPORTED_KEYALG, (SEC_ERROR_BASE + 48),
  123. "Unsupported or unknown key algorithm.")
  124. ER3(SEC_ERROR_DECRYPTION_DISALLOWED, (SEC_ERROR_BASE + 49),
  125. "Cannot decrypt: encrypted using a disallowed algorithm or key size.")
  126. /* Fortezza Alerts */
  127. ER3(XP_SEC_FORTEZZA_BAD_CARD, (SEC_ERROR_BASE + 50),
  128. "Fortezza card has not been properly initialized. \
  129. Please remove it and return it to your issuer.")
  130. ER3(XP_SEC_FORTEZZA_NO_CARD, (SEC_ERROR_BASE + 51),
  131. "No Fortezza cards Found")
  132. ER3(XP_SEC_FORTEZZA_NONE_SELECTED, (SEC_ERROR_BASE + 52),
  133. "No Fortezza card selected")
  134. ER3(XP_SEC_FORTEZZA_MORE_INFO, (SEC_ERROR_BASE + 53),
  135. "Please select a personality to get more info on")
  136. ER3(XP_SEC_FORTEZZA_PERSON_NOT_FOUND, (SEC_ERROR_BASE + 54),
  137. "Personality not found")
  138. ER3(XP_SEC_FORTEZZA_NO_MORE_INFO, (SEC_ERROR_BASE + 55),
  139. "No more information on that Personality")
  140. ER3(XP_SEC_FORTEZZA_BAD_PIN, (SEC_ERROR_BASE + 56),
  141. "Invalid Pin")
  142. ER3(XP_SEC_FORTEZZA_PERSON_ERROR, (SEC_ERROR_BASE + 57),
  143. "Couldn't initialize Fortezza personalities.")
  144. /* end fortezza alerts. */
  145. ER3(SEC_ERROR_NO_KRL, (SEC_ERROR_BASE + 58),
  146. "No KRL for this site's certificate has been found.")
  147. ER3(SEC_ERROR_KRL_EXPIRED, (SEC_ERROR_BASE + 59),
  148. "The KRL for this site's certificate has expired.")
  149. ER3(SEC_ERROR_KRL_BAD_SIGNATURE, (SEC_ERROR_BASE + 60),
  150. "The KRL for this site's certificate has an invalid signature.")
  151. ER3(SEC_ERROR_REVOKED_KEY, (SEC_ERROR_BASE + 61),
  152. "The key for this site's certificate has been revoked.")
  153. ER3(SEC_ERROR_KRL_INVALID, (SEC_ERROR_BASE + 62),
  154. "New KRL has an invalid format.")
  155. ER3(SEC_ERROR_NEED_RANDOM, (SEC_ERROR_BASE + 63),
  156. "security library: need random data.")
  157. ER3(SEC_ERROR_NO_MODULE, (SEC_ERROR_BASE + 64),
  158. "security library: no security module can perform the requested operation.")
  159. ER3(SEC_ERROR_NO_TOKEN, (SEC_ERROR_BASE + 65),
  160. "The security card or token does not exist, needs to be initialized, or has been removed.")
  161. ER3(SEC_ERROR_READ_ONLY, (SEC_ERROR_BASE + 66),
  162. "security library: read-only database.")
  163. ER3(SEC_ERROR_NO_SLOT_SELECTED, (SEC_ERROR_BASE + 67),
  164. "No slot or token was selected.")
  165. ER3(SEC_ERROR_CERT_NICKNAME_COLLISION, (SEC_ERROR_BASE + 68),
  166. "A certificate with the same nickname already exists.")
  167. ER3(SEC_ERROR_KEY_NICKNAME_COLLISION, (SEC_ERROR_BASE + 69),
  168. "A key with the same nickname already exists.")
  169. ER3(SEC_ERROR_SAFE_NOT_CREATED, (SEC_ERROR_BASE + 70),
  170. "error while creating safe object")
  171. ER3(SEC_ERROR_BAGGAGE_NOT_CREATED, (SEC_ERROR_BASE + 71),
  172. "error while creating baggage object")
  173. ER3(XP_JAVA_REMOVE_PRINCIPAL_ERROR, (SEC_ERROR_BASE + 72),
  174. "Couldn't remove the principal")
  175. ER3(XP_JAVA_DELETE_PRIVILEGE_ERROR, (SEC_ERROR_BASE + 73),
  176. "Couldn't delete the privilege")
  177. ER3(XP_JAVA_CERT_NOT_EXISTS_ERROR, (SEC_ERROR_BASE + 74),
  178. "This principal doesn't have a certificate")
  179. ER3(SEC_ERROR_BAD_EXPORT_ALGORITHM, (SEC_ERROR_BASE + 75),
  180. "Required algorithm is not allowed.")
  181. ER3(SEC_ERROR_EXPORTING_CERTIFICATES, (SEC_ERROR_BASE + 76),
  182. "Error attempting to export certificates.")
  183. ER3(SEC_ERROR_IMPORTING_CERTIFICATES, (SEC_ERROR_BASE + 77),
  184. "Error attempting to import certificates.")
  185. ER3(SEC_ERROR_PKCS12_DECODING_PFX, (SEC_ERROR_BASE + 78),
  186. "Unable to import. Decoding error. File not valid.")
  187. ER3(SEC_ERROR_PKCS12_INVALID_MAC, (SEC_ERROR_BASE + 79),
  188. "Unable to import. Invalid MAC. Incorrect password or corrupt file.")
  189. ER3(SEC_ERROR_PKCS12_UNSUPPORTED_MAC_ALGORITHM, (SEC_ERROR_BASE + 80),
  190. "Unable to import. MAC algorithm not supported.")
  191. ER3(SEC_ERROR_PKCS12_UNSUPPORTED_TRANSPORT_MODE,(SEC_ERROR_BASE + 81),
  192. "Unable to import. Only password integrity and privacy modes supported.")
  193. ER3(SEC_ERROR_PKCS12_CORRUPT_PFX_STRUCTURE, (SEC_ERROR_BASE + 82),
  194. "Unable to import. File structure is corrupt.")
  195. ER3(SEC_ERROR_PKCS12_UNSUPPORTED_PBE_ALGORITHM, (SEC_ERROR_BASE + 83),
  196. "Unable to import. Encryption algorithm not supported.")
  197. ER3(SEC_ERROR_PKCS12_UNSUPPORTED_VERSION, (SEC_ERROR_BASE + 84),
  198. "Unable to import. File version not supported.")
  199. ER3(SEC_ERROR_PKCS12_PRIVACY_PASSWORD_INCORRECT,(SEC_ERROR_BASE + 85),
  200. "Unable to import. Incorrect privacy password.")
  201. ER3(SEC_ERROR_PKCS12_CERT_COLLISION, (SEC_ERROR_BASE + 86),
  202. "Unable to import. Same nickname already exists in database.")
  203. ER3(SEC_ERROR_USER_CANCELLED, (SEC_ERROR_BASE + 87),
  204. "The user pressed cancel.")
  205. ER3(SEC_ERROR_PKCS12_DUPLICATE_DATA, (SEC_ERROR_BASE + 88),
  206. "Not imported, already in database.")
  207. ER3(SEC_ERROR_MESSAGE_SEND_ABORTED, (SEC_ERROR_BASE + 89),
  208. "Message not sent.")
  209. ER3(SEC_ERROR_INADEQUATE_KEY_USAGE, (SEC_ERROR_BASE + 90),
  210. "Certificate key usage inadequate for attempted operation.")
  211. ER3(SEC_ERROR_INADEQUATE_CERT_TYPE, (SEC_ERROR_BASE + 91),
  212. "Certificate type not approved for application.")
  213. ER3(SEC_ERROR_CERT_ADDR_MISMATCH, (SEC_ERROR_BASE + 92),
  214. "Address in signing certificate does not match address in message headers.")
  215. ER3(SEC_ERROR_PKCS12_UNABLE_TO_IMPORT_KEY, (SEC_ERROR_BASE + 93),
  216. "Unable to import. Error attempting to import private key.")
  217. ER3(SEC_ERROR_PKCS12_IMPORTING_CERT_CHAIN, (SEC_ERROR_BASE + 94),
  218. "Unable to import. Error attempting to import certificate chain.")
  219. ER3(SEC_ERROR_PKCS12_UNABLE_TO_LOCATE_OBJECT_BY_NAME, (SEC_ERROR_BASE + 95),
  220. "Unable to export. Unable to locate certificate or key by nickname.")
  221. ER3(SEC_ERROR_PKCS12_UNABLE_TO_EXPORT_KEY, (SEC_ERROR_BASE + 96),
  222. "Unable to export. Private Key could not be located and exported.")
  223. ER3(SEC_ERROR_PKCS12_UNABLE_TO_WRITE, (SEC_ERROR_BASE + 97),
  224. "Unable to export. Unable to write the export file.")
  225. ER3(SEC_ERROR_PKCS12_UNABLE_TO_READ, (SEC_ERROR_BASE + 98),
  226. "Unable to import. Unable to read the import file.")
  227. ER3(SEC_ERROR_PKCS12_KEY_DATABASE_NOT_INITIALIZED, (SEC_ERROR_BASE + 99),
  228. "Unable to export. Key database corrupt or deleted.")
  229. ER3(SEC_ERROR_KEYGEN_FAIL, (SEC_ERROR_BASE + 100),
  230. "Unable to generate public/private key pair.")
  231. ER3(SEC_ERROR_INVALID_PASSWORD, (SEC_ERROR_BASE + 101),
  232. "Password entered is invalid. Please pick a different one.")
  233. ER3(SEC_ERROR_RETRY_OLD_PASSWORD, (SEC_ERROR_BASE + 102),
  234. "Old password entered incorrectly. Please try again.")
  235. ER3(SEC_ERROR_BAD_NICKNAME, (SEC_ERROR_BASE + 103),
  236. "Certificate nickname already in use.")
  237. ER3(SEC_ERROR_NOT_FORTEZZA_ISSUER, (SEC_ERROR_BASE + 104),
  238. "Peer FORTEZZA chain has a non-FORTEZZA Certificate.")
  239. ER3(SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY, (SEC_ERROR_BASE + 105),
  240. "A sensitive key cannot be moved to the slot where it is needed.")
  241. ER3(SEC_ERROR_JS_INVALID_MODULE_NAME, (SEC_ERROR_BASE + 106),
  242. "Invalid module name.")
  243. ER3(SEC_ERROR_JS_INVALID_DLL, (SEC_ERROR_BASE + 107),
  244. "Invalid module path/filename")
  245. ER3(SEC_ERROR_JS_ADD_MOD_FAILURE, (SEC_ERROR_BASE + 108),
  246. "Unable to add module")
  247. ER3(SEC_ERROR_JS_DEL_MOD_FAILURE, (SEC_ERROR_BASE + 109),
  248. "Unable to delete module")
  249. ER3(SEC_ERROR_OLD_KRL, (SEC_ERROR_BASE + 110),
  250. "New KRL is not later than the current one.")
  251. ER3(SEC_ERROR_CKL_CONFLICT, (SEC_ERROR_BASE + 111),
  252. "New CKL has different issuer than current CKL. Delete current CKL.")
  253. ER3(SEC_ERROR_CERT_NOT_IN_NAME_SPACE, (SEC_ERROR_BASE + 112),
  254. "The Certifying Authority for this certificate is not permitted to issue a \
  255. certificate with this name.")
  256. ER3(SEC_ERROR_KRL_NOT_YET_VALID, (SEC_ERROR_BASE + 113),
  257. "The key revocation list for this certificate is not yet valid.")
  258. ER3(SEC_ERROR_CRL_NOT_YET_VALID, (SEC_ERROR_BASE + 114),
  259. "The certificate revocation list for this certificate is not yet valid.")
  260. ER3(SEC_ERROR_UNKNOWN_CERT, (SEC_ERROR_BASE + 115),
  261. "The requested certificate could not be found.")
  262. ER3(SEC_ERROR_UNKNOWN_SIGNER, (SEC_ERROR_BASE + 116),
  263. "The signer's certificate could not be found.")
  264. ER3(SEC_ERROR_CERT_BAD_ACCESS_LOCATION, (SEC_ERROR_BASE + 117),
  265. "The location for the certificate status server has invalid format.")
  266. ER3(SEC_ERROR_OCSP_UNKNOWN_RESPONSE_TYPE, (SEC_ERROR_BASE + 118),
  267. "The OCSP response cannot be fully decoded; it is of an unknown type.")
  268. ER3(SEC_ERROR_OCSP_BAD_HTTP_RESPONSE, (SEC_ERROR_BASE + 119),
  269. "The OCSP server returned unexpected/invalid HTTP data.")
  270. ER3(SEC_ERROR_OCSP_MALFORMED_REQUEST, (SEC_ERROR_BASE + 120),
  271. "The OCSP server found the request to be corrupted or improperly formed.")
  272. ER3(SEC_ERROR_OCSP_SERVER_ERROR, (SEC_ERROR_BASE + 121),
  273. "The OCSP server experienced an internal error.")
  274. ER3(SEC_ERROR_OCSP_TRY_SERVER_LATER, (SEC_ERROR_BASE + 122),
  275. "The OCSP server suggests trying again later.")
  276. ER3(SEC_ERROR_OCSP_REQUEST_NEEDS_SIG, (SEC_ERROR_BASE + 123),
  277. "The OCSP server requires a signature on this request.")
  278. ER3(SEC_ERROR_OCSP_UNAUTHORIZED_REQUEST, (SEC_ERROR_BASE + 124),
  279. "The OCSP server has refused this request as unauthorized.")
  280. ER3(SEC_ERROR_OCSP_UNKNOWN_RESPONSE_STATUS, (SEC_ERROR_BASE + 125),
  281. "The OCSP server returned an unrecognizable status.")
  282. ER3(SEC_ERROR_OCSP_UNKNOWN_CERT, (SEC_ERROR_BASE + 126),
  283. "The OCSP server has no status for the certificate.")
  284. ER3(SEC_ERROR_OCSP_NOT_ENABLED, (SEC_ERROR_BASE + 127),
  285. "You must enable OCSP before performing this operation.")
  286. ER3(SEC_ERROR_OCSP_NO_DEFAULT_RESPONDER, (SEC_ERROR_BASE + 128),
  287. "You must set the OCSP default responder before performing this operation.")
  288. ER3(SEC_ERROR_OCSP_MALFORMED_RESPONSE, (SEC_ERROR_BASE + 129),
  289. "The response from the OCSP server was corrupted or improperly formed.")
  290. ER3(SEC_ERROR_OCSP_UNAUTHORIZED_RESPONSE, (SEC_ERROR_BASE + 130),
  291. "The signer of the OCSP response is not authorized to give status for \
  292. this certificate.")
  293. ER3(SEC_ERROR_OCSP_FUTURE_RESPONSE, (SEC_ERROR_BASE + 131),
  294. "The OCSP response is not yet valid (contains a date in the future).")
  295. ER3(SEC_ERROR_OCSP_OLD_RESPONSE, (SEC_ERROR_BASE + 132),
  296. "The OCSP response contains out-of-date information.")
  297. ER3(SEC_ERROR_DIGEST_NOT_FOUND, (SEC_ERROR_BASE + 133),
  298. "The CMS or PKCS #7 Digest was not found in signed message.")
  299. ER3(SEC_ERROR_UNSUPPORTED_MESSAGE_TYPE, (SEC_ERROR_BASE + 134),
  300. "The CMS or PKCS #7 Message type is unsupported.")
  301. ER3(SEC_ERROR_MODULE_STUCK, (SEC_ERROR_BASE + 135),
  302. "PKCS #11 module could not be removed because it is still in use.")
  303. ER3(SEC_ERROR_BAD_TEMPLATE, (SEC_ERROR_BASE + 136),
  304. "Could not decode ASN.1 data. Specified template was invalid.")
  305. ER3(SEC_ERROR_CRL_NOT_FOUND, (SEC_ERROR_BASE + 137),
  306. "No matching CRL was found.")
  307. ER3(SEC_ERROR_REUSED_ISSUER_AND_SERIAL, (SEC_ERROR_BASE + 138),
  308. "You are attempting to import a cert with the same issuer/serial as \
  309. an existing cert, but that is not the same cert.")
  310. ER3(SEC_ERROR_BUSY, (SEC_ERROR_BASE + 139),
  311. "NSS could not shutdown. Objects are still in use.")
  312. ER3(SEC_ERROR_EXTRA_INPUT, (SEC_ERROR_BASE + 140),
  313. "DER-encoded message contained extra unused data.")
  314. ER3(SEC_ERROR_UNSUPPORTED_ELLIPTIC_CURVE, (SEC_ERROR_BASE + 141),
  315. "Unsupported elliptic curve.")
  316. ER3(SEC_ERROR_UNSUPPORTED_EC_POINT_FORM, (SEC_ERROR_BASE + 142),
  317. "Unsupported elliptic curve point form.")
  318. ER3(SEC_ERROR_UNRECOGNIZED_OID, (SEC_ERROR_BASE + 143),
  319. "Unrecognized Object IDentifier.")
  320. ER3(SEC_ERROR_OCSP_INVALID_SIGNING_CERT, (SEC_ERROR_BASE + 144),
  321. "Invalid OCSP signing certificate in OCSP response.")
  322. ER3(SEC_ERROR_REVOKED_CERTIFICATE_CRL, (SEC_ERROR_BASE + 145),
  323. "Certificate is revoked in issuer's certificate revocation list.")
  324. ER3(SEC_ERROR_REVOKED_CERTIFICATE_OCSP, (SEC_ERROR_BASE + 146),
  325. "Issuer's OCSP responder reports certificate is revoked.")
  326. ER3(SEC_ERROR_CRL_INVALID_VERSION, (SEC_ERROR_BASE + 147),
  327. "Issuer's Certificate Revocation List has an unknown version number.")
  328. ER3(SEC_ERROR_CRL_V1_CRITICAL_EXTENSION, (SEC_ERROR_BASE + 148),
  329. "Issuer's V1 Certificate Revocation List has a critical extension.")
  330. ER3(SEC_ERROR_CRL_UNKNOWN_CRITICAL_EXTENSION, (SEC_ERROR_BASE + 149),
  331. "Issuer's V2 Certificate Revocation List has an unknown critical extension.")
  332. ER3(SEC_ERROR_UNKNOWN_OBJECT_TYPE, (SEC_ERROR_BASE + 150),
  333. "Unknown object type specified.")
  334. ER3(SEC_ERROR_INCOMPATIBLE_PKCS11, (SEC_ERROR_BASE + 151),
  335. "PKCS #11 driver violates the spec in an incompatible way.")
  336. ER3(SEC_ERROR_NO_EVENT, (SEC_ERROR_BASE + 152),
  337. "No new slot event is available at this time.")
  338. ER3(SEC_ERROR_CRL_ALREADY_EXISTS, (SEC_ERROR_BASE + 153),
  339. "CRL already exists.")
  340. ER3(SEC_ERROR_NOT_INITIALIZED, (SEC_ERROR_BASE + 154),
  341. "NSS is not initialized.")
  342. ER3(SEC_ERROR_TOKEN_NOT_LOGGED_IN, (SEC_ERROR_BASE + 155),
  343. "The operation failed because the PKCS#11 token is not logged in.")
  344. ER3(SEC_ERROR_OCSP_RESPONDER_CERT_INVALID, (SEC_ERROR_BASE + 156),
  345. "Configured OCSP responder's certificate is invalid.")
  346. ER3(SEC_ERROR_OCSP_BAD_SIGNATURE, (SEC_ERROR_BASE + 157),
  347. "OCSP response has an invalid signature.")
  348. ER3(SEC_ERROR_OUT_OF_SEARCH_LIMITS, (SEC_ERROR_BASE + 158),
  349. "Cert validation search is out of search limits")
  350. ER3(SEC_ERROR_INVALID_POLICY_MAPPING, (SEC_ERROR_BASE + 159),
  351. "Policy mapping contains anypolicy")
  352. ER3(SEC_ERROR_POLICY_VALIDATION_FAILED, (SEC_ERROR_BASE + 160),
  353. "Cert chain fails policy validation")
  354. ER3(SEC_ERROR_UNKNOWN_AIA_LOCATION_TYPE, (SEC_ERROR_BASE + 161),
  355. "Unknown location type in cert AIA extension")
  356. ER3(SEC_ERROR_BAD_HTTP_RESPONSE, (SEC_ERROR_BASE + 162),
  357. "Server returned bad HTTP response")
  358. ER3(SEC_ERROR_BAD_LDAP_RESPONSE, (SEC_ERROR_BASE + 163),
  359. "Server returned bad LDAP response")
  360. ER3(SEC_ERROR_FAILED_TO_ENCODE_DATA, (SEC_ERROR_BASE + 164),
  361. "Failed to encode data with ASN1 encoder")
  362. ER3(SEC_ERROR_BAD_INFO_ACCESS_LOCATION, (SEC_ERROR_BASE + 165),
  363. "Bad information access location in cert extension")
  364. ER3(SEC_ERROR_LIBPKIX_INTERNAL, (SEC_ERROR_BASE + 166),
  365. "Libpkix internal error occurred during cert validation.")
  366. ER3(SEC_ERROR_PKCS11_GENERAL_ERROR, (SEC_ERROR_BASE + 167),
  367. "A PKCS #11 module returned CKR_GENERAL_ERROR, indicating that an unrecoverable error has occurred.")
  368. ER3(SEC_ERROR_PKCS11_FUNCTION_FAILED, (SEC_ERROR_BASE + 168),
  369. "A PKCS #11 module returned CKR_FUNCTION_FAILED, indicating that the requested function could not be performed. Trying the same operation again might succeed.")
  370. ER3(SEC_ERROR_PKCS11_DEVICE_ERROR, (SEC_ERROR_BASE + 169),
  371. "A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot.")
  372. ER3(SEC_ERROR_BAD_INFO_ACCESS_METHOD, (SEC_ERROR_BASE + 170),
  373. "Unknown information access method in certificate extension.")
  374. ER3(SEC_ERROR_CRL_IMPORT_FAILED, (SEC_ERROR_BASE + 171),
  375. "Error attempting to import a CRL.")
  376. ER3(SEC_ERROR_EXPIRED_PASSWORD, (SEC_ERROR_BASE + 172),
  377. "The password expired.")
  378. ER3(SEC_ERROR_LOCKED_PASSWORD, (SEC_ERROR_BASE + 173),
  379. "The password is locked.")
  380. ER3(SEC_ERROR_UNKNOWN_PKCS11_ERROR, (SEC_ERROR_BASE + 174),
  381. "Unknown PKCS #11 error.")
  382. ER3(SEC_ERROR_BAD_CRL_DP_URL, (SEC_ERROR_BASE + 175),
  383. "Invalid or unsupported URL in CRL distribution point name.")
  384. ER3(SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED, (SEC_ERROR_BASE + 176),
  385. "The certificate was signed using a signature algorithm that is disabled because it is not secure.")
  386. ER3(SEC_ERROR_LEGACY_DATABASE, (SEC_ERROR_BASE + 177),
  387. "The certificate/key database is in an old, unsupported format or failed to open.")
  388. ER3(SEC_ERROR_APPLICATION_CALLBACK_ERROR, (SEC_ERROR_BASE + 178),
  389. "The certificate was rejected by extra checks in the application.")