sspicon.py 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. # Generated by h2py from c:\microsoft sdk\include\sspi.h
  2. ISSP_LEVEL = 32
  3. ISSP_MODE = 1
  4. ISSP_LEVEL = 32
  5. ISSP_MODE = 0
  6. ISSP_LEVEL = 32
  7. ISSP_MODE = 1
  8. def SEC_SUCCESS(Status): return ((Status) >= 0)
  9. SECPKG_FLAG_INTEGRITY = 1
  10. SECPKG_FLAG_PRIVACY = 2
  11. SECPKG_FLAG_TOKEN_ONLY = 4
  12. SECPKG_FLAG_DATAGRAM = 8
  13. SECPKG_FLAG_CONNECTION = 16
  14. SECPKG_FLAG_MULTI_REQUIRED = 32
  15. SECPKG_FLAG_CLIENT_ONLY = 64
  16. SECPKG_FLAG_EXTENDED_ERROR = 128
  17. SECPKG_FLAG_IMPERSONATION = 256
  18. SECPKG_FLAG_ACCEPT_WIN32_NAME = 512
  19. SECPKG_FLAG_STREAM = 1024
  20. SECPKG_FLAG_NEGOTIABLE = 2048
  21. SECPKG_FLAG_GSS_COMPATIBLE = 4096
  22. SECPKG_FLAG_LOGON = 8192
  23. SECPKG_FLAG_ASCII_BUFFERS = 16384
  24. SECPKG_FLAG_FRAGMENT = 32768
  25. SECPKG_FLAG_MUTUAL_AUTH = 65536
  26. SECPKG_FLAG_DELEGATION = 131072
  27. SECPKG_FLAG_READONLY_WITH_CHECKSUM = 262144
  28. SECPKG_ID_NONE = 65535
  29. SECBUFFER_VERSION = 0
  30. SECBUFFER_EMPTY = 0
  31. SECBUFFER_DATA = 1
  32. SECBUFFER_TOKEN = 2
  33. SECBUFFER_PKG_PARAMS = 3
  34. SECBUFFER_MISSING = 4
  35. SECBUFFER_EXTRA = 5
  36. SECBUFFER_STREAM_TRAILER = 6
  37. SECBUFFER_STREAM_HEADER = 7
  38. SECBUFFER_NEGOTIATION_INFO = 8
  39. SECBUFFER_PADDING = 9
  40. SECBUFFER_STREAM = 10
  41. SECBUFFER_MECHLIST = 11
  42. SECBUFFER_MECHLIST_SIGNATURE = 12
  43. SECBUFFER_TARGET = 13
  44. SECBUFFER_CHANNEL_BINDINGS = 14
  45. SECBUFFER_ATTRMASK = (-268435456)
  46. SECBUFFER_READONLY = (-2147483648)
  47. SECBUFFER_READONLY_WITH_CHECKSUM = 268435456
  48. SECBUFFER_RESERVED = 1610612736
  49. SECURITY_NATIVE_DREP = 16
  50. SECURITY_NETWORK_DREP = 0
  51. SECPKG_CRED_INBOUND = 1
  52. SECPKG_CRED_OUTBOUND = 2
  53. SECPKG_CRED_BOTH = 3
  54. SECPKG_CRED_DEFAULT = 4
  55. SECPKG_CRED_RESERVED = -268435456
  56. ISC_REQ_DELEGATE = 1
  57. ISC_REQ_MUTUAL_AUTH = 2
  58. ISC_REQ_REPLAY_DETECT = 4
  59. ISC_REQ_SEQUENCE_DETECT = 8
  60. ISC_REQ_CONFIDENTIALITY = 16
  61. ISC_REQ_USE_SESSION_KEY = 32
  62. ISC_REQ_PROMPT_FOR_CREDS = 64
  63. ISC_REQ_USE_SUPPLIED_CREDS = 128
  64. ISC_REQ_ALLOCATE_MEMORY = 256
  65. ISC_REQ_USE_DCE_STYLE = 512
  66. ISC_REQ_DATAGRAM = 1024
  67. ISC_REQ_CONNECTION = 2048
  68. ISC_REQ_CALL_LEVEL = 4096
  69. ISC_REQ_FRAGMENT_SUPPLIED = 8192
  70. ISC_REQ_EXTENDED_ERROR = 16384
  71. ISC_REQ_STREAM = 32768
  72. ISC_REQ_INTEGRITY = 65536
  73. ISC_REQ_IDENTIFY = 131072
  74. ISC_REQ_NULL_SESSION = 262144
  75. ISC_REQ_MANUAL_CRED_VALIDATION = 524288
  76. ISC_REQ_RESERVED1 = 1048576
  77. ISC_REQ_FRAGMENT_TO_FIT = 2097152
  78. ISC_REQ_HTTP = 0x10000000
  79. ISC_RET_DELEGATE = 1
  80. ISC_RET_MUTUAL_AUTH = 2
  81. ISC_RET_REPLAY_DETECT = 4
  82. ISC_RET_SEQUENCE_DETECT = 8
  83. ISC_RET_CONFIDENTIALITY = 16
  84. ISC_RET_USE_SESSION_KEY = 32
  85. ISC_RET_USED_COLLECTED_CREDS = 64
  86. ISC_RET_USED_SUPPLIED_CREDS = 128
  87. ISC_RET_ALLOCATED_MEMORY = 256
  88. ISC_RET_USED_DCE_STYLE = 512
  89. ISC_RET_DATAGRAM = 1024
  90. ISC_RET_CONNECTION = 2048
  91. ISC_RET_INTERMEDIATE_RETURN = 4096
  92. ISC_RET_CALL_LEVEL = 8192
  93. ISC_RET_EXTENDED_ERROR = 16384
  94. ISC_RET_STREAM = 32768
  95. ISC_RET_INTEGRITY = 65536
  96. ISC_RET_IDENTIFY = 131072
  97. ISC_RET_NULL_SESSION = 262144
  98. ISC_RET_MANUAL_CRED_VALIDATION = 524288
  99. ISC_RET_RESERVED1 = 1048576
  100. ISC_RET_FRAGMENT_ONLY = 2097152
  101. ASC_REQ_DELEGATE = 1
  102. ASC_REQ_MUTUAL_AUTH = 2
  103. ASC_REQ_REPLAY_DETECT = 4
  104. ASC_REQ_SEQUENCE_DETECT = 8
  105. ASC_REQ_CONFIDENTIALITY = 16
  106. ASC_REQ_USE_SESSION_KEY = 32
  107. ASC_REQ_ALLOCATE_MEMORY = 256
  108. ASC_REQ_USE_DCE_STYLE = 512
  109. ASC_REQ_DATAGRAM = 1024
  110. ASC_REQ_CONNECTION = 2048
  111. ASC_REQ_CALL_LEVEL = 4096
  112. ASC_REQ_EXTENDED_ERROR = 32768
  113. ASC_REQ_STREAM = 65536
  114. ASC_REQ_INTEGRITY = 131072
  115. ASC_REQ_LICENSING = 262144
  116. ASC_REQ_IDENTIFY = 524288
  117. ASC_REQ_ALLOW_NULL_SESSION = 1048576
  118. ASC_REQ_ALLOW_NON_USER_LOGONS = 2097152
  119. ASC_REQ_ALLOW_CONTEXT_REPLAY = 4194304
  120. ASC_REQ_FRAGMENT_TO_FIT = 8388608
  121. ASC_REQ_FRAGMENT_SUPPLIED = 8192
  122. ASC_REQ_NO_TOKEN = 16777216
  123. ASC_RET_DELEGATE = 1
  124. ASC_RET_MUTUAL_AUTH = 2
  125. ASC_RET_REPLAY_DETECT = 4
  126. ASC_RET_SEQUENCE_DETECT = 8
  127. ASC_RET_CONFIDENTIALITY = 16
  128. ASC_RET_USE_SESSION_KEY = 32
  129. ASC_RET_ALLOCATED_MEMORY = 256
  130. ASC_RET_USED_DCE_STYLE = 512
  131. ASC_RET_DATAGRAM = 1024
  132. ASC_RET_CONNECTION = 2048
  133. ASC_RET_CALL_LEVEL = 8192
  134. ASC_RET_THIRD_LEG_FAILED = 16384
  135. ASC_RET_EXTENDED_ERROR = 32768
  136. ASC_RET_STREAM = 65536
  137. ASC_RET_INTEGRITY = 131072
  138. ASC_RET_LICENSING = 262144
  139. ASC_RET_IDENTIFY = 524288
  140. ASC_RET_NULL_SESSION = 1048576
  141. ASC_RET_ALLOW_NON_USER_LOGONS = 2097152
  142. ASC_RET_ALLOW_CONTEXT_REPLAY = 4194304
  143. ASC_RET_FRAGMENT_ONLY = 8388608
  144. SECPKG_CRED_ATTR_NAMES = 1
  145. SECPKG_ATTR_SIZES = 0
  146. SECPKG_ATTR_NAMES = 1
  147. SECPKG_ATTR_LIFESPAN = 2
  148. SECPKG_ATTR_DCE_INFO = 3
  149. SECPKG_ATTR_STREAM_SIZES = 4
  150. SECPKG_ATTR_KEY_INFO = 5
  151. SECPKG_ATTR_AUTHORITY = 6
  152. SECPKG_ATTR_PROTO_INFO = 7
  153. SECPKG_ATTR_PASSWORD_EXPIRY = 8
  154. SECPKG_ATTR_SESSION_KEY = 9
  155. SECPKG_ATTR_PACKAGE_INFO = 10
  156. SECPKG_ATTR_USER_FLAGS = 11
  157. SECPKG_ATTR_NEGOTIATION_INFO = 12
  158. SECPKG_ATTR_NATIVE_NAMES = 13
  159. SECPKG_ATTR_FLAGS = 14
  160. SECPKG_ATTR_USE_VALIDATED = 15
  161. SECPKG_ATTR_CREDENTIAL_NAME = 16
  162. SECPKG_ATTR_TARGET_INFORMATION = 17
  163. SECPKG_ATTR_ACCESS_TOKEN = 18
  164. SECPKG_ATTR_TARGET = 19
  165. SECPKG_ATTR_AUTHENTICATION_ID = 20
  166. ## attributes from schannel.h
  167. SECPKG_ATTR_REMOTE_CERT_CONTEXT = 83
  168. SECPKG_ATTR_LOCAL_CERT_CONTEXT = 84
  169. SECPKG_ATTR_ROOT_STORE = 85
  170. SECPKG_ATTR_SUPPORTED_ALGS = 86
  171. SECPKG_ATTR_CIPHER_STRENGTHS = 87
  172. SECPKG_ATTR_SUPPORTED_PROTOCOLS = 88
  173. SECPKG_ATTR_ISSUER_LIST_EX = 89
  174. SECPKG_ATTR_CONNECTION_INFO = 90
  175. SECPKG_ATTR_EAP_KEY_BLOCK = 91
  176. SECPKG_ATTR_MAPPED_CRED_ATTR = 92
  177. SECPKG_ATTR_SESSION_INFO = 93
  178. SECPKG_ATTR_APP_DATA = 94
  179. SECPKG_NEGOTIATION_COMPLETE = 0
  180. SECPKG_NEGOTIATION_OPTIMISTIC = 1
  181. SECPKG_NEGOTIATION_IN_PROGRESS = 2
  182. SECPKG_NEGOTIATION_DIRECT = 3
  183. SECPKG_NEGOTIATION_TRY_MULTICRED = 4
  184. SECPKG_CONTEXT_EXPORT_RESET_NEW = 1
  185. SECPKG_CONTEXT_EXPORT_DELETE_OLD = 2
  186. SECQOP_WRAP_NO_ENCRYPT = (-2147483647)
  187. SECURITY_ENTRYPOINT_ANSIW = "InitSecurityInterfaceW"
  188. SECURITY_ENTRYPOINT_ANSIA = "InitSecurityInterfaceA"
  189. SECURITY_ENTRYPOINT16 = "INITSECURITYINTERFACEA"
  190. SECURITY_ENTRYPOINT_ANSI = SECURITY_ENTRYPOINT_ANSIW
  191. SECURITY_ENTRYPOINT_ANSI = SECURITY_ENTRYPOINT_ANSIA
  192. SECURITY_ENTRYPOINT = SECURITY_ENTRYPOINT16
  193. SECURITY_ENTRYPOINT_ANSI = SECURITY_ENTRYPOINT16
  194. SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION = 1
  195. SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION_2 = 2
  196. SASL_OPTION_SEND_SIZE = 1
  197. SASL_OPTION_RECV_SIZE = 2
  198. SASL_OPTION_AUTHZ_STRING = 3
  199. SASL_OPTION_AUTHZ_PROCESSING = 4
  200. SEC_WINNT_AUTH_IDENTITY_ANSI = 1
  201. SEC_WINNT_AUTH_IDENTITY_UNICODE = 2
  202. SEC_WINNT_AUTH_IDENTITY_VERSION = 512
  203. SEC_WINNT_AUTH_IDENTITY_MARSHALLED = 4
  204. SEC_WINNT_AUTH_IDENTITY_ONLY = 8
  205. SECPKG_OPTIONS_TYPE_UNKNOWN = 0
  206. SECPKG_OPTIONS_TYPE_LSA = 1
  207. SECPKG_OPTIONS_TYPE_SSPI = 2
  208. SECPKG_OPTIONS_PERMANENT = 1
  209. SEC_E_INSUFFICIENT_MEMORY = -2146893056
  210. SEC_E_INVALID_HANDLE = -2146893055
  211. SEC_E_UNSUPPORTED_FUNCTION = -2146893054
  212. SEC_E_TARGET_UNKNOWN = -2146893053
  213. SEC_E_INTERNAL_ERROR = -2146893052
  214. SEC_E_SECPKG_NOT_FOUND = -2146893051
  215. SEC_E_NOT_OWNER = -2146893050
  216. SEC_E_CANNOT_INSTALL = -2146893049
  217. SEC_E_INVALID_TOKEN = -2146893048
  218. SEC_E_CANNOT_PACK = -2146893047
  219. SEC_E_QOP_NOT_SUPPORTED = -2146893046
  220. SEC_E_NO_IMPERSONATION = -2146893045
  221. SEC_E_LOGON_DENIED = -2146893044
  222. SEC_E_UNKNOWN_CREDENTIALS = -2146893043
  223. SEC_E_NO_CREDENTIALS = -2146893042
  224. SEC_E_MESSAGE_ALTERED = -2146893041
  225. SEC_E_OUT_OF_SEQUENCE = -2146893040
  226. SEC_E_NO_AUTHENTICATING_AUTHORITY = -2146893039
  227. SEC_I_CONTINUE_NEEDED = 590610
  228. SEC_I_COMPLETE_NEEDED = 590611
  229. SEC_I_COMPLETE_AND_CONTINUE = 590612
  230. SEC_I_LOCAL_LOGON = 590613
  231. SEC_E_BAD_PKGID = -2146893034
  232. SEC_E_CONTEXT_EXPIRED = -2146893033
  233. SEC_I_CONTEXT_EXPIRED = 590615
  234. SEC_E_INCOMPLETE_MESSAGE = -2146893032
  235. SEC_E_INCOMPLETE_CREDENTIALS = -2146893024
  236. SEC_E_BUFFER_TOO_SMALL = -2146893023
  237. SEC_I_INCOMPLETE_CREDENTIALS = 590624
  238. SEC_I_RENEGOTIATE = 590625
  239. SEC_E_WRONG_PRINCIPAL = -2146893022
  240. SEC_I_NO_LSA_CONTEXT = 590627
  241. SEC_E_TIME_SKEW = -2146893020
  242. SEC_E_UNTRUSTED_ROOT = -2146893019
  243. SEC_E_ILLEGAL_MESSAGE = -2146893018
  244. SEC_E_CERT_UNKNOWN = -2146893017
  245. SEC_E_CERT_EXPIRED = -2146893016
  246. SEC_E_ENCRYPT_FAILURE = -2146893015
  247. SEC_E_DECRYPT_FAILURE = -2146893008
  248. SEC_E_ALGORITHM_MISMATCH = -2146893007
  249. SEC_E_SECURITY_QOS_FAILED = -2146893006
  250. SEC_E_UNFINISHED_CONTEXT_DELETED = -2146893005
  251. SEC_E_NO_TGT_REPLY = -2146893004
  252. SEC_E_NO_IP_ADDRESSES = -2146893003
  253. SEC_E_WRONG_CREDENTIAL_HANDLE = -2146893002
  254. SEC_E_CRYPTO_SYSTEM_INVALID = -2146893001
  255. SEC_E_MAX_REFERRALS_EXCEEDED = -2146893000
  256. SEC_E_MUST_BE_KDC = -2146892999
  257. SEC_E_STRONG_CRYPTO_NOT_SUPPORTED = -2146892998
  258. SEC_E_TOO_MANY_PRINCIPALS = -2146892997
  259. SEC_E_NO_PA_DATA = -2146892996
  260. SEC_E_PKINIT_NAME_MISMATCH = -2146892995
  261. SEC_E_SMARTCARD_LOGON_REQUIRED = -2146892994
  262. SEC_E_SHUTDOWN_IN_PROGRESS = -2146892993
  263. SEC_E_KDC_INVALID_REQUEST = -2146892992
  264. SEC_E_KDC_UNABLE_TO_REFER = -2146892991
  265. SEC_E_KDC_UNKNOWN_ETYPE = -2146892990
  266. SEC_E_UNSUPPORTED_PREAUTH = -2146892989
  267. SEC_E_DELEGATION_REQUIRED = -2146892987
  268. SEC_E_BAD_BINDINGS = -2146892986
  269. SEC_E_MULTIPLE_ACCOUNTS = -2146892985
  270. SEC_E_NO_KERB_KEY = -2146892984
  271. ERROR_IPSEC_QM_POLICY_EXISTS = 13000
  272. ERROR_IPSEC_QM_POLICY_NOT_FOUND = 13001
  273. ERROR_IPSEC_QM_POLICY_IN_USE = 13002
  274. ERROR_IPSEC_MM_POLICY_EXISTS = 13003
  275. ERROR_IPSEC_MM_POLICY_NOT_FOUND = 13004
  276. ERROR_IPSEC_MM_POLICY_IN_USE = 13005
  277. ERROR_IPSEC_MM_FILTER_EXISTS = 13006
  278. ERROR_IPSEC_MM_FILTER_NOT_FOUND = 13007
  279. ERROR_IPSEC_TRANSPORT_FILTER_EXISTS = 13008
  280. ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND = 13009
  281. ERROR_IPSEC_MM_AUTH_EXISTS = 13010
  282. ERROR_IPSEC_MM_AUTH_NOT_FOUND = 13011
  283. ERROR_IPSEC_MM_AUTH_IN_USE = 13012
  284. ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND = 13013
  285. ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND = 13014
  286. ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND = 13015
  287. ERROR_IPSEC_TUNNEL_FILTER_EXISTS = 13016
  288. ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND = 13017
  289. ERROR_IPSEC_MM_FILTER_PENDING_DELETION = 13018
  290. ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION = 13019
  291. ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION = 13020
  292. ERROR_IPSEC_MM_POLICY_PENDING_DELETION = 13021
  293. ERROR_IPSEC_MM_AUTH_PENDING_DELETION = 13022
  294. ERROR_IPSEC_QM_POLICY_PENDING_DELETION = 13023
  295. WARNING_IPSEC_MM_POLICY_PRUNED = 13024
  296. WARNING_IPSEC_QM_POLICY_PRUNED = 13025
  297. ERROR_IPSEC_IKE_NEG_STATUS_BEGIN = 13800
  298. ERROR_IPSEC_IKE_AUTH_FAIL = 13801
  299. ERROR_IPSEC_IKE_ATTRIB_FAIL = 13802
  300. ERROR_IPSEC_IKE_NEGOTIATION_PENDING = 13803
  301. ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR = 13804
  302. ERROR_IPSEC_IKE_TIMED_OUT = 13805
  303. ERROR_IPSEC_IKE_NO_CERT = 13806
  304. ERROR_IPSEC_IKE_SA_DELETED = 13807
  305. ERROR_IPSEC_IKE_SA_REAPED = 13808
  306. ERROR_IPSEC_IKE_MM_ACQUIRE_DROP = 13809
  307. ERROR_IPSEC_IKE_QM_ACQUIRE_DROP = 13810
  308. ERROR_IPSEC_IKE_QUEUE_DROP_MM = 13811
  309. ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM = 13812
  310. ERROR_IPSEC_IKE_DROP_NO_RESPONSE = 13813
  311. ERROR_IPSEC_IKE_MM_DELAY_DROP = 13814
  312. ERROR_IPSEC_IKE_QM_DELAY_DROP = 13815
  313. ERROR_IPSEC_IKE_ERROR = 13816
  314. ERROR_IPSEC_IKE_CRL_FAILED = 13817
  315. ERROR_IPSEC_IKE_INVALID_KEY_USAGE = 13818
  316. ERROR_IPSEC_IKE_INVALID_CERT_TYPE = 13819
  317. ERROR_IPSEC_IKE_NO_PRIVATE_KEY = 13820
  318. ERROR_IPSEC_IKE_DH_FAIL = 13822
  319. ERROR_IPSEC_IKE_INVALID_HEADER = 13824
  320. ERROR_IPSEC_IKE_NO_POLICY = 13825
  321. ERROR_IPSEC_IKE_INVALID_SIGNATURE = 13826
  322. ERROR_IPSEC_IKE_KERBEROS_ERROR = 13827
  323. ERROR_IPSEC_IKE_NO_PUBLIC_KEY = 13828
  324. ERROR_IPSEC_IKE_PROCESS_ERR = 13829
  325. ERROR_IPSEC_IKE_PROCESS_ERR_SA = 13830
  326. ERROR_IPSEC_IKE_PROCESS_ERR_PROP = 13831
  327. ERROR_IPSEC_IKE_PROCESS_ERR_TRANS = 13832
  328. ERROR_IPSEC_IKE_PROCESS_ERR_KE = 13833
  329. ERROR_IPSEC_IKE_PROCESS_ERR_ID = 13834
  330. ERROR_IPSEC_IKE_PROCESS_ERR_CERT = 13835
  331. ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ = 13836
  332. ERROR_IPSEC_IKE_PROCESS_ERR_HASH = 13837
  333. ERROR_IPSEC_IKE_PROCESS_ERR_SIG = 13838
  334. ERROR_IPSEC_IKE_PROCESS_ERR_NONCE = 13839
  335. ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY = 13840
  336. ERROR_IPSEC_IKE_PROCESS_ERR_DELETE = 13841
  337. ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR = 13842
  338. ERROR_IPSEC_IKE_INVALID_PAYLOAD = 13843
  339. ERROR_IPSEC_IKE_LOAD_SOFT_SA = 13844
  340. ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN = 13845
  341. ERROR_IPSEC_IKE_INVALID_COOKIE = 13846
  342. ERROR_IPSEC_IKE_NO_PEER_CERT = 13847
  343. ERROR_IPSEC_IKE_PEER_CRL_FAILED = 13848
  344. ERROR_IPSEC_IKE_POLICY_CHANGE = 13849
  345. ERROR_IPSEC_IKE_NO_MM_POLICY = 13850
  346. ERROR_IPSEC_IKE_NOTCBPRIV = 13851
  347. ERROR_IPSEC_IKE_SECLOADFAIL = 13852
  348. ERROR_IPSEC_IKE_FAILSSPINIT = 13853
  349. ERROR_IPSEC_IKE_FAILQUERYSSP = 13854
  350. ERROR_IPSEC_IKE_SRVACQFAIL = 13855
  351. ERROR_IPSEC_IKE_SRVQUERYCRED = 13856
  352. ERROR_IPSEC_IKE_GETSPIFAIL = 13857
  353. ERROR_IPSEC_IKE_INVALID_FILTER = 13858
  354. ERROR_IPSEC_IKE_OUT_OF_MEMORY = 13859
  355. ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED = 13860
  356. ERROR_IPSEC_IKE_INVALID_POLICY = 13861
  357. ERROR_IPSEC_IKE_UNKNOWN_DOI = 13862
  358. ERROR_IPSEC_IKE_INVALID_SITUATION = 13863
  359. ERROR_IPSEC_IKE_DH_FAILURE = 13864
  360. ERROR_IPSEC_IKE_INVALID_GROUP = 13865
  361. ERROR_IPSEC_IKE_ENCRYPT = 13866
  362. ERROR_IPSEC_IKE_DECRYPT = 13867
  363. ERROR_IPSEC_IKE_POLICY_MATCH = 13868
  364. ERROR_IPSEC_IKE_UNSUPPORTED_ID = 13869
  365. ERROR_IPSEC_IKE_INVALID_HASH = 13870
  366. ERROR_IPSEC_IKE_INVALID_HASH_ALG = 13871
  367. ERROR_IPSEC_IKE_INVALID_HASH_SIZE = 13872
  368. ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG = 13873
  369. ERROR_IPSEC_IKE_INVALID_AUTH_ALG = 13874
  370. ERROR_IPSEC_IKE_INVALID_SIG = 13875
  371. ERROR_IPSEC_IKE_LOAD_FAILED = 13876
  372. ERROR_IPSEC_IKE_RPC_DELETE = 13877
  373. ERROR_IPSEC_IKE_BENIGN_REINIT = 13878
  374. ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY = 13879
  375. ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN = 13881
  376. ERROR_IPSEC_IKE_MM_LIMIT = 13882
  377. ERROR_IPSEC_IKE_NEGOTIATION_DISABLED = 13883
  378. ERROR_IPSEC_IKE_NEG_STATUS_END = 13884
  379. CRYPT_E_MSG_ERROR = ((-2146889727))
  380. CRYPT_E_UNKNOWN_ALGO = ((-2146889726))
  381. CRYPT_E_OID_FORMAT = ((-2146889725))
  382. CRYPT_E_INVALID_MSG_TYPE = ((-2146889724))
  383. CRYPT_E_UNEXPECTED_ENCODING = ((-2146889723))
  384. CRYPT_E_AUTH_ATTR_MISSING = ((-2146889722))
  385. CRYPT_E_HASH_VALUE = ((-2146889721))
  386. CRYPT_E_INVALID_INDEX = ((-2146889720))
  387. CRYPT_E_ALREADY_DECRYPTED = ((-2146889719))
  388. CRYPT_E_NOT_DECRYPTED = ((-2146889718))
  389. CRYPT_E_RECIPIENT_NOT_FOUND = ((-2146889717))
  390. CRYPT_E_CONTROL_TYPE = ((-2146889716))
  391. CRYPT_E_ISSUER_SERIALNUMBER = ((-2146889715))
  392. CRYPT_E_SIGNER_NOT_FOUND = ((-2146889714))
  393. CRYPT_E_ATTRIBUTES_MISSING = ((-2146889713))
  394. CRYPT_E_STREAM_MSG_NOT_READY = ((-2146889712))
  395. CRYPT_E_STREAM_INSUFFICIENT_DATA = ((-2146889711))
  396. CRYPT_I_NEW_PROTECTION_REQUIRED = (593938)
  397. CRYPT_E_BAD_LEN = ((-2146885631))
  398. CRYPT_E_BAD_ENCODE = ((-2146885630))
  399. CRYPT_E_FILE_ERROR = ((-2146885629))
  400. CRYPT_E_NOT_FOUND = ((-2146885628))
  401. CRYPT_E_EXISTS = ((-2146885627))
  402. CRYPT_E_NO_PROVIDER = ((-2146885626))
  403. CRYPT_E_SELF_SIGNED = ((-2146885625))
  404. CRYPT_E_DELETED_PREV = ((-2146885624))
  405. CRYPT_E_NO_MATCH = ((-2146885623))
  406. CRYPT_E_UNEXPECTED_MSG_TYPE = ((-2146885622))
  407. CRYPT_E_NO_KEY_PROPERTY = ((-2146885621))
  408. CRYPT_E_NO_DECRYPT_CERT = ((-2146885620))
  409. CRYPT_E_BAD_MSG = ((-2146885619))
  410. CRYPT_E_NO_SIGNER = ((-2146885618))
  411. CRYPT_E_PENDING_CLOSE = ((-2146885617))
  412. CRYPT_E_REVOKED = ((-2146885616))
  413. CRYPT_E_NO_REVOCATION_DLL = ((-2146885615))
  414. CRYPT_E_NO_REVOCATION_CHECK = ((-2146885614))
  415. CRYPT_E_REVOCATION_OFFLINE = ((-2146885613))
  416. CRYPT_E_NOT_IN_REVOCATION_DATABASE = ((-2146885612))
  417. CRYPT_E_INVALID_NUMERIC_STRING = ((-2146885600))
  418. CRYPT_E_INVALID_PRINTABLE_STRING = ((-2146885599))
  419. CRYPT_E_INVALID_IA5_STRING = ((-2146885598))
  420. CRYPT_E_INVALID_X500_STRING = ((-2146885597))
  421. CRYPT_E_NOT_CHAR_STRING = ((-2146885596))
  422. CRYPT_E_FILERESIZED = ((-2146885595))
  423. CRYPT_E_SECURITY_SETTINGS = ((-2146885594))
  424. CRYPT_E_NO_VERIFY_USAGE_DLL = ((-2146885593))
  425. CRYPT_E_NO_VERIFY_USAGE_CHECK = ((-2146885592))
  426. CRYPT_E_VERIFY_USAGE_OFFLINE = ((-2146885591))
  427. CRYPT_E_NOT_IN_CTL = ((-2146885590))
  428. CRYPT_E_NO_TRUSTED_SIGNER = ((-2146885589))
  429. CRYPT_E_MISSING_PUBKEY_PARA = ((-2146885588))
  430. CRYPT_E_OSS_ERROR = ((-2146881536))
  431. ## Kerberos message types for LsaCallAuthenticationPackage (from ntsecapi.h)
  432. KerbDebugRequestMessage = 0
  433. KerbQueryTicketCacheMessage = 1
  434. KerbChangeMachinePasswordMessage = 2
  435. KerbVerifyPacMessage = 3
  436. KerbRetrieveTicketMessage = 4
  437. KerbUpdateAddressesMessage = 5
  438. KerbPurgeTicketCacheMessage = 6
  439. KerbChangePasswordMessage = 7
  440. KerbRetrieveEncodedTicketMessage = 8
  441. KerbDecryptDataMessage = 9
  442. KerbAddBindingCacheEntryMessage = 10
  443. KerbSetPasswordMessage = 11
  444. KerbSetPasswordExMessage = 12
  445. KerbVerifyCredentialsMessage = 13
  446. KerbQueryTicketCacheExMessage = 14
  447. KerbPurgeTicketCacheExMessage = 15
  448. KerbRefreshSmartcardCredentialsMessage = 16
  449. KerbAddExtraCredentialsMessage = 17
  450. KerbQuerySupplementalCredentialsMessage = 18
  451. ## messages used with msv1_0 from ntsecapi.h
  452. MsV1_0Lm20ChallengeRequest = 0
  453. MsV1_0Lm20GetChallengeResponse = 1
  454. MsV1_0EnumerateUsers = 2
  455. MsV1_0GetUserInfo = 3
  456. MsV1_0ReLogonUsers = 4
  457. MsV1_0ChangePassword = 5
  458. MsV1_0ChangeCachedPassword = 6
  459. MsV1_0GenericPassthrough = 7
  460. MsV1_0CacheLogon = 8
  461. MsV1_0SubAuth = 9
  462. MsV1_0DeriveCredential = 10
  463. MsV1_0CacheLookup = 11
  464. MsV1_0SetProcessOption = 12
  465. SEC_E_OK = 0