Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

388 lines
7.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: sgnerror.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //
  11. // Values are 32 bit values layed out as follows:
  12. //
  13. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  14. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  15. // +---+-+-+-----------------------+-------------------------------+
  16. // |Sev|C|R| Facility | Code |
  17. // +---+-+-+-----------------------+-------------------------------+
  18. //
  19. // where
  20. //
  21. // Sev - is the severity code
  22. //
  23. // 00 - Success
  24. // 01 - Informational
  25. // 10 - Warning
  26. // 11 - Error
  27. //
  28. // C - is the Customer code flag
  29. //
  30. // R - is a reserved bit
  31. //
  32. // Facility - is the facility code
  33. //
  34. // Code - is the facility's status code
  35. //
  36. //
  37. // Define the facility codes
  38. //
  39. //
  40. // Define the severity codes
  41. //
  42. //
  43. // MessageId: SPC_BAD_PARAMETER
  44. //
  45. // MessageText:
  46. //
  47. // Bad parameter for spc utility
  48. //
  49. #define SPC_BAD_PARAMETER 0x80096001L
  50. //
  51. // MessageId: SPC_BAD_LENGTH
  52. //
  53. // MessageText:
  54. //
  55. // Bad length for data
  56. //
  57. #define SPC_BAD_LENGTH 0x80096002L
  58. //
  59. // MessageId: SPC_BAD_CONTENT_DATA_ATTR
  60. //
  61. // MessageText:
  62. //
  63. // SPC Message contained corrupted content
  64. //
  65. #define SPC_BAD_CONTENT_DATA_ATTR 0x80096003L
  66. //
  67. // MessageId: SPC_BAD_INDIRECT_CONTENT_TYPE
  68. //
  69. // MessageText:
  70. //
  71. // SPC Message did not contain indirect data type
  72. //
  73. #define SPC_BAD_INDIRECT_CONTENT_TYPE 0x80096004L
  74. //
  75. // MessageId: SPC_UNEXPECTED_MSG_TYPE
  76. //
  77. // MessageText:
  78. //
  79. // Message contains an unexpected content type
  80. //
  81. #define SPC_UNEXPECTED_MSG_TYPE 0x80096005L
  82. //
  83. // MessageId: SPC_NOT_JAVA_CLASS_FILE
  84. //
  85. // MessageText:
  86. //
  87. // File is not a java class file
  88. //
  89. #define SPC_NOT_JAVA_CLASS_FILE 0x80096006L
  90. //
  91. // MessageId: SPC_BAD_JAVA_CLASS_FILE
  92. //
  93. // MessageText:
  94. //
  95. // File is a corrupted java class file
  96. //
  97. #define SPC_BAD_JAVA_CLASS_FILE 0x80096007L
  98. //
  99. // MessageId: SPC_BAD_STRUCTURED_STORAGE
  100. //
  101. // MessageText:
  102. //
  103. // Structured file is corrupted
  104. //
  105. #define SPC_BAD_STRUCTURED_STORAGE 0x80096008L
  106. //
  107. // MessageId: SPC_BAD_CAB_FILE
  108. //
  109. // MessageText:
  110. //
  111. // File is a corrupted CAB file
  112. //
  113. #define SPC_BAD_CAB_FILE 0x80096009L
  114. //
  115. // MessageId: SPC_NO_SIGNED_DATA_IN_FILE
  116. //
  117. // MessageText:
  118. //
  119. // No signed message was found in file
  120. //
  121. #define SPC_NO_SIGNED_DATA_IN_FILE 0x8009600AL
  122. //
  123. // MessageId: SPC_REVOCATION_OFFLINE
  124. //
  125. // MessageText:
  126. //
  127. // Could not connect to online revocation server.
  128. //
  129. #define SPC_REVOCATION_OFFLINE 0x8009600BL
  130. //
  131. // MessageId: SPC_REVOCATION_ERROR
  132. //
  133. // MessageText:
  134. //
  135. // An error occured while accessing online revocation server.
  136. //
  137. #define SPC_REVOCATION_ERROR 0x8009600CL
  138. //
  139. // MessageId: SPC_CERT_REVOKED
  140. //
  141. // MessageText:
  142. //
  143. // Signing certificate or issuing certifcate has been revoked.
  144. //
  145. #define SPC_CERT_REVOKED 0x8009600DL
  146. //
  147. // MessageId: SPC_NO_SIGNATURE
  148. //
  149. // MessageText:
  150. //
  151. // AUTHENTICODE signature not found.
  152. //
  153. #define SPC_NO_SIGNATURE 0x8009600EL
  154. //
  155. // MessageId: SPC_BAD_SIGNATURE
  156. //
  157. // MessageText:
  158. //
  159. // The signature does not match the content of the signed message.
  160. //
  161. #define SPC_BAD_SIGNATURE 0x8009600FL
  162. //
  163. // MessageId: SPC_BAD_FILE_DIGEST
  164. //
  165. // MessageText:
  166. //
  167. // Software does not match contents of signature.
  168. //
  169. #define SPC_BAD_FILE_DIGEST 0x80096010L
  170. //
  171. // MessageId: SPC_NO_VALID_SIGNER
  172. //
  173. // MessageText:
  174. //
  175. // Signature does not contain a valid signing certifcate.
  176. //
  177. #define SPC_NO_VALID_SIGNER 0x80096011L
  178. //
  179. // MessageId: SPC_CERT_EXPIRED
  180. //
  181. // MessageText:
  182. //
  183. // A certificate (signing or issuer) has expired.
  184. //
  185. #define SPC_CERT_EXPIRED 0x80096012L
  186. //
  187. // MessageId: SPC_NO_SIGNER_ROOT
  188. //
  189. // MessageText:
  190. //
  191. // The signing certificate did not have a valid root certificate.
  192. //
  193. #define SPC_NO_SIGNER_ROOT 0x80096013L
  194. //
  195. // MessageId: SPC_NO_STATEMENT_TYPE
  196. //
  197. // MessageText:
  198. //
  199. // Signing certificate does not contain AUTHENTICODE extensions.
  200. //
  201. #define SPC_NO_STATEMENT_TYPE 0x80096014L
  202. //
  203. // MessageId: SPC_NO_COMMERCIAL_TYPE
  204. //
  205. // MessageText:
  206. //
  207. // No commercial or individual setting in signing certificate.
  208. //
  209. #define SPC_NO_COMMERCIAL_TYPE 0x80096015L
  210. //
  211. // MessageId: SPC_INVALID_CERT_NESTING
  212. //
  213. // MessageText:
  214. //
  215. // Signing certificate's starting or ending time is outside one of its issuers starting or ending time.
  216. //
  217. #define SPC_INVALID_CERT_NESTING 0x80096016L
  218. //
  219. // MessageId: SPC_INVALID_ISSUER
  220. //
  221. // MessageText:
  222. //
  223. // Wrong issuing Certificate used to verify a certificate.
  224. //
  225. #define SPC_INVALID_ISSUER 0x80096017L
  226. //
  227. // MessageId: SPC_INVALID_PURPOSE
  228. //
  229. // MessageText:
  230. //
  231. // A purpose specified in a certificate (signing or issuer) makes it invalid for AUTHENTICODE.
  232. //
  233. #define SPC_INVALID_PURPOSE 0x80096018L
  234. //
  235. // MessageId: SPC_INVALID_BASIC_CONSTRAINTS
  236. //
  237. // MessageText:
  238. //
  239. // A basic contraint of a certificate in the signature failed for AUTHENTICODE.
  240. //
  241. #define SPC_INVALID_BASIC_CONSTRAINTS 0x80096019L
  242. //
  243. // MessageId: SPC_UNSUPPORTED_BASIC_CONSTRAINTS
  244. //
  245. // MessageText:
  246. //
  247. // Unsupported basic contraint found in a certificate used by the signature.
  248. //
  249. #define SPC_UNSUPPORTED_BASIC_CONSTRAINTS 0x8009601AL
  250. //
  251. // MessageId: SPC_NO_OPUS_INFO
  252. //
  253. // MessageText:
  254. //
  255. // No opus information provided for the signing certificate.
  256. //
  257. #define SPC_NO_OPUS_INFO 0x8009601BL
  258. //
  259. // MessageId: SPC_INVALID_CERT_TIME
  260. //
  261. // MessageText:
  262. //
  263. // The date for the signing certificate is not valid.
  264. //
  265. #define SPC_INVALID_CERT_TIME 0x8009601CL
  266. //
  267. // MessageId: SPC_UNTRUSTED_TIMESTAMP_ROOT
  268. //
  269. // MessageText:
  270. //
  271. // The test root is not trusted as the time stamp root.
  272. //
  273. #define SPC_UNTRUSTED_TIMESTAMP_ROOT 0x8009601DL
  274. //
  275. // MessageId: SPC_INVALID_FINANCIAL
  276. //
  277. // MessageText:
  278. //
  279. // Certificate does not contain AUTHENTICODE financial extension.
  280. //
  281. #define SPC_INVALID_FINANCIAL 0x8009601EL
  282. //
  283. // MessageId: SPC_NO_AUTHORITY_KEYID
  284. //
  285. // MessageText:
  286. //
  287. // No authority key id extension in certificate.
  288. //
  289. #define SPC_NO_AUTHORITY_KEYID 0x8009601FL
  290. //
  291. // MessageId: SPC_INVALID_EXTENSION
  292. //
  293. // MessageText:
  294. //
  295. // The extension in a certificate means the certificate can not be used for AUTHENTICODE.
  296. //
  297. #define SPC_INVALID_EXTENSION 0x80096020L
  298. //
  299. // MessageId: SPC_CERT_SIGNATURE
  300. //
  301. // MessageText:
  302. //
  303. // Certificate signature could not be verified using issuers certificate.
  304. //
  305. #define SPC_CERT_SIGNATURE 0x80096021L
  306. //
  307. // MessageId: SPC_CHAINING
  308. //
  309. // MessageText:
  310. //
  311. // Unable to create certificate chain from the signing certificate to a root.
  312. //
  313. #define SPC_CHAINING 0x80096022L
  314. //
  315. // MessageId: SPC_UNTRUSTED
  316. //
  317. // MessageText:
  318. //
  319. // Signature is not trusted by AUTHENTICODE.
  320. //
  321. #define SPC_UNTRUSTED 0x80096023L
  322. //
  323. // MessageId: SPC_SAFETY_LEVEL_UNTRUSTED
  324. //
  325. // MessageText:
  326. //
  327. // Signature is not trusted by AUTHENTICODE at this safety level.
  328. //
  329. #define SPC_SAFETY_LEVEL_UNTRUSTED 0x80096024L
  330. //
  331. // MessageId: SPC_UNTRUSTED_ROOT
  332. //
  333. // MessageText:
  334. //
  335. // The test root is has not been enabled as a trusted root.
  336. //
  337. #define SPC_UNTRUSTED_ROOT 0x80096025L
  338. //
  339. // MessageId: SPC_UNKNOWN_SIGNER_ROOT
  340. //
  341. // MessageText:
  342. //
  343. // Verified chain to an unknown root certificate.
  344. //
  345. #define SPC_UNKNOWN_SIGNER_ROOT 0x80096026L