reactos/dll/win32/msv1_0/ntlm/global.c
Andreas Maier 99dcd6f71c [MSV1_0] Implement LsaApLogonUserEx2_Network (5/5)
This is a part of the Partial Network Login Implementation PR.
2021-12-25 15:55:43 +03:00

76 lines
2.8 KiB
C

/*
* PROJECT: Authentication Package DLL
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: NTLM globals definitions (header)
* COPYRIGHT: Copyright 2011 Samuel Serapión
* Copyright 2020 Andreas Maier <staubim@quantentunnel.de>
*/
#include "../precomp.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ntlm);
/* globals */
NTLM_MODE NtlmMode = NtlmUnknownMode;
LSA_DISPATCH_TABLE DispatchTable;
PLSA_SECPKG_FUNCTION_TABLE LsaFunctions = NULL;
/* msv1_0 (XP, win2k) returns NULL for
* InitializePackage, LsaLogonUser,LsaLogonUserEx,
* SpQueryContextAttributes and SpAddCredentials */
SECPKG_FUNCTION_TABLE NtlmLsaFn[1] =
{
{
.InitializePackage = NULL,
.LsaLogonUser = NULL,
.CallPackage = LsaApCallPackage,
.LogonTerminated = LsaApLogonTerminated,
.CallPackageUntrusted = LsaApCallPackageUntrusted,
.CallPackagePassthrough = LsaApCallPackagePassthrough,
.LogonUserEx = NULL,
.LogonUserEx2 = LsaApLogonUserEx2,
.Initialize = SpInitialize,
.Shutdown = LsaSpShutDown,
.GetInfo = LsaSpGetInfoW,
.AcceptCredentials = SpAcceptCredentials,
.SpAcquireCredentialsHandle = LsaSpAcquireCredentialsHandle,
.SpQueryCredentialsAttributes = LsaSpQueryCredentialsAttributes,
.FreeCredentialsHandle = LsaSpFreeCredentialsHandle,
.SaveCredentials = LsaSpSaveCredentials,
.GetCredentials = LsaSpGetCredentials,
.DeleteCredentials = LsaSpDeleteCredentials,
.InitLsaModeContext = LsaSpInitLsaModeContext,
.AcceptLsaModeContext = LsaSpAcceptLsaModeContext,
.DeleteContext = LsaSpDeleteContext,
.ApplyControlToken = LsaSpApplyControlToken,
.GetUserInfo = LsaSpGetUserInfo,
.GetExtendedInformation = LsaSpGetExtendedInformation,
.SpQueryContextAttributes = NULL,
.SpAddCredentials = NULL,
.SetExtendedInformation = LsaSpSetExtendedInformation
}
};
PSECPKG_DLL_FUNCTIONS UsrFunctions = NULL;
SECPKG_USER_FUNCTION_TABLE NtlmUsrFn[1] =
{
{
.InstanceInit = SpInstanceInit,
.InitUserModeContext = UsrSpInitUserModeContext,
.MakeSignature = UsrSpMakeSignature,
.VerifySignature = UsrSpVerifySignature,
.SealMessage = UsrSpSealMessage,
.UnsealMessage = UsrSpUnsealMessage,
.GetContextToken = UsrSpGetContextToken,
.SpQueryContextAttributes = UsrSpQueryContextAttributes,
.CompleteAuthToken = UsrSpCompleteAuthToken,
.DeleteUserModeContext = UsrSpDeleteUserModeContext,
.FormatCredentials = UsrSpFormatCredentials,
.MarshallSupplementalCreds = UsrSpMarshallSupplementalCreds,
.ExportContext = UsrSpExportSecurityContext,
.ImportContext = UsrSpImportSecurityContext
}
};