ReactOS  0.4.14-dev-604-gcfdd483
sspi.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2004 Juan Lang
3  *
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.
8  *
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.
13  *
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
17  */
18 #ifndef __WINE_SSPI_H__
19 #define __WINE_SSPI_H__
20 
21 #include <wtypes.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define SEC_ENTRY WINAPI
28 
29 typedef WCHAR SEC_WCHAR;
30 typedef CHAR SEC_CHAR;
31 
32 #ifndef __SECSTATUS_DEFINED__
33 #define __SECSTATUS_DEFINED__
35 #endif
36 
37 #define UNISP_NAME_A "Microsoft Unified Security Protocol Provider"
38 #define UNISP_NAME_W L"Microsoft Unified Security Protocol Provider"
39 #define UNISP_NAME WINELIB_NAME_AW(UNISP_NAME_)
40 
41 #ifdef UNICODE
42 typedef SEC_WCHAR * SECURITY_PSTR;
44 #else
47 #endif
48 
49 #ifndef __SECHANDLE_DEFINED__
50 #define __SECHANDLE_DEFINED__
51 typedef struct _SecHandle
52 {
56 #endif
57 
58 #define SecInvalidateHandle(x) do { \
59  ((PSecHandle)(x))->dwLower = ((ULONG_PTR)((INT_PTR)-1)); \
60  ((PSecHandle)(x))->dwUpper = ((ULONG_PTR)((INT_PTR)-1)); \
61  } while (0)
62 
63 #define SecIsValidHandle(x) \
64  ((((PSecHandle)(x))->dwLower != ((ULONG_PTR)(INT_PTR)-1)) && \
65  (((PSecHandle)(x))->dwUpper != ((ULONG_PTR)(INT_PTR)-1)))
66 
69 
72 
73 typedef struct _SECURITY_INTEGER
74 {
79 
80 #define SSPIPFC_CREDPROV_DO_NOT_SAVE 0x00000001
81 #define SSPIPFC_NO_CHECKBOX 0x00000002
82 
84 
88 
89 typedef struct _SecPkgInfoA
90 {
92  unsigned short wVersion;
93  unsigned short wRPCID;
98 
99 typedef struct _SecPkgInfoW
100 {
102  unsigned short wVersion;
103  unsigned short wRPCID;
108 
109 #define SecPkgInfo WINELIB_NAME_AW(SecPkgInfo)
110 #define PSecPkgInfo WINELIB_NAME_AW(PSecPkgInfo)
111 
112 /* fCapabilities field of SecPkgInfo */
113 #define SECPKG_FLAG_INTEGRITY 0x00000001
114 #define SECPKG_FLAG_PRIVACY 0x00000002
115 #define SECPKG_FLAG_TOKEN_ONLY 0x00000004
116 #define SECPKG_FLAG_DATAGRAM 0x00000008
117 #define SECPKG_FLAG_CONNECTION 0x00000010
118 #define SECPKG_FLAG_MULTI_REQUIRED 0x00000020
119 #define SECPKG_FLAG_CLIENT_ONLY 0x00000040
120 #define SECPKG_FLAG_EXTENDED_ERROR 0x00000080
121 #define SECPKG_FLAG_IMPERSONATION 0x00000100
122 #define SECPKG_FLAG_ACCEPT_WIN32_NAME 0x00000200
123 #define SECPKG_FLAG_STREAM 0x00000400
124 #define SECPKG_FLAG_NEGOTIABLE 0x00000800
125 #define SECPKG_FLAG_GSS_COMPATIBLE 0x00001000
126 #define SECPKG_FLAG_LOGON 0x00002000
127 #define SECPKG_FLAG_ASCII_BUFFERS 0x00004000
128 #define SECPKG_FLAG_FRAGMENT 0x00008000
129 #define SECPKG_FLAG_MUTUAL_AUTH 0x00010000
130 #define SECPKG_FLAG_DELEGATION 0x00020000
131 #define SECPKG_FLAG_READONLY_WITH_CHECKSUM 0x00040000
132 #define SECPKG_FLAG_RESTRICTED_TOKENS 0x00080000
133 #define SECPKG_FLAG_NEGO_EXTENDER 0x00100000
134 #define SECPKG_FLAG_NEGOTIABLE2 0x00200000
135 #define SECPKG_FLAG_APPCONTAINER_PASSTHROUGH 0x00400000
136 #define SECPKG_FLAG_APPCONTAINER_CHECKS 0x00800000
137 #define SECPKG_FLAG_APPLY_LOOPBACK 0x02000000
138 
139 typedef struct _SecBuffer {
142  _Field_size_bytes_(cbBuffer) void *pvBuffer;
144 
145 /* values for BufferType */
146 #define SECBUFFER_EMPTY 0
147 #define SECBUFFER_DATA 1
148 #define SECBUFFER_TOKEN 2
149 #define SECBUFFER_PKG_PARAMS 3
150 #define SECBUFFER_MISSING 4
151 #define SECBUFFER_EXTRA 5
152 #define SECBUFFER_STREAM_TRAILER 6
153 #define SECBUFFER_STREAM_HEADER 7
154 #define SECBUFFER_NEGOTIATION_INFO 8
155 #define SECBUFFER_PADDING 9
156 #define SECBUFFER_STREAM 10
157 #define SECBUFFER_MECHLIST 11
158 #define SECBUFFER_MECHLIST_SIGNATURE 12
159 #define SECBUFFER_TARGET 13
160 #define SECBUFFER_CHANNEL_BINDINGS 14
161 
162 #define SECBUFFER_ATTRMASK 0xf0000000
163 #define SECBUFFER_READONLY 0x80000000
164 #define SECBUFFER_READONLY_WITH_CHECKSUM 0x10000000
165 #define SECBUFFER_RESERVED 0x60000000
166 
167 typedef struct _SecBufferDesc {
170  _Field_size_(cBuffers) PSecBuffer pBuffers;
172 
173 /* values for ulVersion */
174 #define SECBUFFER_VERSION 0
175 
176 typedef void (SEC_ENTRY *SEC_GET_KEY_FN)(void *Arg, void *Principal,
177  ULONG KeyVer, void **Key, SECURITY_STATUS *Status);
178 
180 SEC_ENTRY
182  _Out_ PULONG pcPackages,
183  _Outptr_ PSecPkgInfoA *ppPackageInfo);
184 
186 SEC_ENTRY
188  _Out_ PULONG pcPackages,
189  _Outptr_ PSecPkgInfoW *ppPackageInfo);
190 
191 #define EnumerateSecurityPackages WINELIB_NAME_AW(EnumerateSecurityPackages)
192 
194  PSecPkgInfoA *);
196  PSecPkgInfoW *);
197 #define ENUMERATE_SECURITY_PACKAGES_FN WINELIB_NAME_AW(ENUMERATE_SECURITY_PACKAGES_FN_)
198 
200 SEC_ENTRY
202  _In_ PCredHandle phCredential,
203  _In_ ULONG ulAttribute,
204  _Inout_ void *pBuffer);
205 
207 SEC_ENTRY
209  _In_ PCredHandle phCredential,
210  _In_ ULONG ulAttribute,
211  _Inout_ void *pBuffer);
212 
213 #define QueryCredentialsAttributes WINELIB_NAME_AW(QueryCredentialsAttributes)
214 
219 #define QUERY_CREDENTIALS_ATTRIBUTES_FN WINELIB_NAME_AW(QUERY_CREDENTIALS_ATTRIBUTES_FN_)
220 
221 typedef struct _SEC_CHANNEL_BINDINGS {
231 
232 /* values for QueryCredentialsAttributes ulAttribute */
233 #define SECPKG_CRED_ATTR_NAMES 1
234 
235 /* types for QueryCredentialsAttributes */
237 {
240 
242 {
245 
246 #define SecPkgCredentials_Names WINELIB_NAME_AW(SecPkgCredentials_Names)
247 
249 SEC_ENTRY
251  _In_opt_ SEC_CHAR *pszPrincipal,
252  _In_ SEC_CHAR *pszPackage,
253  _In_ ULONG fCredentialsUse,
254  _In_opt_ PLUID pvLogonID,
255  _In_opt_ PVOID pAuthData,
256  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
257  _In_opt_ PVOID pvGetKeyArgument,
258  _Out_ PCredHandle phCredential,
259  _Out_opt_ PTimeStamp ptsExpiry);
260 
262 SEC_ENTRY
264  _In_opt_ SEC_WCHAR *pszPrincipal,
265  _In_ SEC_WCHAR *pszPackage,
266  _In_ ULONG fCredentialsUse,
267  _In_opt_ PLUID pvLogonID,
268  _In_opt_ PVOID pAuthData,
269  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
270  _In_opt_ PVOID pvGetKeyArgument,
271  _Out_ PCredHandle phCredential,
272  _Out_opt_ PTimeStamp ptsExpiry);
273 
274 #define AcquireCredentialsHandle WINELIB_NAME_AW(AcquireCredentialsHandle)
275 
276 /* flags for fCredentialsUse */
277 #define SECPKG_CRED_INBOUND 0x00000001
278 #define SECPKG_CRED_OUTBOUND 0x00000002
279 #define SECPKG_CRED_BOTH (SECPKG_CRED_INBOUND | SECPKG_CRED_OUTBOUND)
280 #define SECPKG_CRED_DEFAULT 0x00000004
281 #define SECPKG_CRED_RESERVED 0xf0000000
282 
289 #define ACQUIRE_CREDENTIALS_HANDLE_FN WINELIB_NAME_AW(ACQUIRE_CREDENTIALS_HANDLE_FN_)
290 
292 
294 
296 SEC_ENTRY
298  _In_ PCredHandle phCredential);
299 
300 #define FreeCredentialHandle FreeCredentialsHandle
301 
303 
305 SEC_ENTRY
307  _In_opt_ PCredHandle phCredential,
308  _In_opt_ PCtxtHandle phContext,
309  _In_opt_ SEC_CHAR *pszTargetName,
310  _In_ ULONG fContextReq,
312  _In_ ULONG TargetDataRep,
313  _In_opt_ PSecBufferDesc pInput,
315  _Inout_opt_ PCtxtHandle phNewContext,
316  _Inout_opt_ PSecBufferDesc pOutput,
317  _Out_ ULONG *pfContextAttr,
318  _Out_opt_ PTimeStamp ptsExpiry);
319 
321 SEC_ENTRY
323  _In_opt_ PCredHandle phCredential,
324  _In_opt_ PCtxtHandle phContext,
325  _In_opt_ SEC_WCHAR *pszTargetName,
326  _In_ ULONG fContextReq,
328  _In_ ULONG TargetDataRep,
329  _In_opt_ PSecBufferDesc pInput,
331  _Inout_opt_ PCtxtHandle phNewContext,
332  _Inout_opt_ PSecBufferDesc pOutput,
333  _Out_ ULONG *pfContextAttr,
334  _Out_opt_ PTimeStamp ptsExpiry);
335 
336 #define InitializeSecurityContext WINELIB_NAME_AW(InitializeSecurityContext)
337 
341  ULONG *, PTimeStamp);
345  ULONG *, PTimeStamp);
346 #define INITIALIZE_SECURITY_CONTEXT_FN WINELIB_NAME_AW(INITIALIZE_SECURITY_CONTEXT_FN_)
347 
348 /* flags for InitializeSecurityContext fContextReq and pfContextAttr */
349 #define ISC_REQ_DELEGATE 0x00000001
350 #define ISC_REQ_MUTUAL_AUTH 0x00000002
351 #define ISC_REQ_REPLAY_DETECT 0x00000004
352 #define ISC_REQ_SEQUENCE_DETECT 0x00000008
353 #define ISC_REQ_CONFIDENTIALITY 0x00000010
354 #define ISC_REQ_USE_SESSION_KEY 0x00000020
355 #define ISC_REQ_PROMPT_FOR_CREDS 0x00000040
356 #define ISC_REQ_USE_SUPPLIED_CREDS 0x00000080
357 #define ISC_REQ_ALLOCATE_MEMORY 0x00000100
358 #define ISC_REQ_USE_DCE_STYLE 0x00000200
359 #define ISC_REQ_DATAGRAM 0x00000400
360 #define ISC_REQ_CONNECTION 0x00000800
361 #define ISC_REQ_CALL_LEVEL 0x00001000
362 #define ISC_REQ_FRAGMENT_SUPPLIED 0x00002000
363 #define ISC_REQ_EXTENDED_ERROR 0x00004000
364 #define ISC_REQ_STREAM 0x00008000
365 #define ISC_REQ_INTEGRITY 0x00010000
366 #define ISC_REQ_IDENTIFY 0x00020000
367 #define ISC_REQ_NULL_SESSION 0x00040000
368 #define ISC_REQ_MANUAL_CRED_VALIDATION 0x00080000
369 #define ISC_REQ_RESERVED1 0x00100000
370 #define ISC_REQ_FRAGMENT_TO_FIT 0x00200000
371 
372 #define ISC_RET_DELEGATE 0x00000001
373 #define ISC_RET_MUTUAL_AUTH 0x00000002
374 #define ISC_RET_REPLAY_DETECT 0x00000004
375 #define ISC_RET_SEQUENCE_DETECT 0x00000008
376 #define ISC_RET_CONFIDENTIALITY 0x00000010
377 #define ISC_RET_USE_SESSION_KEY 0x00000020
378 #define ISC_RET_USED_COLLECTED_CREDS 0x00000040
379 #define ISC_RET_USED_SUPPLIED_CREDS 0x00000080
380 #define ISC_RET_ALLOCATED_MEMORY 0x00000100
381 #define ISC_RET_USED_DCE_STYLE 0x00000200
382 #define ISC_RET_DATAGRAM 0x00000400
383 #define ISC_RET_CONNECTION 0x00000800
384 #define ISC_RET_INTERMEDIATE_RETURN 0x00001000
385 #define ISC_RET_CALL_LEVEL 0x00002000
386 #define ISC_RET_EXTENDED_ERROR 0x00004000
387 #define ISC_RET_STREAM 0x00008000
388 #define ISC_RET_INTEGRITY 0x00010000
389 #define ISC_RET_IDENTIFY 0x00020000
390 #define ISC_RET_NULL_SESSION 0x00040000
391 #define ISC_RET_MANUAL_CRED_VALIDATION 0x00080000
392 #define ISC_RET_RESERVED1 0x00100000
393 #define ISC_RET_FRAGMENT_ONLY 0x00200000
394 
396 SEC_ENTRY
398  _In_opt_ PCredHandle phCredential,
399  _In_opt_ PCtxtHandle phContext,
400  _In_opt_ PSecBufferDesc pInput,
401  _In_ ULONG fContextReq,
402  _In_ ULONG TargetDataRep,
403  _Inout_opt_ PCtxtHandle phNewContext,
404  _Inout_opt_ PSecBufferDesc pOutput,
405  _Out_ ULONG *pfContextAttr,
406  _Out_opt_ PTimeStamp ptsExpiry);
407 
411 
412 /* flags for AcceptSecurityContext fContextReq and pfContextAttr */
413 #define ASC_REQ_DELEGATE 0x00000001
414 #define ASC_REQ_MUTUAL_AUTH 0x00000002
415 #define ASC_REQ_REPLAY_DETECT 0x00000004
416 #define ASC_REQ_SEQUENCE_DETECT 0x00000008
417 #define ASC_REQ_CONFIDENTIALITY 0x00000010
418 #define ASC_REQ_USE_SESSION_KEY 0x00000020
419 #define ASC_REQ_ALLOCATE_MEMORY 0x00000100
420 #define ASC_REQ_USE_DCE_STYLE 0x00000200
421 #define ASC_REQ_DATAGRAM 0x00000400
422 #define ASC_REQ_CONNECTION 0x00000800
423 #define ASC_REQ_CALL_LEVEL 0x00001000
424 #define ASC_REQ_FRAGMENT_SUPPLIED 0x00002000
425 #define ASC_REQ_EXTENDED_ERROR 0x00008000
426 #define ASC_REQ_STREAM 0x00010000
427 #define ASC_REQ_INTEGRITY 0x00020000
428 #define ASC_REQ_LICENSING 0x00040000
429 #define ASC_REQ_IDENTIFY 0x00080000
430 #define ASC_REQ_ALLOW_NULL_SESSION 0x00100000
431 #define ASC_REQ_ALLOW_NON_USER_LOGONS 0x00200000
432 #define ASC_REQ_ALLOW_CONTEXT_REPLAY 0x00400000
433 #define ASC_REQ_FRAGMENT_TO_FIT 0x00800000
434 #define ASC_REQ_FRAGMENT_NO_TOKEN 0x01000000
435 
436 #define ASC_RET_DELEGATE 0x00000001
437 #define ASC_RET_MUTUAL_AUTH 0x00000002
438 #define ASC_RET_REPLAY_DETECT 0x00000004
439 #define ASC_RET_SEQUENCE_DETECT 0x00000008
440 #define ASC_RET_CONFIDENTIALITY 0x00000010
441 #define ASC_RET_USE_SESSION_KEY 0x00000020
442 #define ASC_RET_ALLOCATED_MEMORY 0x00000100
443 #define ASC_RET_USED_DCE_STYLE 0x00000200
444 #define ASC_RET_DATAGRAM 0x00000400
445 #define ASC_RET_CONNECTION 0x00000800
446 #define ASC_RET_CALL_LEVEL 0x00002000
447 #define ASC_RET_THIRD_LEG_FAILED 0x00004000
448 #define ASC_RET_EXTENDED_ERROR 0x00008000
449 #define ASC_RET_STREAM 0x00010000
450 #define ASC_RET_INTEGRITY 0x00020000
451 #define ASC_RET_LICENSING 0x00040000
452 #define ASC_RET_IDENTIFY 0x00080000
453 #define ASC_RET_NULL_SESSION 0x00100000
454 #define ASC_RET_ALLOW_NON_USER_LOGONS 0x00200000
455 #define ASC_RET_ALLOW_CONTEXT_REPLAY 0x00400000
456 #define ASC_RET_FRAGMENT_ONLY 0x00800000
457 #define ASC_RET_NO_TOKEN 0x01000000
458 
459 /*Vvalues for TargetDataRep */
460 #define SECURITY_NATIVE_DREP 0x00000010
461 #define SECURITY_NETWORK_DREP 0x00000000
462 
464 SEC_ENTRY
466  _In_ PCtxtHandle phContext,
467  _In_ PSecBufferDesc pToken);
468 
471 
473 
475 
477 SEC_ENTRY
479  _In_ PCtxtHandle phContext,
480  _In_ PSecBufferDesc pInput);
481 
484 
486 SEC_ENTRY
488  _In_ PCtxtHandle phContext,
489  _In_ ULONG ulAttribute,
490  _Out_ void *pBuffer);
491 
493 SEC_ENTRY
495  _In_ PCtxtHandle phContext,
496  _In_ ULONG ulAttribute,
497  _Out_ void *pBuffer);
498 
499 #define QueryContextAttributes WINELIB_NAME_AW(QueryContextAttributes)
500 
502  ULONG, void *);
504  ULONG, void *);
505 #define QUERY_CONTEXT_ATTRIBUTES_FN WINELIB_NAME_AW(QUERY_CONTEXT_ATTRIBUTES_FN_)
506 
507 /* values for QueryContextAttributes/SetContextAttributes ulAttribute */
508 #define SECPKG_ATTR_SIZES 0
509 #define SECPKG_ATTR_NAMES 1
510 #define SECPKG_ATTR_LIFESPAN 2
511 #define SECPKG_ATTR_DCE_INFO 3
512 #define SECPKG_ATTR_STREAM_SIZES 4
513 #define SECPKG_ATTR_KEY_INFO 5
514 #define SECPKG_ATTR_AUTHORITY 6
515 #define SECPKG_ATTR_PROTO_INFO 7
516 #define SECPKG_ATTR_PASSWORD_EXPIRY 8
517 #define SECPKG_ATTR_SESSION_KEY 9
518 #define SECPKG_ATTR_PACKAGE_INFO 10
519 #define SECPKG_ATTR_USER_FLAGS 11
520 #define SECPKG_ATTR_NEGOTIATION_INFO 12
521 #define SECPKG_ATTR_NATIVE_NAMES 13
522 #define SECPKG_ATTR_FLAGS 14
523 #define SECPKG_ATTR_USE_VALIDATED 15
524 #define SECPKG_ATTR_CREDENTIAL_NAME 16
525 #define SECPKG_ATTR_TARGET_INFORMATION 17
526 #define SECPKG_ATTR_ACCESS_TOKEN 18
527 #define SECPKG_ATTR_TARGET 19
528 #define SECPKG_ATTR_AUTHENTICATION_ID 20
529 #define SECPKG_ATTR_LOGOFF_TIME 21
530 #define SECPKG_ATTR_NEGO_KEYS 22
531 #define SECPKG_ATTR_PROMPTING_NEEDED 24
532 #define SECPKG_ATTR_UNIQUE_BINDINGS 25
533 #define SECPKG_ATTR_ENDPOINT_BINDINGS 26
534 #define SECPKG_ATTR_CLIENT_SPECIFIED_TARGET 27
535 #define SECPKG_ATTR_LAST_CLIENT_TOKEN_STATUS 30
536 #define SECPKG_ATTR_NEGO_PKG_INFO 31
537 #define SECPKG_ATTR_NEGO_STATUS 32
538 #define SECPKG_ATTR_CONTEXT_DELETED 33
539 
540 #define SECPKG_ATTR_SUBJECT_SECURITY_ATTRIBUTES 128
541 #define SECPKG_ATTR_NEGO_INFO_FLAG_NO_KERBEROS 0x1
542 #define SECPKG_ATTR_NEGO_INFO_FLAG_NO_NTLM 0x2
543 
544 /* types for QueryContextAttributes/SetContextAttributes */
545 
546 typedef struct _SecPkgContext_Sizes
547 {
553 
555 {
562 
563 typedef struct _SecPkgContext_NamesA
564 {
567 
568 typedef struct _SecPkgContext_NamesW
569 {
572 
573 #define SecPkgContext_Names WINELIB_NAME_AW(SecPkgContext_Names)
574 #define PSecPkgContext_Names WINELIB_NAME_AW(PSecPkgContext_Names)
575 
577 {
581 
583 {
585  void *pPac;
587 
589 {
596 
598 {
605 
606 #define SecPkgContext_KeyInfo WINELIB_NAME_AW(SecPkgContext_KeyInfo)
607 #define PSecPkgContext_KeyInfo WINELIB_NAME_AW(PSecPkgContext_KeyInfo)
608 
610 {
613 
615 {
618 
619 #define SecPkgContext_Authority WINELIB_NAME_AW(SecPkgContext_Authority)
620 #define PSecPkgContext_Authority WINELIB_NAME_AW(PSecPkgContext_Authority)
621 
623 {
628 
630 {
635 
636 #define SecPkgContext_ProtoInfo WINELIB_NAME_AW(SecPkgContext_ProtoInfo)
637 #define PSecPkgContext_ProtoInfo WINELIB_NAME_AW(PSecPkgContext_ProtoInfo)
638 
640 {
643 
646  _Field_size_bytes_(SessionKeyLength) unsigned char *SessionKey;
648 
650 {
653 
655 {
658 
659 #define SecPkgContext_PackageInfo WINELIB_NAME_AW(SecPkgContext_PackageInfo)
660 #define PSecPkgContext_PackageInfo WINELIB_NAME_AW(PSecPkgContext_PackageInfo)
661 
662 typedef struct _SecPkgContext_Flags
663 {
666 
668 {
671 
673 {
677 
679 {
683 
684 #define SecPkgContext_NegotiationInfo WINELIB_NAME_AW(SecPkgContext_NegotiationInfo)
685 #define PSecPkgContext_NegotiationInfo WINELIB_NAME_AW(PSecPkgContext_NegotiationInfo)
686 
687 /* values for NegotiationState */
688 #define SECPKG_NEGOTIATION_COMPLETE 0
689 #define SECPKG_NEGOTIATION_OPTIMISTIC 1
690 #define SECPKG_NEGOTIATION_IN_PROGRESS 2
691 #define SECPKG_NEGOTIATION_DIRECT 3
692 #define SECPKG_NEGOTIATION_TRY_MULTICRED 4
693 
695 {
699 
701 {
705 
706 #define SecPkgContext_NativeNames WINELIB_NAME_AW(SecPkgContext_NativeNames)
707 #define PSecPkgContext_NativeNames WINELIB_NAME_AW(PSecPkgContext_NativeNames)
708 
710 {
714 
716 {
720 
721 #define SecPkgContext_CredentialName WINELIB_NAME_AW(SecPkgContext_CredentialName)
722 #define PSecPkgContext_CredentialName WINELIB_NAME_AW(PSecPkgContext_CredentialName)
723 
725 {
726  void *AccessToken;
728 
730 {
732  unsigned char *MarshalledTargetInfo;
734 
736 {
738  char *AuthzID;
740 
741 typedef struct _SecPkgContext_Target
742 {
744  char *Target;
746 
748 {
752 
755 SEC_ENTRY
757  _In_ PCtxtHandle phContext);
758 
761 
763 
765 
767 SEC_ENTRY
769  _In_ PCtxtHandle phContext,
770  _In_ ULONG fQOP,
771  _In_ PSecBufferDesc pMessage,
772  _In_ ULONG MessageSeqNo);
773 
776 
778 SEC_ENTRY
780  _In_ PCtxtHandle phContext,
781  _In_ PSecBufferDesc pMessage,
782  _In_ ULONG MessageSeqNo,
783  _Out_ PULONG pfQOP);
784 
787 
789 SEC_ENTRY
791  _In_ SEC_CHAR *pszPackageName,
792  _Outptr_ PSecPkgInfoA *ppPackageInfo);
793 
795 SEC_ENTRY
797  _In_ SEC_WCHAR *pszPackageName,
798  _Outptr_ PSecPkgInfoW *ppPackageInfo);
799 
800 #define QuerySecurityPackageInfo WINELIB_NAME_AW(QuerySecurityPackageInfo)
801 
806 #define QUERY_SECURITY_PACKAGE_INFO_FN WINELIB_NAME_AW(QUERY_SECURITY_PACKAGE_INFO_FN_)
807 
809 SEC_ENTRY
811  _In_ PCtxtHandle phContext,
812  _In_ ULONG fFlags,
813  _Out_ PSecBuffer pPackedContext,
814  _Out_ void **pToken);
815 
817  ULONG, PSecBuffer, void **);
818 
819 /* values for ExportSecurityContext fFlags */
820 #define SECPKG_CONTEXT_EXPORT_RESET_NEW 0x00000001
821 #define SECPKG_CONTEXT_EXPORT_DELETE_OLD 0x00000002
822 
824 SEC_ENTRY
826  _In_ SEC_CHAR *pszPackage,
827  _In_ PSecBuffer pPackedContext,
828  _In_ void *Token,
829  _Out_ PCtxtHandle phContext);
830 
832 SEC_ENTRY
834  _In_ SEC_WCHAR *pszPackage,
835  _In_ PSecBuffer pPackedContext,
836  _In_ void *Token,
837  _Out_ PCtxtHandle phContext);
838 
839 #define ImportSecurityContext WINELIB_NAME_AW(ImportSecurityContext)
840 
842  PSecBuffer, void *, PCtxtHandle);
844  PSecBuffer, void *, PCtxtHandle);
845 #define IMPORT_SECURITY_CONTEXT_FN WINELIB_NAME_AW(IMPORT_SECURITY_CONTEXT_FN_)
846 
848 SEC_ENTRY
850  _In_ PCredHandle hCredentials,
851  _In_opt_ SEC_CHAR *pszPrincipal,
852  _In_ SEC_CHAR *pszPackage,
853  _In_ ULONG fCredentialUse,
854  _In_opt_ void *pAuthData,
855  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
856  _In_opt_ void *pvGetKeyArgument,
857  _Out_opt_ PTimeStamp ptsExpiry);
858 
860 SEC_ENTRY
862  _In_ PCredHandle hCredentials,
863  _In_opt_ SEC_WCHAR *pszPrincipal,
864  _In_ SEC_WCHAR *pszPackage,
865  _In_ ULONG fCredentialUse,
866  _In_opt_ void *pAuthData,
867  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
868  _In_opt_ void *pvGetKeyArgument,
869  _Out_opt_ PTimeStamp ptsExpiry);
870 
871 #define AddCredentials WINELIB_NAME_AW(AddCredentials)
872 
874  SEC_CHAR *, SEC_CHAR *, ULONG, void *, SEC_GET_KEY_FN, void *,
875  PTimeStamp);
877  SEC_WCHAR *, SEC_WCHAR *, ULONG, void *, SEC_GET_KEY_FN, void *,
878  PTimeStamp);
879 
881 SEC_ENTRY
883  _In_ PCtxtHandle phContext,
884  _Out_ HANDLE *phToken);
885 
888 
890 SEC_ENTRY
892  _In_ PCtxtHandle phContext,
893  _In_ ULONG fQOP,
894  _In_ PSecBufferDesc pMessage,
895  _In_ ULONG MessageSeqNo);
896 
898 SEC_ENTRY
900  _In_ PCtxtHandle phContext,
901  _In_ PSecBufferDesc pMessage,
902  _In_ ULONG MessageSeqNo,
903  _Out_opt_ PULONG pfQOP);
904 
905 /* values for EncryptMessage fQOP */
906 #define SECQOP_WRAP_NO_ENCRYPT 0x80000001
907 
912 
914 SEC_ENTRY
916  _In_ PCtxtHandle phContext,
917  _In_ ULONG ulAttribute,
918  _In_reads_bytes_(cbBuffer) void *pBuffer,
919  _In_ ULONG cbBuffer);
920 
922 SEC_ENTRY
924  _In_ PCtxtHandle phContext,
925  _In_ ULONG ulAttribute,
926  _In_reads_bytes_(cbBuffer) void *pBuffer,
927  _In_ ULONG cbBuffer);
928 
929 #define SetContextAttributes WINELIB_NAME_AW(SetContextAttributes)
930 
932  ULONG, void *, ULONG);
934  ULONG, void *, ULONG);
935 
936 #define SECURITY_ENTRYPOINT_ANSIA "InitSecurityInterfaceA"
937 #define SECURITY_ENTRYPOINT_ANSIW "InitSecurityInterfaceW"
938 #define SECURITY_ENTRYPOINT_ANSI WINELIB_NAME_AW(SECURITY_ENTRYPOINT_ANSI)
939 
941 {
947  void *Reserved2;
960  void *Reserved3;
961  void *Reserved4;
965  void *Reserved8;
971 
972 /* No, it really is FreeCredentialsHandle, see the thread beginning
973  * http://sourceforge.net/mailarchive/message.php?msg_id=4321080 for a
974  * discovery discussion. */
976 {
982  void *Reserved2;
995  void *Reserved3;
996  void *Reserved4;
1000  void *Reserved8;
1006 
1007 #define SecurityFunctionTable WINELIB_NAME_AW(SecurityFunctionTable)
1008 #define PSecurityFunctionTable WINELIB_NAME_AW(PSecurityFunctionTable)
1009 
1010 #define SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION 1
1011 #define SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION_2 2
1012 
1015 #define InitSecurityInterface WINELIB_NAME_AW(InitSecurityInterface)
1016 
1019 #define INIT_SECURITY_INTERFACE WINELIB_NAME_AW(INIT_SECURITY_INTERFACE_)
1020 
1021 #ifdef __cplusplus
1022 }
1023 #endif
1024 
1025 #endif /* ndef __WINE_SSPI_H__ */
SEC_WCHAR * sUserName
Definition: sspi.h:570
SEC_WCHAR * sServerName
Definition: sspi.h:703
SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(_In_ PCredHandle phCredential, _In_ ULONG ulAttribute, _Inout_ void *pBuffer)
DELETE_SECURITY_CONTEXT_FN DeleteSecurityContext
Definition: sspi.h:951
_Field_size_(cBuffers) PSecBuffer pBuffers
DECRYPT_MESSAGE_FN DecryptMessage
Definition: sspi.h:968
const uint16_t * PCWSTR
Definition: typedefs.h:55
struct _SEC_CHANNEL_BINDINGS SEC_CHANNEL_BINDINGS
QUERY_SECURITY_PACKAGE_INFO_FN_A QuerySecurityPackageInfoA
Definition: sspi.h:959
SEC_WCHAR * Comment
Definition: sspi.h:106
PSecurityFunctionTableA SEC_ENTRY InitSecurityInterfaceA(void)
Definition: sspi.c:123
struct _SecPkgContext_PasswordExpiry * PSecPkgContext_PasswordExpiry
SECURITY_STATUS(SEC_ENTRY * SET_CONTEXT_ATTRIBUTES_FN_A)(PCtxtHandle, ULONG, void *, ULONG)
Definition: sspi.h:931
SECURITY_STATUS(SEC_ENTRY * EXPORT_SECURITY_CONTEXT_FN)(PCtxtHandle, ULONG, PSecBuffer, void **)
Definition: sspi.h:816
SECURITY_STATUS SEC_ENTRY QueryContextAttributesA(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _Out_ void *pBuffer)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
ULONG dwInitiatorOffset
Definition: sspi.h:224
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ULONG Key
Definition: fatprocs.h:2697
struct _SecPkgInfoW SecPkgInfoW
APPLY_CONTROL_TOKEN_FN ApplyControlToken
Definition: sspi.h:987
ADD_CREDENTIALS_FN_A AddCredentialsA
Definition: sspi.h:964
struct _SecBuffer * PSecBuffer
TimeStamp tsStart
Definition: sspi.h:578
struct _SecPkgCredentials_NamesA * PSecPkgCredentials_NamesA
WCHAR SEC_WCHAR
Definition: sspi.h:29
ULONG cbApplicationDataLength
Definition: sspi.h:228
ULONG EncryptAlgorithm
Definition: sspi.h:603
ULONG LowPart
Definition: sspi.h:75
VERIFY_SIGNATURE_FN VerifySignature
Definition: sspi.h:992
unsigned short wRPCID
Definition: sspi.h:93
ULONG ulVersion
Definition: sspi.h:168
SECURITY_STATUS(SEC_ENTRY * IMPORT_SECURITY_CONTEXT_FN_A)(SEC_CHAR *, PSecBuffer, void *, PCtxtHandle)
Definition: sspi.h:841
struct _SecPkgContext_NamesW SecPkgContext_NamesW
SECURITY_STATUS(SEC_ENTRY * ACQUIRE_CREDENTIALS_HANDLE_FN_A)(SEC_CHAR *, SEC_CHAR *, ULONG, PLUID, PVOID, SEC_GET_KEY_FN, PVOID, PCredHandle, PTimeStamp)
Definition: sspi.h:283
struct _SecPkgCredentials_NamesA SecPkgCredentials_NamesA
struct _SecPkgContext_UserFlags SecPkgContext_UserFlags
SECURITY_STATUS(SEC_ENTRY * ENUMERATE_SECURITY_PACKAGES_FN_W)(PULONG, PSecPkgInfoW *)
Definition: sspi.h:195
struct _SecPkgContext_Bindings * PSecPkgContext_Bindings
REVERT_SECURITY_CONTEXT_FN RevertSecurityContext
Definition: sspi.h:990
char CHAR
Definition: xmlstorage.h:175
FREE_CREDENTIALS_HANDLE_FN FreeCredentialsHandle
Definition: sspi.h:981
SECURITY_STATUS SEC_ENTRY SetContextAttributesW(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _In_reads_bytes_(cbBuffer) void *pBuffer, _In_ ULONG cbBuffer)
PSecHandle PCtxtHandle
Definition: sspi.h:71
SECURITY_STATUS SEC_ENTRY VerifySignature(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _Out_ PULONG pfQOP)
Definition: stubs.c:413
struct _LUID * PLUID
SECURITY_STATUS(SEC_ENTRY * ENUMERATE_SECURITY_PACKAGES_FN_A)(PULONG, PSecPkgInfoA *)
Definition: sspi.h:193
SEC_CHAR * sClientName
Definition: sspi.h:696
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID _Out_ PHANDLE Token
DECRYPT_MESSAGE_FN DecryptMessage
Definition: sspi.h:1003
#define _Outptr_
Definition: no_sal2.h:396
struct _SecHandle * PSecHandle
struct _SecPkgContext_PackageInfoA SecPkgContext_PackageInfoA
PSecPkgInfoA PackageInfo
Definition: sspi.h:674
struct _SecPkgContext_NamesW * PSecPkgContext_NamesW
APPLY_CONTROL_TOKEN_FN ApplyControlToken
Definition: sspi.h:952
unsigned short wVersion
Definition: sspi.h:102
SECURITY_STATUS SEC_ENTRY ExportSecurityContext(_In_ PCtxtHandle phContext, _In_ ULONG fFlags, _Out_ PSecBuffer pPackedContext, _Out_ void **pToken)
void * PSEC_WINNT_AUTH_IDENTITY_OPAQUE
Definition: sspi.h:83
SECURITY_STATUS SEC_ENTRY SetContextAttributesA(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _In_reads_bytes_(cbBuffer) void *pBuffer, _In_ ULONG cbBuffer)
FREE_CREDENTIALS_HANDLE_FN FreeCredentialsHandle
Definition: sspi.h:946
SECURITY_STATUS(SEC_ENTRY * APPLY_CONTROL_TOKEN_FN)(PCtxtHandle, PSecBufferDesc)
Definition: sspi.h:482
#define _Check_return_
Definition: no_sal2.h:13
SECURITY_STATUS(SEC_ENTRY * SET_CONTEXT_ATTRIBUTES_FN_W)(PCtxtHandle, ULONG, void *, ULONG)
Definition: sspi.h:933
struct _SecPkgContext_NativeNamesA * PSecPkgContext_NativeNamesA
IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext
Definition: sspi.h:954
unsigned char * MarshalledTargetInfo
Definition: sspi.h:732
ULONG SignatureAlgorithm
Definition: sspi.h:593
ULONG_PTR dwLower
Definition: sspi.h:53
SECURITY_STATUS(SEC_ENTRY * REVERT_SECURITY_CONTEXT_FN)(PCtxtHandle)
Definition: sspi.h:764
PSecPkgInfoW PackageInfo
Definition: sspi.h:656
SECURITY_STATUS SEC_ENTRY QuerySecurityContextToken(_In_ PCtxtHandle phContext, _Out_ HANDLE *phToken)
Definition: stubs.c:291
struct _SecPkgCredentials_NamesW * PSecPkgCredentials_NamesW
SECURITY_STATUS(SEC_ENTRY * DELETE_SECURITY_CONTEXT_FN)(PCtxtHandle)
Definition: sspi.h:474
struct _SecPkgContext_ProtoInfoW * PSecPkgContext_ProtoInfoW
struct _SecPkgContext_NativeNamesA SecPkgContext_NativeNamesA
ULONG cbBlockSize
Definition: sspi.h:550
SECURITY_STATUS SEC_ENTRY EncryptMessage(_In_ PCtxtHandle phContext, _In_ ULONG fQOP, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo)
ULONG fCapabilities
Definition: sspi.h:91
SEC_WCHAR * sUserName
Definition: sspi.h:243
SECURITY_STATUS SEC_ENTRY FreeContextBuffer(_Inout_ PVOID pv)
Definition: stubs.c:133
struct _SecBufferDesc SecBufferDesc
struct _SecPkgContext_NativeNamesW SecPkgContext_NativeNamesW
SECURITY_STATUS SEC_ENTRY AddCredentialsW(_In_ PCredHandle hCredentials, _In_opt_ SEC_WCHAR *pszPrincipal, _In_ SEC_WCHAR *pszPackage, _In_ ULONG fCredentialUse, _In_opt_ void *pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ void *pvGetKeyArgument, _Out_opt_ PTimeStamp ptsExpiry)
ACQUIRE_CREDENTIALS_HANDLE_FN_A AcquireCredentialsHandleA
Definition: sspi.h:945
ENCRYPT_MESSAGE_FN EncryptMessage
Definition: sspi.h:1002
struct _SecPkgContext_KeyInfoA SecPkgContext_KeyInfoA
SECURITY_STATUS SEC_ENTRY ImportSecurityContextA(_In_ SEC_CHAR *pszPackage, _In_ PSecBuffer pPackedContext, _In_ void *Token, _Out_ PCtxtHandle phContext)
SEC_WCHAR * sSignatureAlgorithmName
Definition: sspi.h:599
struct _SecPkgContext_TargetInformation SecPkgContext_TargetInformation
#define _In_opt_
Definition: no_sal2.h:213
SECURITY_STATUS(SEC_ENTRY * ACCEPT_SECURITY_CONTEXT_FN)(PCredHandle, PCtxtHandle, PSecBufferDesc, ULONG, ULONG, PCtxtHandle, PSecBufferDesc, ULONG *, PTimeStamp)
Definition: sspi.h:408
SECURITY_STATUS SEC_ENTRY QueryContextAttributesW(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _Out_ void *pBuffer)
SECURITY_STATUS SEC_ENTRY DecryptMessage(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _Out_opt_ PULONG pfQOP)
struct _SecPkgContext_CredentialNameA * PSecPkgContext_CredentialNameA
SEC_CHAR * sEncryptAlgorithmName
Definition: sspi.h:591
struct _SecPkgContext_PackageInfoW SecPkgContext_PackageInfoW
TimeStamp tsPasswordExpires
Definition: sspi.h:641
struct _SecPkgContext_Sizes * PSecPkgContext_Sizes
ULONG fCapabilities
Definition: sspi.h:101
uint32_t ULONG_PTR
Definition: typedefs.h:63
ULONG cbInitiatorLength
Definition: sspi.h:223
ULONG cbMaxSignature
Definition: sspi.h:549
struct _SecPkgContext_Lifespan * PSecPkgContext_Lifespan
struct _SecPkgContext_NegotiationInfoW SecPkgContext_NegotiationInfoW
SECURITY_STATUS(SEC_ENTRY * QUERY_CONTEXT_ATTRIBUTES_FN_W)(PCtxtHandle, ULONG, void *)
Definition: sspi.h:503
struct _SecPkgContext_Target * PSecPkgContext_Target
QUERY_SECURITY_CONTEXT_TOKEN_FN QuerySecurityContextToken
Definition: sspi.h:966
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesA(_Out_ PULONG pcPackages, _Outptr_ PSecPkgInfoA *ppPackageInfo)
SEC_CHAR * SECURITY_PSTR
Definition: sspi.h:45
struct _SecPkgContext_AuthorityA * PSecPkgContext_AuthorityA
SECURITY_STATUS SEC_ENTRY MakeSignature(_In_ PCtxtHandle phContext, _In_ ULONG fQOP, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo)
Definition: stubs.c:250
MAKE_SIGNATURE_FN MakeSignature
Definition: sspi.h:956
ULONG dwInitiatorAddrType
Definition: sspi.h:222
struct _SecPkgContext_ProtoInfoA * PSecPkgContext_ProtoInfoA
struct _SecPkgContext_NamesA * PSecPkgContext_NamesA
long LONG
Definition: pedump.c:60
ULONG cbMaxToken
Definition: sspi.h:104
QUERY_CONTEXT_ATTRIBUTES_FN_A QueryContextAttributesA
Definition: sspi.h:953
struct _SecPkgContext_NegotiationInfoA * PSecPkgContext_NegotiationInfoA
_Field_size_bytes_(cbBuffer) void *pvBuffer
SECURITY_STATUS(SEC_ENTRY * DECRYPT_MESSAGE_FN)(PCtxtHandle, PSecBufferDesc, ULONG, PULONG)
Definition: sspi.h:910
_Check_return_ SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:172
ENUMERATE_SECURITY_PACKAGES_FN_W EnumerateSecurityPackagesW
Definition: sspi.h:978
ENUMERATE_SECURITY_PACKAGES_FN_A EnumerateSecurityPackagesA
Definition: sspi.h:943
SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoA(_In_ SEC_CHAR *pszPackageName, _Outptr_ PSecPkgInfoA *ppPackageInfo)
SECURITY_STATUS SEC_ENTRY AddCredentialsA(_In_ PCredHandle hCredentials, _In_opt_ SEC_CHAR *pszPrincipal, _In_ SEC_CHAR *pszPackage, _In_ ULONG fCredentialUse, _In_opt_ void *pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ void *pvGetKeyArgument, _Out_opt_ PTimeStamp ptsExpiry)
struct _SecPkgContext_PackageInfoW * PSecPkgContext_PackageInfoW
SEC_WCHAR * Name
Definition: sspi.h:105
SECURITY_INTEGER * PTimeStamp
Definition: sspi.h:78
struct _SecPkgContext_KeyInfoW * PSecPkgContext_KeyInfoW
SECURITY_STATUS SEC_ENTRY CompleteAuthToken(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pToken)
FREE_CONTEXT_BUFFER_FN FreeContextBuffer
Definition: sspi.h:958
PSecurityFunctionTableA(SEC_ENTRY * INIT_SECURITY_INTERFACE_A)(void)
Definition: sspi.h:1017
PVOID pBuffer
SEC_CHAR * Comment
Definition: sspi.h:96
SECURITY_STATUS(SEC_ENTRY * ACQUIRE_CREDENTIALS_HANDLE_FN_W)(SEC_WCHAR *, SEC_WCHAR *, ULONG, PLUID, PVOID, SEC_GET_KEY_FN, PVOID, PCredHandle, PTimeStamp)
Definition: sspi.h:286
#define _Out_
Definition: no_sal2.h:323
unsigned short wRPCID
Definition: sspi.h:103
SECURITY_STATUS(SEC_ENTRY * ADD_CREDENTIALS_FN_A)(PCredHandle, SEC_CHAR *, SEC_CHAR *, ULONG, void *, SEC_GET_KEY_FN, void *, PTimeStamp)
Definition: sspi.h:873
SEC_CHAR * sAuthorityName
Definition: sspi.h:611
struct _SecPkgContext_CredentialNameW SecPkgContext_CredentialNameW
void * PVOID
Definition: retypes.h:9
SECURITY_STATUS SEC_ENTRY ApplyControlToken(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pInput)
Definition: stubs.c:71
ENCRYPT_MESSAGE_FN EncryptMessage
Definition: sspi.h:967
struct _SecPkgContext_Flags SecPkgContext_Flags
Definition: bcd.h:202
struct _SecPkgContext_StreamSizes * PSecPkgContext_StreamSizes
SEC_CHAR * sUserName
Definition: sspi.h:238
LONG SECURITY_STATUS
Definition: sspi.h:34
PSecurityFunctionTableW(SEC_ENTRY * INIT_SECURITY_INTERFACE_W)(void)
Definition: sspi.h:1018
#define _Out_opt_
Definition: no_sal2.h:339
VERIFY_SIGNATURE_FN VerifySignature
Definition: sspi.h:957
struct _SecBufferDesc * PSecBufferDesc
Definition: main.c:39
SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoW(_In_ SEC_WCHAR *pszPackageName, _Outptr_ PSecPkgInfoW *ppPackageInfo)
SECURITY_STATUS(SEC_ENTRY * QUERY_SECURITY_PACKAGE_INFO_FN_A)(SEC_CHAR *, PSecPkgInfoA *)
Definition: sspi.h:803
SEC_WCHAR * sProtocolName
Definition: sspi.h:631
SECURITY_STATUS(SEC_ENTRY * FREE_CREDENTIALS_HANDLE_FN)(PCredHandle)
Definition: sspi.h:302
SECURITY_STATUS(SEC_ENTRY * VERIFY_SIGNATURE_FN)(PCtxtHandle, PSecBufferDesc, ULONG, PULONG)
Definition: sspi.h:785
SECURITY_STATUS SEC_ENTRY InitializeSecurityContextA(_In_opt_ PCredHandle phCredential, _In_opt_ PCtxtHandle phContext, _In_opt_ SEC_CHAR *pszTargetName, _In_ ULONG fContextReq, _In_ ULONG Reserved1, _In_ ULONG TargetDataRep, _In_opt_ PSecBufferDesc pInput, _In_ ULONG Reserved2, _Inout_opt_ PCtxtHandle phNewContext, _Inout_opt_ PSecBufferDesc pOutput, _Out_ ULONG *pfContextAttr, _Out_opt_ PTimeStamp ptsExpiry)
__wchar_t WCHAR
Definition: xmlstorage.h:180
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:400
struct _SecPkgContext_Lifespan SecPkgContext_Lifespan
SecHandle CtxtHandle
Definition: sspi.h:70
struct _SEC_CHANNEL_BINDINGS * PSEC_CHANNEL_BINDINGS
IMPORT_SECURITY_CONTEXT_FN_A ImportSecurityContextA
Definition: sspi.h:963
struct _SecPkgContext_Bindings SecPkgContext_Bindings
LONG HighPart
Definition: sspi.h:76
struct _SecPkgContext_Target SecPkgContext_Target
SECURITY_STATUS(SEC_ENTRY * QUERY_CREDENTIALS_ATTRIBUTES_FN_W)(PCredHandle, ULONG, PVOID)
Definition: sspi.h:218
struct _SecPkgContext_ProtoInfoW SecPkgContext_ProtoInfoW
INITIALIZE_SECURITY_CONTEXT_FN_A InitializeSecurityContextA
Definition: sspi.h:948
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(_Out_ PULONG pcPackages, _Outptr_ PSecPkgInfoW *ppPackageInfo)
struct _SecPkgContext_AccessToken SecPkgContext_AccessToken
SECURITY_STATUS(SEC_ENTRY * COMPLETE_AUTH_TOKEN_FN)(PCtxtHandle, PSecBufferDesc)
Definition: sspi.h:469
DELETE_SECURITY_CONTEXT_FN DeleteSecurityContext
Definition: sspi.h:986
struct _SECURITY_INTEGER * PSECURITY_INTEGER
_In_opt_ LPSTR _In_opt_ LPSTR _In_ DWORD _In_ DWORD _Out_opt_ PHANDLE phToken
Definition: winbase.h:2668
struct _SecPkgContext_KeyInfoA * PSecPkgContext_KeyInfoA
struct _SECURITY_FUNCTION_TABLE_A * PSecurityFunctionTableA
INITIALIZE_SECURITY_CONTEXT_FN_W InitializeSecurityContextW
Definition: sspi.h:983
struct _SecPkgContext_NegotiationInfoW * PSecPkgContext_NegotiationInfoW
SECURITY_STATUS SEC_ENTRY AcquireCredentialsHandleA(_In_opt_ SEC_CHAR *pszPrincipal, _In_ SEC_CHAR *pszPackage, _In_ ULONG fCredentialsUse, _In_opt_ PLUID pvLogonID, _In_opt_ PVOID pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ PVOID pvGetKeyArgument, _Out_ PCredHandle phCredential, _Out_opt_ PTimeStamp ptsExpiry)
#define _Inout_
Definition: no_sal2.h:244
SEC_CHAR * sUserName
Definition: sspi.h:565
SECURITY_STATUS(SEC_ENTRY * MAKE_SIGNATURE_FN)(PCtxtHandle, ULONG, PSecBufferDesc, ULONG)
Definition: sspi.h:774
struct _SecPkgContext_NamesA SecPkgContext_NamesA
SEC_CHAR * sCredentialName
Definition: sspi.h:712
struct _SecBuffer SecBuffer
ULONG dwApplicationDataOffset
Definition: sspi.h:229
ADD_CREDENTIALS_FN_W AddCredentialsW
Definition: sspi.h:999
IMPORT_SECURITY_CONTEXT_FN_W ImportSecurityContextW
Definition: sspi.h:998
TimeStamp tsExpiry
Definition: sspi.h:579
ULONG TargetLength
Definition: sspi.h:743
struct _SECURITY_FUNCTION_TABLE_W SecurityFunctionTableW
ULONG cbSecurityTrailer
Definition: sspi.h:551
struct _SecPkgContext_Flags * PSecPkgContext_Flags
ULONG SEC_ENTRY SspiPromptForCredentialsW(_In_ PCWSTR, _In_opt_ void *, _In_ ULONG, _In_ PCWSTR, _In_opt_ PSEC_WINNT_AUTH_IDENTITY_OPAQUE, _Outptr_ PSEC_WINNT_AUTH_IDENTITY_OPAQUE *, _Inout_opt_ int *, _In_ ULONG)
ULONG SignatureAlgorithm
Definition: sspi.h:602
SEC_CHAR * sServerName
Definition: sspi.h:697
ULONG BufferType
Definition: sspi.h:141
SECURITY_STATUS(SEC_ENTRY * ADD_CREDENTIALS_FN_W)(PCredHandle, SEC_WCHAR *, SEC_WCHAR *, ULONG, void *, SEC_GET_KEY_FN, void *, PTimeStamp)
Definition: sspi.h:876
SECURITY_STATUS(SEC_ENTRY * INITIALIZE_SECURITY_CONTEXT_FN_A)(PCredHandle, PCtxtHandle, SEC_CHAR *, ULONG, ULONG, ULONG, PSecBufferDesc, ULONG, PCtxtHandle, PSecBufferDesc, ULONG *, PTimeStamp)
Definition: sspi.h:339
PSecHandle PCredHandle
Definition: sspi.h:68
SECURITY_STATUS(SEC_ENTRY * IMPERSONATE_SECURITY_CONTEXT_FN)(PCtxtHandle)
Definition: sspi.h:760
struct _SecPkgContext_PasswordExpiry SecPkgContext_PasswordExpiry
PSecPkgInfoW PackageInfo
Definition: sspi.h:680
SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesA(_In_ PCredHandle phCredential, _In_ ULONG ulAttribute, _Inout_ void *pBuffer)
PSecPkgInfoA PackageInfo
Definition: sspi.h:651
#define _In_reads_bytes_(size)
Definition: no_sal2.h:229
SECURITY_INTEGER TimeStamp
Definition: sspi.h:78
Status
Definition: gdiplustypes.h:24
EXPORT_SECURITY_CONTEXT_FN ExportSecurityContext
Definition: sspi.h:997
SECURITY_STATUS SEC_ENTRY AcquireCredentialsHandleW(_In_opt_ SEC_WCHAR *pszPrincipal, _In_ SEC_WCHAR *pszPackage, _In_ ULONG fCredentialsUse, _In_opt_ PLUID pvLogonID, _In_opt_ PVOID pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ PVOID pvGetKeyArgument, _Out_ PCredHandle phCredential, _Out_opt_ PTimeStamp ptsExpiry)
QUERY_CREDENTIALS_ATTRIBUTES_FN_A QueryCredentialsAttributesA
Definition: sspi.h:944
SEC_CHAR * Name
Definition: sspi.h:95
#define _In_
Definition: no_sal2.h:204
struct _SecPkgCredentials_NamesW SecPkgCredentials_NamesW
_Field_size_bytes_(SessionKeyLength) unsigned char *SessionKey
struct _SecPkgContext_AccessToken * PSecPkgContext_AccessToken
void(SEC_ENTRY * SEC_GET_KEY_FN)(void *Arg, void *Principal, ULONG KeyVer, void **Key, SECURITY_STATUS *Status)
Definition: sspi.h:176
struct _SecPkgInfoA SecPkgInfoA
ULONG cbAcceptorLength
Definition: sspi.h:226
SEC_CHANNEL_BINDINGS * Bindings
Definition: sspi.h:750
struct _SecPkgContext_UserFlags * PSecPkgContext_UserFlags
SEC_WCHAR * sEncryptAlgorithmName
Definition: sspi.h:600
QUERY_SECURITY_CONTEXT_TOKEN_FN QuerySecurityContextToken
Definition: sspi.h:1001
ULONG cbMaxToken
Definition: sspi.h:548
PSecurityFunctionTableW SEC_ENTRY InitSecurityInterfaceW(void)
Definition: sspi.c:132
ULONG cbBuffer
Definition: sspi.h:140
COMPLETE_AUTH_TOKEN_FN CompleteAuthToken
Definition: sspi.h:985
struct _SecPkgContext_ProtoInfoA SecPkgContext_ProtoInfoA
SET_CONTEXT_ATTRIBUTES_FN_W SetContextAttributesW
Definition: sspi.h:1004
ULONG dwAcceptorAddrType
Definition: sspi.h:225
SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:88
unsigned short wVersion
Definition: sspi.h:92
SEC_WCHAR * sClientName
Definition: sspi.h:702
struct _SecPkgInfoW * PSecPkgInfoW
struct _SecPkgContext_TargetInformation * PSecPkgContext_TargetInformation
unsigned int * PULONG
Definition: retypes.h:1
SecHandle CredHandle
Definition: sspi.h:67
SET_CONTEXT_ATTRIBUTES_FN_A SetContextAttributesA
Definition: sspi.h:969
struct _SecPkgContext_CredentialNameW * PSecPkgContext_CredentialNameW
struct _SecPkgContext_AuthorityA SecPkgContext_AuthorityA
CHAR SEC_CHAR
Definition: sspi.h:30
struct _SECURITY_FUNCTION_TABLE_A SecurityFunctionTableA
struct _SecPkgContext_AuthorityW SecPkgContext_AuthorityW
Definition: bcd.h:201
struct _SecPkgContext_NegotiationInfoA SecPkgContext_NegotiationInfoA
ULONG_PTR dwUpper
Definition: sspi.h:54
SEC_WCHAR * sAuthorityName
Definition: sspi.h:616
SEC_CHAR * sSignatureAlgorithmName
Definition: sspi.h:590
REVERT_SECURITY_CONTEXT_FN RevertSecurityContext
Definition: sspi.h:955
struct _SecPkgContext_PackageInfoA * PSecPkgContext_PackageInfoA
ACCEPT_SECURITY_CONTEXT_FN AcceptSecurityContext
Definition: sspi.h:984
struct _SecPkgContext_AuthzID SecPkgContext_AuthzID
struct _SECURITY_INTEGER SECURITY_INTEGER
struct _SecPkgContext_DceInfo SecPkgContext_DceInfo
SEC_CHAR * sProtocolName
Definition: sspi.h:624
ACQUIRE_CREDENTIALS_HANDLE_FN_W AcquireCredentialsHandleW
Definition: sspi.h:980
struct _SecPkgContext_DceInfo * PSecPkgContext_DceInfo
SEC_WCHAR * sCredentialName
Definition: sspi.h:718
SECURITY_STATUS(SEC_ENTRY * QUERY_CREDENTIALS_ATTRIBUTES_FN_A)(PCredHandle, ULONG, PVOID)
Definition: sspi.h:216
SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(_In_ PCredHandle phCredential)
Definition: stubs.c:142
SECURITY_STATUS SEC_ENTRY ImportSecurityContextW(_In_ SEC_WCHAR *pszPackage, _In_ PSecBuffer pPackedContext, _In_ void *Token, _Out_ PCtxtHandle phContext)
unsigned int ULONG
Definition: retypes.h:1
QUERY_CONTEXT_ATTRIBUTES_FN_W QueryContextAttributesW
Definition: sspi.h:988
ULONG EncryptAlgorithm
Definition: sspi.h:594
ACCEPT_SECURITY_CONTEXT_FN AcceptSecurityContext
Definition: sspi.h:949
struct _SecPkgContext_SessionKey * PSecPkgContext_SessionKey
SECURITY_STATUS SEC_ENTRY AcceptSecurityContext(_In_opt_ PCredHandle phCredential, _In_opt_ PCtxtHandle phContext, _In_opt_ PSecBufferDesc pInput, _In_ ULONG fContextReq, _In_ ULONG TargetDataRep, _Inout_opt_ PCtxtHandle phNewContext, _Inout_opt_ PSecBufferDesc pOutput, _Out_ ULONG *pfContextAttr, _Out_opt_ PTimeStamp ptsExpiry)
SECURITY_STATUS(SEC_ENTRY * QUERY_CONTEXT_ATTRIBUTES_FN_A)(PCtxtHandle, ULONG, void *)
Definition: sspi.h:501
SECURITY_STATUS(SEC_ENTRY * QUERY_SECURITY_CONTEXT_TOKEN_FN)(PCtxtHandle, HANDLE *)
Definition: sspi.h:887
SECURITY_STATUS(SEC_ENTRY * IMPORT_SECURITY_CONTEXT_FN_W)(SEC_WCHAR *, PSecBuffer, void *, PCtxtHandle)
Definition: sspi.h:843
struct _SecPkgContext_AuthzID * PSecPkgContext_AuthzID
FREE_CONTEXT_BUFFER_FN FreeContextBuffer
Definition: sspi.h:993
SECURITY_STATUS(SEC_ENTRY * QUERY_SECURITY_PACKAGE_INFO_FN_W)(SEC_WCHAR *, PSecPkgInfoW *)
Definition: sspi.h:805
MAKE_SIGNATURE_FN MakeSignature
Definition: sspi.h:991
struct _SecPkgContext_KeyInfoW SecPkgContext_KeyInfoW
struct _SecPkgContext_NativeNamesW * PSecPkgContext_NativeNamesW
struct _SecPkgInfoA * PSecPkgInfoA
struct _SecHandle SecHandle
#define SEC_ENTRY
Definition: sspi.h:27
EXPORT_SECURITY_CONTEXT_FN ExportSecurityContext
Definition: sspi.h:962
ULONG cBuffers
Definition: sspi.h:169
COMPLETE_AUTH_TOKEN_FN CompleteAuthToken
Definition: sspi.h:950
IMPERSONATE_SECURITY_CONTEXT_FN ImpersonateSecurityContext
Definition: sspi.h:989
SECURITY_STATUS(SEC_ENTRY * FREE_CONTEXT_BUFFER_FN)(_Inout_ PVOID)
Definition: sspi.h:293
struct _SecPkgContext_CredentialNameA SecPkgContext_CredentialNameA
SECURITY_STATUS SEC_ENTRY RevertSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:311
SECURITY_STATUS SEC_ENTRY InitializeSecurityContextW(_In_opt_ PCredHandle phCredential, _In_opt_ PCtxtHandle phContext, _In_opt_ SEC_WCHAR *pszTargetName, _In_ ULONG fContextReq, _In_ ULONG Reserved1, _In_ ULONG TargetDataRep, _In_opt_ PSecBufferDesc pInput, _In_ ULONG Reserved2, _Inout_opt_ PCtxtHandle phNewContext, _Inout_opt_ PSecBufferDesc pOutput, _Out_ ULONG *pfContextAttr, _Out_opt_ PTimeStamp ptsExpiry)
#define CONST
Definition: pedump.c:81
SECURITY_STATUS(SEC_ENTRY * INITIALIZE_SECURITY_CONTEXT_FN_W)(PCredHandle, PCtxtHandle, SEC_WCHAR *, ULONG, ULONG, ULONG, PSecBufferDesc, ULONG, PCtxtHandle, PSecBufferDesc, ULONG *, PTimeStamp)
Definition: sspi.h:343
struct _SecPkgContext_AuthorityW * PSecPkgContext_AuthorityW
struct _SecPkgContext_StreamSizes SecPkgContext_StreamSizes
struct _SecPkgContext_Sizes SecPkgContext_Sizes
QUERY_CREDENTIALS_ATTRIBUTES_FN_W QueryCredentialsAttributesW
Definition: sspi.h:979
SECURITY_STATUS(SEC_ENTRY * ENCRYPT_MESSAGE_FN)(PCtxtHandle, ULONG, PSecBufferDesc, ULONG)
Definition: sspi.h:908
struct _SecPkgContext_SessionKey SecPkgContext_SessionKey
CONST SEC_CHAR * SECURITY_PCSTR
Definition: sspi.h:46
#define _Inout_opt_
Definition: no_sal2.h:258
ULONG cbMaxToken
Definition: sspi.h:94
struct _SECURITY_FUNCTION_TABLE_W * PSecurityFunctionTableW
QUERY_SECURITY_PACKAGE_INFO_FN_W QuerySecurityPackageInfoW
Definition: sspi.h:994
ULONG dwAcceptorOffset
Definition: sspi.h:227