ReactOS  0.4.15-dev-1068-g467feb9
lsamode.c File Reference
#include <stdarg.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "sspi.h"
#include "ntsecapi.h"
#include "ntsecpkg.h"
#include "schannel.h"
#include "wine/debug.h"
Include dependency graph for lsamode.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (schannel)
 
static NTSTATUS WINAPI SpGetInfoUnified (PSecPkgInfoW PackageInfo)
 
static NTSTATUS WINAPI SpGetInfoSChannel (PSecPkgInfoW PackageInfo)
 
NTSTATUS WINAPI SpLsaModeInitialize (ULONG LsaVersion, PULONG PackageVersion, PSECPKG_FUNCTION_TABLE *ppTables, PULONG pcTables)
 

Variables

static SEC_WCHAR schannelCommentW []
 
static SECPKG_FUNCTION_TABLE secPkgFunctionTable [2]
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 24 of file lsamode.c.

Function Documentation

◆ SpGetInfoSChannel()

static NTSTATUS WINAPI SpGetInfoSChannel ( PSecPkgInfoW  PackageInfo)
static

Definition at line 63 of file lsamode.c.

64 {
65  TRACE("(%p)\n", PackageInfo);
66 
67  PackageInfo->fCapabilities = SECPKG_FLAG_MUTUAL_AUTH |
72  PackageInfo->wVersion = 1;
73  PackageInfo->wRPCID = UNISP_RPC_ID;
74  PackageInfo->cbMaxToken = 0x4000;
75  PackageInfo->Name = (LPWSTR)SCHANNEL_NAME_W;
76  PackageInfo->Comment = schannelCommentW;
77 
78  return STATUS_SUCCESS;
79 }
SEC_WCHAR * Comment
Definition: sspi.h:119
unsigned short wVersion
Definition: sspi.h:115
#define SECPKG_FLAG_IMPERSONATION
Definition: sspi.h:134
#define SECPKG_FLAG_INTEGRITY
Definition: sspi.h:126
ULONG fCapabilities
Definition: sspi.h:114
ULONG cbMaxToken
Definition: sspi.h:117
SEC_WCHAR * Name
Definition: sspi.h:118
unsigned short wRPCID
Definition: sspi.h:116
static SEC_WCHAR schannelCommentW[]
Definition: lsamode.c:57
#define SECPKG_FLAG_MULTI_REQUIRED
Definition: sspi.h:131
#define TRACE(s)
Definition: solgame.cpp:4
#define UNISP_RPC_ID
Definition: schannel.h:82
#define SECPKG_FLAG_ACCEPT_WIN32_NAME
Definition: sspi.h:135
#define SCHANNEL_NAME_W
Definition: schannel.h:11
#define SECPKG_FLAG_PRIVACY
Definition: sspi.h:127
#define SECPKG_FLAG_EXTENDED_ERROR
Definition: sspi.h:133
#define SECPKG_FLAG_CONNECTION
Definition: sspi.h:130
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define SECPKG_FLAG_MUTUAL_AUTH
Definition: sspi.h:142
return STATUS_SUCCESS
Definition: btrfs.c:3014
#define SECPKG_FLAG_STREAM
Definition: sspi.h:136

◆ SpGetInfoUnified()

static NTSTATUS WINAPI SpGetInfoUnified ( PSecPkgInfoW  PackageInfo)
static

Definition at line 39 of file lsamode.c.

40 {
41  TRACE("(%p)\n", PackageInfo);
42 
43  PackageInfo->fCapabilities = SECPKG_FLAG_MUTUAL_AUTH |
48  PackageInfo->wVersion = 1;
49  PackageInfo->wRPCID = UNISP_RPC_ID;
50  PackageInfo->cbMaxToken = 0x4000;
51  PackageInfo->Name = (LPWSTR)UNISP_NAME_W;
52  PackageInfo->Comment = (LPWSTR)UNISP_NAME_W;
53 
54  return STATUS_SUCCESS;
55 }
SEC_WCHAR * Comment
Definition: sspi.h:119
unsigned short wVersion
Definition: sspi.h:115
#define SECPKG_FLAG_IMPERSONATION
Definition: sspi.h:134
#define SECPKG_FLAG_INTEGRITY
Definition: sspi.h:126
ULONG fCapabilities
Definition: sspi.h:114
ULONG cbMaxToken
Definition: sspi.h:117
SEC_WCHAR * Name
Definition: sspi.h:118
unsigned short wRPCID
Definition: sspi.h:116
#define SECPKG_FLAG_MULTI_REQUIRED
Definition: sspi.h:131
#define TRACE(s)
Definition: solgame.cpp:4
#define UNISP_RPC_ID
Definition: schannel.h:82
#define SECPKG_FLAG_ACCEPT_WIN32_NAME
Definition: sspi.h:135
#define SECPKG_FLAG_PRIVACY
Definition: sspi.h:127
#define SECPKG_FLAG_EXTENDED_ERROR
Definition: sspi.h:133
#define UNISP_NAME_W
Definition: sspi.h:38
#define SECPKG_FLAG_CONNECTION
Definition: sspi.h:130
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define SECPKG_FLAG_MUTUAL_AUTH
Definition: sspi.h:142
return STATUS_SUCCESS
Definition: btrfs.c:3014
#define SECPKG_FLAG_STREAM
Definition: sspi.h:136

◆ SpLsaModeInitialize()

NTSTATUS WINAPI SpLsaModeInitialize ( ULONG  LsaVersion,
PULONG  PackageVersion,
PSECPKG_FUNCTION_TABLE ppTables,
PULONG  pcTables 
)

Definition at line 162 of file lsamode.c.

164 {
165  TRACE("(%u, %p, %p, %p)\n", LsaVersion, PackageVersion, ppTables, pcTables);
166 
167  *PackageVersion = SECPKG_INTERFACE_VERSION_7;
168  *pcTables = 2;
169  *ppTables = secPkgFunctionTable;
170 
171  return STATUS_SUCCESS;
172 }
static SECPKG_FUNCTION_TABLE secPkgFunctionTable[2]
Definition: lsamode.c:81
#define TRACE(s)
Definition: solgame.cpp:4
#define SECPKG_INTERFACE_VERSION_7
Definition: ntsecpkg.h:40
return STATUS_SUCCESS
Definition: btrfs.c:3014

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( schannel  )

Variable Documentation

◆ schannelCommentW

SEC_WCHAR schannelCommentW[]
static
Initial value:
= { 'S','c','h','a','n','n','e','l',
' ','S','e','c','u','r','i','t','y',' ','P','a','c','k','a','g','e',0 }

Definition at line 57 of file lsamode.c.

Referenced by SpGetInfoSChannel().

◆ secPkgFunctionTable

SECPKG_FUNCTION_TABLE secPkgFunctionTable[2]
static

Definition at line 81 of file lsamode.c.

Referenced by SpLsaModeInitialize().