ReactOS 0.4.15-dev-5672-gf73ac17
util.h
Go to the documentation of this file.
1/*
2 * PROJECT: Authentication Package DLL
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Utils for msv1_0 (header)
5 * COPYRIGHT: Copyright 2011 Samuel SerapiĆ³n
6 * Copyright 2020 Andreas Maier <staubim@quantentunnel.de>
7 */
8
9#pragma once
10
11bool
14 _In_ UINT16 SizeInBytes,
15 _In_ UINT16 InitLength);
16
17VOID
20
21bool
23 _In_ PVOID DataStart,
25 _Out_ PUNICODE_STRING DstData,
26 _In_ const PUNICODE_STRING SrcData,
27 _In_ OUT PBYTE* AbsoluteOffsetPtr,
28 _In_ bool TerminateWith0);
29
30/* misc */
31bool
34 _In_ ULONG_PTR FixupOffset);
35
36bool
39 _In_ ULONG_PTR FixupOffset);
40
41/* ClientBuffer */
42typedef struct _NTLM_CLIENT_BUFFER
43{
47
50 _In_ PLSA_CLIENT_REQUEST ClientRequest,
53
56 _In_ PLSA_CLIENT_REQUEST ClientRequest,
59
60VOID
62 _In_ PLSA_CLIENT_REQUEST ClientRequest,
63 _In_ bool FreeClientBuffer,
unsigned short UINT16
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
struct _NTLM_CLIENT_BUFFER NTLM_CLIENT_BUFFER
VOID NtlmUStrFree(_In_ PUNICODE_STRING String)
Definition: util.c:115
bool NtlmFixupAndValidateUStr(_Inout_ PUNICODE_STRING String, _In_ ULONG_PTR FixupOffset)
Definition: util.c:223
bool NtlmFixupAStr(_Inout_ PSTRING String, _In_ ULONG_PTR FixupOffset)
Definition: util.c:245
bool NtlmUStrAlloc(_Out_ PUNICODE_STRING Dst, _In_ UINT16 SizeInBytes, _In_ UINT16 InitLength)
struct _NTLM_CLIENT_BUFFER * PNTLM_CLIENT_BUFFER
NTSTATUS NtlmAllocateClientBuffer(_In_ PLSA_CLIENT_REQUEST ClientRequest, _In_ ULONG BufferLength, _Inout_ PNTLM_CLIENT_BUFFER Buffer)
Definition: util.c:264
VOID NtlmFreeClientBuffer(_In_ PLSA_CLIENT_REQUEST ClientRequest, _In_ bool FreeClientBuffer, _Inout_ PNTLM_CLIENT_BUFFER Buffer)
Definition: util.c:335
NTSTATUS NtlmCopyToClientBuffer(_In_ PLSA_CLIENT_REQUEST ClientRequest, _In_ ULONG BufferLength, _In_ OUT PNTLM_CLIENT_BUFFER Buffer)
bool NtlmUStrWriteToStruct(_In_ PVOID DataStart, _In_ ULONG DataSize, _Out_ PUNICODE_STRING DstData, _In_ const PUNICODE_STRING SrcData, _In_ OUT PBYTE *AbsoluteOffsetPtr, _In_ bool TerminateWith0)
#define Dst
Definition: mesh.h:153
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4755
BYTE * PBYTE
Definition: pedump.c:66
PVOID LocalBuffer
Definition: util.h:45
PVOID ClientBaseAddress
Definition: util.h:44
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433