winemac: Enable localization of strings used to build Mac menus.
[wine.git] / include / sspi.h
blob501406fc5ebdf9a23a0317c65fe0acb7a7e48f3a
1 /*
2 * Copyright (C) 2004 Juan Lang
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef __WINE_SSPI_H__
19 #define __WINE_SSPI_H__
21 /* FIXME: #include <sdkddkver.h> */
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 #define SEC_ENTRY __stdcall
29 typedef WCHAR SEC_WCHAR;
30 typedef CHAR SEC_CHAR;
32 #ifndef __SECSTATUS_DEFINED__
33 #define __SECSTATUS_DEFINED__
34 typedef LONG SECURITY_STATUS;
35 #endif
37 #ifdef UNICODE
38 typedef SEC_WCHAR * SECURITY_PSTR;
39 typedef const SEC_WCHAR * SECURITY_PCSTR;
40 #else
41 typedef SEC_CHAR * SECURITY_PSTR;
42 typedef const SEC_CHAR * SECURITY_PCSTR;
43 #endif
45 #ifndef __SECHANDLE_DEFINED__
46 #define __SECHANDLE_DEFINED__
47 typedef struct _SecHandle
49 ULONG_PTR dwLower;
50 ULONG_PTR dwUpper;
51 } SecHandle, *PSecHandle;
52 #endif
54 #define SecInvalidateHandle(x) do { \
55 ((PSecHandle)(x))->dwLower = ((ULONG_PTR)((INT_PTR)-1)); \
56 ((PSecHandle)(x))->dwUpper = ((ULONG_PTR)((INT_PTR)-1)); \
57 } while (0)
59 #define SecIsValidHandle(x) \
60 ((((PSecHandle)(x))->dwLower != ((ULONG_PTR)(INT_PTR)-1)) && \
61 (((PSecHandle)(x))->dwUpper != ((ULONG_PTR)(INT_PTR)-1)))
63 typedef SecHandle CredHandle;
64 typedef PSecHandle PCredHandle;
66 #ifndef __WINE_CTXTHANDLE_DEFINED__
67 #define __WINE_CTXTHANDLE_DEFINED__
68 typedef SecHandle CtxtHandle;
69 typedef PSecHandle PCtxtHandle;
70 #endif
72 typedef struct _SECURITY_INTEGER
74 ULONG LowPart;
75 LONG HighPart;
76 } SECURITY_INTEGER, *PSECURITY_INTEGER;
77 typedef SECURITY_INTEGER TimeStamp, *PTimeStamp;
79 #ifndef __UNICODE_STRING_DEFINED__
80 #define __UNICODE_STRING_DEFINED__
81 typedef struct _UNICODE_STRING {
82 USHORT Length; /* bytes */
83 USHORT MaximumLength; /* bytes */
84 PWSTR Buffer;
85 } UNICODE_STRING, *PUNICODE_STRING;
86 #endif
88 typedef UNICODE_STRING SECURITY_STRING, *PSECURITY_STRING;
90 #define SSPIPFC_CREDPROV_DO_NOT_SAVE 0x00000001
91 #define SSPIPFC_NO_CHECKBOX 0x00000002
93 typedef void *PSEC_WINNT_AUTH_IDENTITY_OPAQUE;
95 SECURITY_STATUS SEC_ENTRY SspiEncodeAuthIdentityAsStrings(
96 PSEC_WINNT_AUTH_IDENTITY_OPAQUE, PCWSTR *, PCWSTR *, PCWSTR *);
98 SECURITY_STATUS SEC_ENTRY SspiEncodeStringsAsAuthIdentity(
99 PCWSTR, PCWSTR, PCWSTR, PSEC_WINNT_AUTH_IDENTITY_OPAQUE *);
101 ULONG SEC_ENTRY SspiPromptForCredentialsA(PCSTR, void *,
102 ULONG, PCSTR, PSEC_WINNT_AUTH_IDENTITY_OPAQUE,
103 PSEC_WINNT_AUTH_IDENTITY_OPAQUE *, int *, ULONG);
104 ULONG SEC_ENTRY SspiPromptForCredentialsW(PCWSTR, void *,
105 ULONG, PCWSTR, PSEC_WINNT_AUTH_IDENTITY_OPAQUE,
106 PSEC_WINNT_AUTH_IDENTITY_OPAQUE *, int *, ULONG);
107 #define SspiPromptForCredentials WINELIB_NAME_AW(SspiPromptForCredentials)
109 void SEC_ENTRY SspiFreeAuthIdentity(PSEC_WINNT_AUTH_IDENTITY_OPAQUE);
110 void SEC_ENTRY SspiLocalFree(void *);
111 void SEC_ENTRY SspiZeroAuthIdentity(PSEC_WINNT_AUTH_IDENTITY_OPAQUE);
113 typedef struct _SecPkgInfoA
115 ULONG fCapabilities;
116 USHORT wVersion;
117 USHORT wRPCID;
118 ULONG cbMaxToken;
119 SEC_CHAR *Name;
120 SEC_CHAR *Comment;
121 } SecPkgInfoA, *PSecPkgInfoA;
123 typedef struct _SecPkgInfoW
125 ULONG fCapabilities;
126 USHORT wVersion;
127 USHORT wRPCID;
128 ULONG cbMaxToken;
129 SEC_WCHAR *Name;
130 SEC_WCHAR *Comment;
131 } SecPkgInfoW, *PSecPkgInfoW;
133 #define SecPkgInfo WINELIB_NAME_AW(SecPkgInfo)
134 #define PSecPkgInfo WINELIB_NAME_AW(PSecPkgInfo)
136 /* fCapabilities field of SecPkgInfo */
137 #define SECPKG_FLAG_INTEGRITY 0x00000001
138 #define SECPKG_FLAG_PRIVACY 0x00000002
139 #define SECPKG_FLAG_TOKEN_ONLY 0x00000004
140 #define SECPKG_FLAG_DATAGRAM 0x00000008
141 #define SECPKG_FLAG_CONNECTION 0x00000010
142 #define SECPKG_FLAG_MULTI_REQUIRED 0x00000020
143 #define SECPKG_FLAG_CLIENT_ONLY 0x00000040
144 #define SECPKG_FLAG_EXTENDED_ERROR 0x00000080
145 #define SECPKG_FLAG_IMPERSONATION 0x00000100
146 #define SECPKG_FLAG_ACCEPT_WIN32_NAME 0x00000200
147 #define SECPKG_FLAG_STREAM 0x00000400
148 #define SECPKG_FLAG_NEGOTIABLE 0x00000800
149 #define SECPKG_FLAG_GSS_COMPATIBLE 0x00001000
150 #define SECPKG_FLAG_LOGON 0x00002000
151 #define SECPKG_FLAG_ASCII_BUFFERS 0x00004000
152 #define SECPKG_FLAG_FRAGMENT 0x00008000
153 #define SECPKG_FLAG_MUTUAL_AUTH 0x00010000
154 #define SECPKG_FLAG_DELEGATION 0x00020000
155 #define SECPKG_FLAG_READONLY_WITH_CHECKSUM 0x00040000
156 #define SECPKG_FLAG_RESTRICTED_TOKENS 0x00080000
157 #define SECPKG_FLAG_NEGO_EXTENDER 0x00100000
158 #define SECPKG_FLAG_NEGOTIABLE2 0x00200000
159 #define SECPKG_FLAG_APPCONTAINER_PASSTHROUGH 0x00400000
160 #define SECPKG_FLAG_APPCONTAINER_CHECKS 0x00800000
162 #define SECPKG_ID_NONE 0xffff
164 typedef struct _SecBuffer
166 ULONG cbBuffer;
167 ULONG BufferType;
168 PVOID pvBuffer;
169 } SecBuffer, *PSecBuffer;
171 /* values for BufferType */
172 #define SECBUFFER_EMPTY 0
173 #define SECBUFFER_DATA 1
174 #define SECBUFFER_TOKEN 2
175 #define SECBUFFER_PKG_PARAMS 3
176 #define SECBUFFER_MISSING 4
177 #define SECBUFFER_EXTRA 5
178 #define SECBUFFER_STREAM_TRAILER 6
179 #define SECBUFFER_STREAM_HEADER 7
180 #define SECBUFFER_NEGOTIATION_INFO 8
181 #define SECBUFFER_PADDING 9
182 #define SECBUFFER_STREAM 10
183 #define SECBUFFER_MECHLIST 11
184 #define SECBUFFER_MECHLIST_SIGNATURE 12
185 #define SECBUFFER_TARGET 13
186 #define SECBUFFER_CHANNEL_BINDINGS 14
188 #define SECBUFFER_ATTRMASK 0xf0000000
189 #define SECBUFFER_READONLY 0x80000000
190 #define SECBUFFER_READONLY_WITH_CHECKSUM 0x10000000
191 #define SECBUFFER_RESERVED 0x60000000
193 typedef struct _SecBufferDesc
195 ULONG ulVersion;
196 ULONG cBuffers;
197 PSecBuffer pBuffers;
198 } SecBufferDesc, *PSecBufferDesc;
200 /* values for ulVersion */
201 #define SECBUFFER_VERSION 0
203 typedef void (SEC_ENTRY *SEC_GET_KEY_FN)(void *Arg, void *Principal,
204 ULONG KeyVer, void **Key, SECURITY_STATUS *Status);
206 SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesA(PULONG pcPackages,
207 PSecPkgInfoA *ppPackageInfo);
208 SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(PULONG pcPackages,
209 PSecPkgInfoW *ppPackageInfo);
210 #define EnumerateSecurityPackages WINELIB_NAME_AW(EnumerateSecurityPackages)
212 typedef SECURITY_STATUS (SEC_ENTRY *ENUMERATE_SECURITY_PACKAGES_FN_A)(PULONG,
213 PSecPkgInfoA *);
214 typedef SECURITY_STATUS (SEC_ENTRY *ENUMERATE_SECURITY_PACKAGES_FN_W)(PULONG,
215 PSecPkgInfoW *);
216 #define ENUMERATE_SECURITY_PACKAGES_FN WINELIB_NAME_AW(ENUMERATE_SECURITY_PACKAGES_FN_)
218 SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesA(
219 PCredHandle phCredential, ULONG ulAttribute, void *pBuffer);
220 SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(
221 PCredHandle phCredential, ULONG ulAttribute, void *pBuffer);
222 #define QueryCredentialsAttributes WINELIB_NAME_AW(QueryCredentialsAttributes)
224 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_CREDENTIALS_ATTRIBUTES_FN_A)
225 (PCredHandle, ULONG, PVOID);
226 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_CREDENTIALS_ATTRIBUTES_FN_W)
227 (PCredHandle, ULONG, PVOID);
228 #define QUERY_CREDENTIALS_ATTRIBUTES_FN WINELIB_NAME_AW(QUERY_CREDENTIALS_ATTRIBUTES_FN_)
230 typedef struct _SEC_CHANNEL_BINDINGS {
231 ULONG dwInitiatorAddrType;
232 ULONG cbInitiatorLength;
233 ULONG dwInitiatorOffset;
234 ULONG dwAcceptorAddrType;
235 ULONG cbAcceptorLength;
236 ULONG dwAcceptorOffset;
237 ULONG cbApplicationDataLength;
238 ULONG dwApplicationDataOffset;
239 } SEC_CHANNEL_BINDINGS, *PSEC_CHANNEL_BINDINGS;
241 /* values for QueryCredentialsAttributes ulAttribute */
242 #define SECPKG_CRED_ATTR_NAMES 1
244 /* types for QueryCredentialsAttributes */
245 typedef struct _SecPkgCredentials_NamesA
247 SEC_CHAR *sUserName;
248 } SecPkgCredentials_NamesA, *PSecPkgCredentials_NamesA;
250 typedef struct _SecPkgCredentials_NamesW
252 SEC_WCHAR *sUserName;
253 } SecPkgCredentials_NamesW, *PSecPkgCredentials_NamesW;
255 #define SecPkgCredentials_Names WINELIB_NAME_AW(SecPkgCredentials_Names)
257 SECURITY_STATUS SEC_ENTRY AcquireCredentialsHandleA(
258 SEC_CHAR *pszPrincipal, SEC_CHAR *pszPackage, ULONG fCredentialsUse,
259 PLUID pvLogonID, PVOID pAuthData, SEC_GET_KEY_FN pGetKeyFn,
260 PVOID pvGetKeyArgument, PCredHandle phCredential, PTimeStamp ptsExpiry);
261 SECURITY_STATUS SEC_ENTRY AcquireCredentialsHandleW(
262 SEC_WCHAR *pszPrincipal, SEC_WCHAR *pszPackage, ULONG fCredentialsUse,
263 PLUID pvLogonID, PVOID pAuthData, SEC_GET_KEY_FN pGetKeyFn,
264 PVOID pvGetKeyArgument, PCredHandle phCredential, PTimeStamp ptsExpiry);
265 #define AcquireCredentialsHandle WINELIB_NAME_AW(AcquireCredentialsHandle)
267 /* flags for fCredentialsUse */
268 #define SECPKG_CRED_INBOUND 0x00000001
269 #define SECPKG_CRED_OUTBOUND 0x00000002
270 #define SECPKG_CRED_BOTH (SECPKG_CRED_INBOUND | SECPKG_CRED_OUTBOUND)
271 #define SECPKG_CRED_DEFAULT 0x00000004
272 #define SECPKG_CRED_RESERVED 0xf0000000
274 typedef SECURITY_STATUS (SEC_ENTRY *ACQUIRE_CREDENTIALS_HANDLE_FN_A)(
275 SEC_CHAR *, SEC_CHAR *, ULONG, PLUID, PVOID, SEC_GET_KEY_FN, PVOID,
276 PCredHandle, PTimeStamp);
277 typedef SECURITY_STATUS (SEC_ENTRY *ACQUIRE_CREDENTIALS_HANDLE_FN_W)(
278 SEC_WCHAR *, SEC_WCHAR *, ULONG, PLUID, PVOID, SEC_GET_KEY_FN, PVOID,
279 PCredHandle, PTimeStamp);
280 #define ACQUIRE_CREDENTIALS_HANDLE_FN WINELIB_NAME_AW(ACQUIRE_CREDENTIALS_HANDLE_FN_)
282 SECURITY_STATUS SEC_ENTRY FreeContextBuffer(PVOID pv);
284 typedef SECURITY_STATUS (SEC_ENTRY *FREE_CONTEXT_BUFFER_FN)(PVOID);
286 SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(PCredHandle
287 phCredential);
289 #define FreeCredentialHandle FreeCredentialsHandle
291 typedef SECURITY_STATUS (SEC_ENTRY *FREE_CREDENTIALS_HANDLE_FN)(PCredHandle);
293 SECURITY_STATUS SEC_ENTRY InitializeSecurityContextA(
294 PCredHandle phCredential, PCtxtHandle phContext,
295 SEC_CHAR *pszTargetName, ULONG fContextReq,
296 ULONG Reserved1, ULONG TargetDataRep, PSecBufferDesc pInput,
297 ULONG Reserved2, PCtxtHandle phNewContext, PSecBufferDesc pOutput,
298 ULONG *pfContextAttr, PTimeStamp ptsExpiry);
299 SECURITY_STATUS SEC_ENTRY InitializeSecurityContextW(
300 PCredHandle phCredential, PCtxtHandle phContext,
301 SEC_WCHAR *pszTargetName, ULONG fContextReq,
302 ULONG Reserved1, ULONG TargetDataRep, PSecBufferDesc pInput,
303 ULONG Reserved2, PCtxtHandle phNewContext, PSecBufferDesc pOutput,
304 ULONG *pfContextAttr, PTimeStamp ptsExpiry);
305 #define InitializeSecurityContext WINELIB_NAME_AW(InitializeSecurityContext)
307 typedef SECURITY_STATUS (SEC_ENTRY *INITIALIZE_SECURITY_CONTEXT_FN_A)
308 (PCredHandle, PCtxtHandle, SEC_CHAR *, ULONG, ULONG, ULONG, PSecBufferDesc,
309 ULONG, PCtxtHandle, PSecBufferDesc, ULONG *, PTimeStamp);
310 typedef SECURITY_STATUS (SEC_ENTRY *INITIALIZE_SECURITY_CONTEXT_FN_W)
311 (PCredHandle, PCtxtHandle, SEC_WCHAR *, ULONG, ULONG, ULONG, PSecBufferDesc,
312 ULONG, PCtxtHandle, PSecBufferDesc, ULONG *, PTimeStamp);
313 #define INITIALIZE_SECURITY_CONTEXT_FN WINELIB_NAME_AW(INITIALIZE_SECURITY_CONTEXT_FN_)
315 /* flags for InitializeSecurityContext fContextReq and pfContextAttr */
316 #define ISC_REQ_DELEGATE 0x00000001
317 #define ISC_REQ_MUTUAL_AUTH 0x00000002
318 #define ISC_REQ_REPLAY_DETECT 0x00000004
319 #define ISC_REQ_SEQUENCE_DETECT 0x00000008
320 #define ISC_REQ_CONFIDENTIALITY 0x00000010
321 #define ISC_REQ_USE_SESSION_KEY 0x00000020
322 #define ISC_REQ_PROMPT_FOR_CREDS 0x00000040
323 #define ISC_REQ_USE_SUPPLIED_CREDS 0x00000080
324 #define ISC_REQ_ALLOCATE_MEMORY 0x00000100
325 #define ISC_REQ_USE_DCE_STYLE 0x00000200
326 #define ISC_REQ_DATAGRAM 0x00000400
327 #define ISC_REQ_CONNECTION 0x00000800
328 #define ISC_REQ_CALL_LEVEL 0x00001000
329 #define ISC_REQ_FRAGMENT_SUPPLIED 0x00002000
330 #define ISC_REQ_EXTENDED_ERROR 0x00004000
331 #define ISC_REQ_STREAM 0x00008000
332 #define ISC_REQ_INTEGRITY 0x00010000
333 #define ISC_REQ_IDENTIFY 0x00020000
334 #define ISC_REQ_NULL_SESSION 0x00040000
335 #define ISC_REQ_MANUAL_CRED_VALIDATION 0x00080000
336 #define ISC_REQ_RESERVED1 0x00100000
337 #define ISC_REQ_FRAGMENT_TO_FIT 0x00200000
339 #define ISC_RET_DELEGATE 0x00000001
340 #define ISC_RET_MUTUAL_AUTH 0x00000002
341 #define ISC_RET_REPLAY_DETECT 0x00000004
342 #define ISC_RET_SEQUENCE_DETECT 0x00000008
343 #define ISC_RET_CONFIDENTIALITY 0x00000010
344 #define ISC_RET_USE_SESSION_KEY 0x00000020
345 #define ISC_RET_USED_COLLECTED_CREDS 0x00000040
346 #define ISC_RET_USED_SUPPLIED_CREDS 0x00000080
347 #define ISC_RET_ALLOCATED_MEMORY 0x00000100
348 #define ISC_RET_USED_DCE_STYLE 0x00000200
349 #define ISC_RET_DATAGRAM 0x00000400
350 #define ISC_RET_CONNECTION 0x00000800
351 #define ISC_RET_INTERMEDIATE_RETURN 0x00001000
352 #define ISC_RET_CALL_LEVEL 0x00002000
353 #define ISC_RET_EXTENDED_ERROR 0x00004000
354 #define ISC_RET_STREAM 0x00008000
355 #define ISC_RET_INTEGRITY 0x00010000
356 #define ISC_RET_IDENTIFY 0x00020000
357 #define ISC_RET_NULL_SESSION 0x00040000
358 #define ISC_RET_MANUAL_CRED_VALIDATION 0x00080000
359 #define ISC_RET_RESERVED1 0x00100000
360 #define ISC_RET_FRAGMENT_ONLY 0x00200000
362 SECURITY_STATUS SEC_ENTRY AcceptSecurityContext(
363 PCredHandle phCredential, PCtxtHandle phContext, PSecBufferDesc pInput,
364 ULONG fContextReq, ULONG TargetDataRep,
365 PCtxtHandle phNewContext, PSecBufferDesc pOutput,
366 ULONG *pfContextAttr, PTimeStamp ptsExpiry);
368 typedef SECURITY_STATUS (SEC_ENTRY *ACCEPT_SECURITY_CONTEXT_FN)(PCredHandle,
369 PCtxtHandle, PSecBufferDesc, ULONG, ULONG, PCtxtHandle,
370 PSecBufferDesc, ULONG *, PTimeStamp);
372 /* flags for AcceptSecurityContext fContextReq and pfContextAttr */
373 #define ASC_REQ_DELEGATE 0x00000001
374 #define ASC_REQ_MUTUAL_AUTH 0x00000002
375 #define ASC_REQ_REPLAY_DETECT 0x00000004
376 #define ASC_REQ_SEQUENCE_DETECT 0x00000008
377 #define ASC_REQ_CONFIDENTIALITY 0x00000010
378 #define ASC_REQ_USE_SESSION_KEY 0x00000020
379 #define ASC_REQ_ALLOCATE_MEMORY 0x00000100
380 #define ASC_REQ_USE_DCE_STYLE 0x00000200
381 #define ASC_REQ_DATAGRAM 0x00000400
382 #define ASC_REQ_CONNECTION 0x00000800
383 #define ASC_REQ_CALL_LEVEL 0x00001000
384 #define ASC_REQ_FRAGMENT_SUPPLIED 0x00002000
385 #define ASC_REQ_EXTENDED_ERROR 0x00008000
386 #define ASC_REQ_STREAM 0x00010000
387 #define ASC_REQ_INTEGRITY 0x00020000
388 #define ASC_REQ_LICENSING 0x00040000
389 #define ASC_REQ_IDENTIFY 0x00080000
390 #define ASC_REQ_ALLOW_NULL_SESSION 0x00100000
391 #define ASC_REQ_ALLOW_NON_USER_LOGONS 0x00200000
392 #define ASC_REQ_ALLOW_CONTEXT_REPLAY 0x00400000
393 #define ASC_REQ_FRAGMENT_TO_FIT 0x00800000
394 #define ASC_REQ_FRAGMENT_NO_TOKEN 0x01000000
396 #define ASC_RET_DELEGATE 0x00000001
397 #define ASC_RET_MUTUAL_AUTH 0x00000002
398 #define ASC_RET_REPLAY_DETECT 0x00000004
399 #define ASC_RET_SEQUENCE_DETECT 0x00000008
400 #define ASC_RET_CONFIDENTIALITY 0x00000010
401 #define ASC_RET_USE_SESSION_KEY 0x00000020
402 #define ASC_RET_ALLOCATED_MEMORY 0x00000100
403 #define ASC_RET_USED_DCE_STYLE 0x00000200
404 #define ASC_RET_DATAGRAM 0x00000400
405 #define ASC_RET_CONNECTION 0x00000800
406 #define ASC_RET_CALL_LEVEL 0x00002000
407 #define ASC_RET_THIRD_LEG_FAILED 0x00004000
408 #define ASC_RET_EXTENDED_ERROR 0x00008000
409 #define ASC_RET_STREAM 0x00010000
410 #define ASC_RET_INTEGRITY 0x00020000
411 #define ASC_RET_LICENSING 0x00040000
412 #define ASC_RET_IDENTIFY 0x00080000
413 #define ASC_RET_NULL_SESSION 0x00100000
414 #define ASC_RET_ALLOW_NON_USER_LOGONS 0x00200000
415 #define ASC_RET_ALLOW_CONTEXT_REPLAY 0x00400000
416 #define ASC_RET_FRAGMENT_ONLY 0x00800000
417 #define ASC_RET_NO_TOKEN 0x01000000
419 /* values for TargetDataRep */
420 #define SECURITY_NATIVE_DREP 0x00000010
421 #define SECURITY_NETWORK_DREP 0x00000000
423 SECURITY_STATUS SEC_ENTRY CompleteAuthToken(PCtxtHandle phContext,
424 PSecBufferDesc pToken);
426 typedef SECURITY_STATUS (SEC_ENTRY *COMPLETE_AUTH_TOKEN_FN)(PCtxtHandle,
427 PSecBufferDesc);
429 SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(PCtxtHandle phContext);
431 typedef SECURITY_STATUS (SEC_ENTRY *DELETE_SECURITY_CONTEXT_FN)(PCtxtHandle);
433 SECURITY_STATUS SEC_ENTRY ApplyControlToken(PCtxtHandle phContext,
434 PSecBufferDesc pInput);
436 typedef SECURITY_STATUS (SEC_ENTRY *APPLY_CONTROL_TOKEN_FN)(PCtxtHandle,
437 PSecBufferDesc);
439 SECURITY_STATUS SEC_ENTRY QueryContextAttributesA(PCtxtHandle phContext,
440 ULONG ulAttribute, void *pBuffer);
441 SECURITY_STATUS SEC_ENTRY QueryContextAttributesW(PCtxtHandle phContext,
442 ULONG ulAttribute, void *pBuffer);
443 #define QueryContextAttributes WINELIB_NAME_AW(QueryContextAttributes)
445 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_CONTEXT_ATTRIBUTES_FN_A)(PCtxtHandle,
446 ULONG, void *);
447 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_CONTEXT_ATTRIBUTES_FN_W)(PCtxtHandle,
448 ULONG, void *);
449 #define QUERY_CONTEXT_ATTRIBUTES_FN WINELIB_NAME_AW(QUERY_CONTEXT_ATTRIBUTES_FN_)
451 /* values for QueryContextAttributes/SetContextAttributes ulAttribute */
452 #define SECPKG_ATTR_SIZES 0
453 #define SECPKG_ATTR_NAMES 1
454 #define SECPKG_ATTR_LIFESPAN 2
455 #define SECPKG_ATTR_DCE_INFO 3
456 #define SECPKG_ATTR_STREAM_SIZES 4
457 #define SECPKG_ATTR_KEY_INFO 5
458 #define SECPKG_ATTR_AUTHORITY 6
459 #define SECPKG_ATTR_PROTO_INFO 7
460 #define SECPKG_ATTR_PASSWORD_EXPIRY 8
461 #define SECPKG_ATTR_SESSION_KEY 9
462 #define SECPKG_ATTR_PACKAGE_INFO 10
463 #define SECPKG_ATTR_USER_FLAGS 11
464 #define SECPKG_ATTR_NEGOTIATION_INFO 12
465 #define SECPKG_ATTR_NATIVE_NAMES 13
466 #define SECPKG_ATTR_FLAGS 14
467 #define SECPKG_ATTR_USE_VALIDATED 15
468 #define SECPKG_ATTR_CREDENTIAL_NAME 16
469 #define SECPKG_ATTR_TARGET_INFORMATION 17
470 #define SECPKG_ATTR_ACCESS_TOKEN 18
471 #define SECPKG_ATTR_TARGET 19
472 #define SECPKG_ATTR_AUTHENTICATION_ID 20
473 #define SECPKG_ATTR_LOGOFF_TIME 21
474 #define SECPKG_ATTR_NEGO_KEYS 22
475 #define SECPKG_ATTR_PROMPTING_NEEDED 24
476 #define SECPKG_ATTR_UNIQUE_BINDINGS 25
477 #define SECPKG_ATTR_ENDPOINT_BINDINGS 26
478 #define SECPKG_ATTR_CLIENT_SPECIFIED_TARGET 27
479 #define SECPKG_ATTR_LAST_CLIENT_TOKEN_STATUS 30
480 #define SECPKG_ATTR_NEGO_PKG_INFO 31
481 #define SECPKG_ATTR_NEGO_STATUS 32
482 #define SECPKG_ATTR_CONTEXT_DELETED 33
484 #define SECPKG_ATTR_SUBJECT_SECURITY_ATTRIBUTES 128
485 #define SECPKG_ATTR_NEGO_INFO_FLAG_NO_KERBEROS 0x1
486 #define SECPKG_ATTR_NEGO_INFO_FLAG_NO_NTLM 0x2
488 /* types for QueryContextAttributes/SetContextAttributes */
490 typedef struct _SecPkgContext_Sizes
492 ULONG cbMaxToken;
493 ULONG cbMaxSignature;
494 ULONG cbBlockSize;
495 ULONG cbSecurityTrailer;
496 } SecPkgContext_Sizes, *PSecPkgContext_Sizes;
498 typedef struct _SecPkgContext_StreamSizes
500 ULONG cbHeader;
501 ULONG cbTrailer;
502 ULONG cbMaximumMessage;
503 ULONG cbBuffers;
504 ULONG cbBlockSize;
505 } SecPkgContext_StreamSizes, *PSecPkgContext_StreamSizes;
507 typedef struct _SecPkgContext_NamesA
509 SEC_CHAR *sUserName;
510 } SecPkgContext_NamesA, *PSecPkgContext_NamesA;
512 typedef struct _SecPkgContext_NamesW
514 SEC_WCHAR *sUserName;
515 } SecPkgContext_NamesW, *PSecPkgContext_NamesW;
517 #define SecPkgContext_Names WINELIB_NAME_AW(SecPkgContext_Names)
518 #define PSecPkgContext_Names WINELIB_NAME_AW(PSecPkgContext_Names)
520 typedef struct _SecPkgContext_Lifespan
522 TimeStamp tsStart;
523 TimeStamp tsExpiry;
524 } SecPkgContext_Lifespan, *PSecPkgContext_Lifespan;
526 typedef struct _SecPkgContext_DceInfo
528 ULONG AuthzSvc;
529 PVOID pPac;
530 } SecPkgContext_DceInfo, *PSecPkgContext_DceInfo;
532 typedef struct _SecPkgContext_KeyInfoA
534 SEC_CHAR *sSignatureAlgorithmName;
535 SEC_CHAR *sEncryptAlgorithmName;
536 ULONG KeySize;
537 ULONG SignatureAlgorithm;
538 ULONG EncryptAlgorithm;
539 } SecPkgContext_KeyInfoA, *PSecPkgContext_KeyInfoA;
541 typedef struct _SecPkgContext_KeyInfoW
543 SEC_WCHAR *sSignatureAlgorithmName;
544 SEC_WCHAR *sEncryptAlgorithmName;
545 ULONG KeySize;
546 ULONG SignatureAlgorithm;
547 ULONG EncryptAlgorithm;
548 } SecPkgContext_KeyInfoW, *PSecPkgContext_KeyInfoW;
550 #define SecPkgContext_KeyInfo WINELIB_NAME_AW(SecPkgContext_KeyInfo)
551 #define PSecPkgContext_KeyInfo WINELIB_NAME_AW(PSecPkgContext_KeyInfo)
553 typedef struct _SecPkgContext_AuthorityA
555 SEC_CHAR *sAuthorityName;
556 } SecPkgContext_AuthorityA, *PSecPkgContext_AuthorityA;
558 typedef struct _SecPkgContext_AuthorityW
560 SEC_WCHAR *sAuthorityName;
561 } SecPkgContext_AuthorityW, *PSecPkgContext_AuthorityW;
563 #define SecPkgContext_Authority WINELIB_NAME_AW(SecPkgContext_Authority)
564 #define PSecPkgContext_Authority WINELIB_NAME_AW(PSecPkgContext_Authority)
566 typedef struct _SecPkgContext_ProtoInfoA
568 SEC_CHAR *sProtocolName;
569 ULONG majorVersion;
570 ULONG minorVersion;
571 } SecPkgContext_ProtoInfoA, *PSecPkgContext_ProtoInfoA;
573 typedef struct _SecPkgContext_ProtoInfoW
575 SEC_WCHAR *sProtocolName;
576 ULONG majorVersion;
577 ULONG minorVersion;
578 } SecPkgContext_ProtoInfoW, *PSecPkgContext_ProtoInfoW;
580 #define SecPkgContext_ProtoInfo WINELIB_NAME_AW(SecPkgContext_ProtoInfo)
581 #define PSecPkgContext_ProtoInfo WINELIB_NAME_AW(PSecPkgContext_ProtoInfo)
583 typedef struct _SecPkgContext_PasswordExpiry
585 TimeStamp tsPasswordExpires;
586 } SecPkgContext_PasswordExpiry, *PSecPkgContext_PasswordExpiry;
588 typedef struct _SecPkgContext_SessionKey
590 ULONG SessionKeyLength;
591 unsigned char *SessionKey;
592 } SecPkgContext_SessionKey, *PSecPkgContext_SessionKey;
594 typedef struct _SecPkgContext_PackageInfoA
596 PSecPkgInfoA PackageInfo;
597 } SecPkgContext_PackageInfoA, *PSecPkgContext_PackageInfoA;
599 typedef struct _SecPkgContext_PackageInfoW
601 PSecPkgInfoW PackageInfo;
602 } SecPkgContext_PackageInfoW, *PSecPkgContext_PackageInfoW;
604 #define SecPkgContext_PackageInfo WINELIB_NAME_AW(SecPkgContext_PackageInfo)
605 #define PSecPkgContext_PackageInfo WINELIB_NAME_AW(PSecPkgContext_PackageInfo)
607 typedef struct _SecPkgContext_Flags
609 ULONG Flags;
610 } SecPkgContext_Flags, *PSecPkgContext_Flags;
612 typedef struct _SecPkgContext_UserFlags
614 ULONG UserFlags;
615 } SecPkgContext_UserFlags, *PSecPkgContext_UserFlags;
617 typedef struct _SecPkgContext_NegotiationInfoA
619 PSecPkgInfoA PackageInfo;
620 ULONG NegotiationState;
621 } SecPkgContext_NegotiationInfoA, *PSecPkgContext_NegotiationInfoA;
623 typedef struct _SecPkgContext_NegotiationInfoW
625 PSecPkgInfoW PackageInfo;
626 ULONG NegotiationState;
627 } SecPkgContext_NegotiationInfoW, *PSecPkgContext_NegotiationInfoW;
629 #define SecPkgContext_NegotiationInfo WINELIB_NAME_AW(SecPkgContext_NegotiationInfo)
630 #define PSecPkgContext_NegotiationInfo WINELIB_NAME_AW(PSecPkgContext_NegotiationInfo)
632 /* values for NegotiationState */
633 #define SECPKG_NEGOTIATION_COMPLETE 0
634 #define SECPKG_NEGOTIATION_OPTIMISTIC 1
635 #define SECPKG_NEGOTIATION_IN_PROGRESS 2
636 #define SECPKG_NEGOTIATION_DIRECT 3
637 #define SECPKG_NEGOTIATION_TRY_MULTICRED 4
639 typedef struct _SecPkgContext_NativeNamesA
641 SEC_CHAR *sClientName;
642 SEC_CHAR *sServerName;
643 } SecPkgContext_NativeNamesA, *PSecPkgContext_NativeNamesA;
645 typedef struct _SecPkgContext_NativeNamesW
647 SEC_WCHAR *sClientName;
648 SEC_WCHAR *sServerName;
649 } SecPkgContext_NativeNamesW, *PSecPkgContext_NativeNamesW;
651 #define SecPkgContext_NativeNames WINELIB_NAME_AW(SecPkgContext_NativeNames)
652 #define PSecPkgContext_NativeNames WINELIB_NAME_AW(PSecPkgContext_NativeNames)
654 typedef struct _SecPkgContext_CredentialNameA
656 ULONG CredentialType;
657 SEC_CHAR *sCredentialName;
658 } SecPkgContext_CredentialNameA, *PSecPkgContext_CredentialNameA;
660 typedef struct _SecPkgContext_CredentialNameW
662 ULONG CredentialType;
663 SEC_WCHAR *sCredentialName;
664 } SecPkgContext_CredentialNameW, *PSecPkgContext_CredentialNameW;
666 #define SecPkgContext_CredentialName WINELIB_NAME_AW(SecPkgContext_CredentialName)
667 #define PSecPkgContext_CredentialName WINELIB_NAME_AW(PSecPkgContext_CredentialName)
669 typedef struct _SecPkgContext_AccessToken
671 void *AccessToken;
672 } SecPkgContext_AccessToken, *PSecPkgContext_AccessToken;
674 typedef struct _SecPkgContext_TargetInformation
676 ULONG MarshalledTargetInfoLength;
677 unsigned char *MarshalledTargetInfo;
678 } SecPkgContext_TargetInformation, *PSecPkgContext_TargetInformation;
680 typedef struct _SecPkgContext_AuthzID
682 ULONG AuthzIDLength;
683 char *AuthzID;
684 } SecPkgContext_AuthzID, *PSecPkgContext_AuthzID;
686 typedef struct _SecPkgContext_Target
688 ULONG TargetLength;
689 char *Target;
690 } SecPkgContext_Target, *PSecPkgContext_Target;
692 typedef struct _SecPkgContext_Bindings
694 ULONG BindingsLength;
695 SEC_CHANNEL_BINDINGS *Bindings;
696 } SecPkgContext_Bindings, *PSecPkgContext_Bindings;
698 SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(PCtxtHandle phContext);
700 typedef SECURITY_STATUS (SEC_ENTRY *IMPERSONATE_SECURITY_CONTEXT_FN)
701 (PCtxtHandle);
703 SECURITY_STATUS SEC_ENTRY RevertSecurityContext(PCtxtHandle phContext);
705 typedef SECURITY_STATUS (SEC_ENTRY *REVERT_SECURITY_CONTEXT_FN)(PCtxtHandle);
707 SECURITY_STATUS SEC_ENTRY MakeSignature(PCtxtHandle phContext,
708 ULONG fQOP, PSecBufferDesc pMessage, ULONG MessageSeqNo);
710 typedef SECURITY_STATUS (SEC_ENTRY *MAKE_SIGNATURE_FN)(PCtxtHandle,
711 ULONG, PSecBufferDesc, ULONG);
713 SECURITY_STATUS SEC_ENTRY VerifySignature(PCtxtHandle phContext,
714 PSecBufferDesc pMessage, ULONG MessageSeqNo, PULONG pfQOP);
716 typedef SECURITY_STATUS (SEC_ENTRY *VERIFY_SIGNATURE_FN)(PCtxtHandle,
717 PSecBufferDesc, ULONG, PULONG);
719 SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoA(
720 SEC_CHAR *pszPackageName, PSecPkgInfoA *ppPackageInfo);
721 SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoW(
722 SEC_WCHAR *pszPackageName, PSecPkgInfoW *ppPackageInfo);
723 #define QuerySecurityPackageInfo WINELIB_NAME_AW(QuerySecurityPackageInfo)
725 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_SECURITY_PACKAGE_INFO_FN_A)
726 (SEC_CHAR *, PSecPkgInfoA *);
727 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_SECURITY_PACKAGE_INFO_FN_W)
728 (SEC_WCHAR *, PSecPkgInfoW *);
729 #define QUERY_SECURITY_PACKAGE_INFO_FN WINELIB_NAME_AW(QUERY_SECURITY_PACKAGE_INFO_FN_)
731 SECURITY_STATUS SEC_ENTRY ExportSecurityContext(PCtxtHandle phContext,
732 ULONG fFlags, PSecBuffer pPackedContext, void **pToken);
734 typedef SECURITY_STATUS (SEC_ENTRY *EXPORT_SECURITY_CONTEXT_FN)(PCtxtHandle,
735 ULONG, PSecBuffer, void **);
737 /* values for ExportSecurityContext fFlags */
738 #define SECPKG_CONTEXT_EXPORT_RESET_NEW 0x00000001
739 #define SECPKG_CONTEXT_EXPORT_DELETE_OLD 0x00000002
741 SECURITY_STATUS SEC_ENTRY ImportSecurityContextA(SEC_CHAR *pszPackage,
742 PSecBuffer pPackedContext, void *Token, PCtxtHandle phContext);
743 SECURITY_STATUS SEC_ENTRY ImportSecurityContextW(SEC_WCHAR *pszPackage,
744 PSecBuffer pPackedContext, void *Token, PCtxtHandle phContext);
745 #define ImportSecurityContext WINELIB_NAME_AW(ImportSecurityContext)
747 typedef SECURITY_STATUS (SEC_ENTRY *IMPORT_SECURITY_CONTEXT_FN_A)(SEC_CHAR *,
748 PSecBuffer, void *, PCtxtHandle);
749 typedef SECURITY_STATUS (SEC_ENTRY *IMPORT_SECURITY_CONTEXT_FN_W)(SEC_WCHAR *,
750 PSecBuffer, void *, PCtxtHandle);
751 #define IMPORT_SECURITY_CONTEXT_FN WINELIB_NAME_AW(IMPORT_SECURITY_CONTEXT_FN_)
753 SECURITY_STATUS SEC_ENTRY AddCredentialsA(PCredHandle hCredentials,
754 SEC_CHAR *pszPrincipal, SEC_CHAR *pszPackage, ULONG fCredentialUse,
755 void *pAuthData, SEC_GET_KEY_FN pGetKeyFn, void *pvGetKeyArgument,
756 PTimeStamp ptsExpiry);
757 SECURITY_STATUS SEC_ENTRY AddCredentialsW(PCredHandle hCredentials,
758 SEC_WCHAR *pszPrincipal, SEC_WCHAR *pszPackage, ULONG fCredentialUse,
759 void *pAuthData, SEC_GET_KEY_FN pGetKeyFn, void *pvGetKeyArgument,
760 PTimeStamp ptsExpiry);
761 #define AddCredentials WINELIB_NAME_AW(AddCredentials)
763 typedef SECURITY_STATUS (SEC_ENTRY *ADD_CREDENTIALS_FN_A)(PCredHandle,
764 SEC_CHAR *, SEC_CHAR *, ULONG, void *, SEC_GET_KEY_FN, void *,
765 PTimeStamp);
766 typedef SECURITY_STATUS (SEC_ENTRY *ADD_CREDENTIALS_FN_W)(PCredHandle,
767 SEC_WCHAR *, SEC_WCHAR *, ULONG, void *, SEC_GET_KEY_FN, void *,
768 PTimeStamp);
770 SECURITY_STATUS SEC_ENTRY QuerySecurityContextToken(PCtxtHandle phContext,
771 HANDLE *phToken);
773 typedef SECURITY_STATUS (SEC_ENTRY *QUERY_SECURITY_CONTEXT_TOKEN_FN)
774 (PCtxtHandle, HANDLE *);
776 SECURITY_STATUS SEC_ENTRY EncryptMessage(PCtxtHandle phContext, ULONG fQOP,
777 PSecBufferDesc pMessage, ULONG MessageSeqNo);
778 SECURITY_STATUS SEC_ENTRY DecryptMessage(PCtxtHandle phContext,
779 PSecBufferDesc pMessage, ULONG MessageSeqNo, PULONG pfQOP);
781 /* values for EncryptMessage fQOP */
782 #define SECQOP_WRAP_NO_ENCRYPT 0x80000001
784 typedef SECURITY_STATUS (SEC_ENTRY *ENCRYPT_MESSAGE_FN)(PCtxtHandle, ULONG,
785 PSecBufferDesc, ULONG);
786 typedef SECURITY_STATUS (SEC_ENTRY *DECRYPT_MESSAGE_FN)(PCtxtHandle,
787 PSecBufferDesc, ULONG, PULONG);
789 SECURITY_STATUS SEC_ENTRY SetContextAttributesA(PCtxtHandle phContext,
790 ULONG ulAttribute, void *pBuffer, ULONG cbBuffer);
791 SECURITY_STATUS SEC_ENTRY SetContextAttributesW(PCtxtHandle phContext,
792 ULONG ulAttribute, void *pBuffer, ULONG cbBuffer);
793 #define SetContextAttributes WINELIB_NAME_AW(SetContextAttributes)
795 typedef SECURITY_STATUS (SEC_ENTRY *SET_CONTEXT_ATTRIBUTES_FN_A)(PCtxtHandle,
796 ULONG, void *, ULONG);
797 typedef SECURITY_STATUS (SEC_ENTRY *SET_CONTEXT_ATTRIBUTES_FN_W)(PCtxtHandle,
798 ULONG, void *, ULONG);
800 #define SECURITY_ENTRYPOINT_ANSIA "InitSecurityInterfaceA"
801 #define SECURITY_ENTRYPOINT_ANSIW "InitSecurityInterfaceW"
802 #define SECURITY_ENTRYPOINT_ANSI WINELIB_NAME_AW(SECURITY_ENTRYPOINT_ANSI)
804 typedef struct _SECURITY_FUNCTION_TABLE_A
806 ULONG dwVersion;
807 ENUMERATE_SECURITY_PACKAGES_FN_A EnumerateSecurityPackagesA;
808 QUERY_CREDENTIALS_ATTRIBUTES_FN_A QueryCredentialsAttributesA;
809 ACQUIRE_CREDENTIALS_HANDLE_FN_A AcquireCredentialsHandleA;
810 FREE_CREDENTIALS_HANDLE_FN FreeCredentialsHandle;
811 void *Reserved2;
812 INITIALIZE_SECURITY_CONTEXT_FN_A InitializeSecurityContextA;
813 ACCEPT_SECURITY_CONTEXT_FN AcceptSecurityContext;
814 COMPLETE_AUTH_TOKEN_FN CompleteAuthToken;
815 DELETE_SECURITY_CONTEXT_FN DeleteSecurityContext;
816 APPLY_CONTROL_TOKEN_FN ApplyControlToken;
817 QUERY_CONTEXT_ATTRIBUTES_FN_A QueryContextAttributesA;
818 IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext;
819 REVERT_SECURITY_CONTEXT_FN RevertSecurityContext;
820 MAKE_SIGNATURE_FN MakeSignature;
821 VERIFY_SIGNATURE_FN VerifySignature;
822 FREE_CONTEXT_BUFFER_FN FreeContextBuffer;
823 QUERY_SECURITY_PACKAGE_INFO_FN_A QuerySecurityPackageInfoA;
824 void *Reserved3;
825 void *Reserved4;
826 EXPORT_SECURITY_CONTEXT_FN ExportSecurityContext;
827 IMPORT_SECURITY_CONTEXT_FN_A ImportSecurityContextA;
828 ADD_CREDENTIALS_FN_A AddCredentialsA;
829 void *Reserved8;
830 QUERY_SECURITY_CONTEXT_TOKEN_FN QuerySecurityContextToken;
831 ENCRYPT_MESSAGE_FN EncryptMessage;
832 DECRYPT_MESSAGE_FN DecryptMessage;
833 SET_CONTEXT_ATTRIBUTES_FN_A SetContextAttributesA;
834 } SecurityFunctionTableA, *PSecurityFunctionTableA;
836 typedef struct _SECURITY_FUNCTION_TABLE_W
838 ULONG dwVersion;
839 ENUMERATE_SECURITY_PACKAGES_FN_W EnumerateSecurityPackagesW;
840 QUERY_CREDENTIALS_ATTRIBUTES_FN_W QueryCredentialsAttributesW;
841 ACQUIRE_CREDENTIALS_HANDLE_FN_W AcquireCredentialsHandleW;
842 FREE_CREDENTIALS_HANDLE_FN FreeCredentialsHandle;
843 void *Reserved2;
844 INITIALIZE_SECURITY_CONTEXT_FN_W InitializeSecurityContextW;
845 ACCEPT_SECURITY_CONTEXT_FN AcceptSecurityContext;
846 COMPLETE_AUTH_TOKEN_FN CompleteAuthToken;
847 DELETE_SECURITY_CONTEXT_FN DeleteSecurityContext;
848 APPLY_CONTROL_TOKEN_FN ApplyControlToken;
849 QUERY_CONTEXT_ATTRIBUTES_FN_W QueryContextAttributesW;
850 IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext;
851 REVERT_SECURITY_CONTEXT_FN RevertSecurityContext;
852 MAKE_SIGNATURE_FN MakeSignature;
853 VERIFY_SIGNATURE_FN VerifySignature;
854 FREE_CONTEXT_BUFFER_FN FreeContextBuffer;
855 QUERY_SECURITY_PACKAGE_INFO_FN_W QuerySecurityPackageInfoW;
856 void *Reserved3;
857 void *Reserved4;
858 EXPORT_SECURITY_CONTEXT_FN ExportSecurityContext;
859 IMPORT_SECURITY_CONTEXT_FN_W ImportSecurityContextW;
860 ADD_CREDENTIALS_FN_W AddCredentialsW;
861 void *Reserved8;
862 QUERY_SECURITY_CONTEXT_TOKEN_FN QuerySecurityContextToken;
863 ENCRYPT_MESSAGE_FN EncryptMessage;
864 DECRYPT_MESSAGE_FN DecryptMessage;
865 SET_CONTEXT_ATTRIBUTES_FN_W SetContextAttributesW;
866 } SecurityFunctionTableW, *PSecurityFunctionTableW;
868 #define SecurityFunctionTable WINELIB_NAME_AW(SecurityFunctionTable)
869 #define PSecurityFunctionTable WINELIB_NAME_AW(PSecurityFunctionTable)
871 #define SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION 1
872 #define SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION_2 2
874 PSecurityFunctionTableA SEC_ENTRY InitSecurityInterfaceA(void);
875 PSecurityFunctionTableW SEC_ENTRY InitSecurityInterfaceW(void);
876 #define InitSecurityInterface WINELIB_NAME_AW(InitSecurityInterface)
878 typedef PSecurityFunctionTableA (SEC_ENTRY *INIT_SECURITY_INTERFACE_A)(void);
879 typedef PSecurityFunctionTableW (SEC_ENTRY *INIT_SECURITY_INTERFACE_W)(void);
880 #define INIT_SECURITY_INTERFACE WINELIB_NAME_AW(INIT_SECURITY_INTERFACE_)
882 #ifdef __cplusplus
884 #endif
886 #endif /* ndef __WINE_SSPI_H__ */