mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[LSASRV][SECUR32] Fix the naming mess
Rename Untrusted to TrustredCaller in LSA_CONNECTION_INFO and LSAP_LOGON_CONTEXT in order to clarify the meaning of the variable.
This commit is contained in:
parent
9e32854998
commit
1fbb295d4a
5 changed files with 16 additions and 15 deletions
|
@ -585,15 +585,7 @@ LsapCallAuthenticationPackage(PLSA_API_MSG RequestMsg,
|
|||
}
|
||||
}
|
||||
|
||||
if (LogonContext->Untrusted)
|
||||
Status = Package->LsaApCallPackageUntrusted((PLSA_CLIENT_REQUEST)LogonContext,
|
||||
LocalBuffer,
|
||||
RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
|
||||
RequestMsg->CallAuthenticationPackage.Request.SubmitBufferLength,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
|
||||
else
|
||||
if (LogonContext->TrustedCaller)
|
||||
Status = Package->LsaApCallPackage((PLSA_CLIENT_REQUEST)LogonContext,
|
||||
LocalBuffer,
|
||||
RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
|
||||
|
@ -601,6 +593,14 @@ LsapCallAuthenticationPackage(PLSA_API_MSG RequestMsg,
|
|||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
|
||||
else
|
||||
Status = Package->LsaApCallPackageUntrusted((PLSA_CLIENT_REQUEST)LogonContext,
|
||||
LocalBuffer,
|
||||
RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
|
||||
RequestMsg->CallAuthenticationPackage.Request.SubmitBufferLength,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
|
||||
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TRACE("Package->LsaApCallPackage() failed (Status 0x%08lx)\n", Status);
|
||||
|
|
|
@ -135,10 +135,10 @@ LsapCheckLogonProcess(PLSA_API_MSG RequestMsg,
|
|||
TRACE("New LogonContext: %p\n", Context);
|
||||
|
||||
Context->ClientProcessHandle = ProcessHandle;
|
||||
Context->Untrusted = RequestMsg->ConnectInfo.Untrusted;
|
||||
Context->TrustedCaller = RequestMsg->ConnectInfo.TrustedCaller;
|
||||
|
||||
if (Context->Untrusted == FALSE)
|
||||
Context->Untrusted = !LsapIsTrustedClient(ProcessHandle);
|
||||
if (Context->TrustedCaller)
|
||||
Context->TrustedCaller = LsapIsTrustedClient(ProcessHandle);
|
||||
|
||||
*LogonContext = Context;
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ typedef struct _LSAP_LOGON_CONTEXT
|
|||
LIST_ENTRY Entry;
|
||||
HANDLE ClientProcessHandle;
|
||||
HANDLE ConnectionHandle;
|
||||
BOOL Untrusted;
|
||||
BOOL TrustedCaller;
|
||||
} LSAP_LOGON_CONTEXT, *PLSAP_LOGON_CONTEXT;
|
||||
|
||||
typedef struct _SAMPR_ULONG_ARRAY
|
||||
|
|
|
@ -74,6 +74,7 @@ LsapOpenLsaPort(VOID)
|
|||
sizeof(ConnectInfo));
|
||||
|
||||
ConnectInfo.CreateContext = FALSE;
|
||||
ConnectInfo.TrustedCaller = TRUE;
|
||||
|
||||
ConnectInfoLength = sizeof(LSA_CONNECTION_INFO);
|
||||
Status = NtConnectPort(&LsaPortHandle,
|
||||
|
@ -174,7 +175,7 @@ LsaConnectUntrusted(
|
|||
ConnectInfoLength);
|
||||
|
||||
ConnectInfo.CreateContext = TRUE;
|
||||
ConnectInfo.Untrusted = TRUE;
|
||||
ConnectInfo.TrustedCaller = FALSE;
|
||||
|
||||
Status = NtConnectPort(LsaHandle,
|
||||
&PortName,
|
||||
|
|
|
@ -35,7 +35,7 @@ typedef struct _LSA_CONNECTION_INFO
|
|||
ULONG Length;
|
||||
CHAR LogonProcessNameBuffer[LSASS_MAX_LOGON_PROCESS_NAME_LENGTH + 1];
|
||||
BOOL CreateContext;
|
||||
BOOL Untrusted;
|
||||
BOOL TrustedCaller;
|
||||
} LSA_CONNECTION_INFO, *PLSA_CONNECTION_INFO;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue