FreeRDP
sam.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/sam.h>
#include <winpr/print.h>
#include "../log.h"

Macros

#define WINPR_SAM_FILE   "/etc/winpr/SAM"
 
#define TAG   WINPR_TAG("utils")
 

Functions

WINPR_SAM * SamOpen (const char *filename, BOOL readOnly)
 
static BOOL SamLookupStart (WINPR_SAM *sam)
 
static void SamLookupFinish (WINPR_SAM *sam)
 
static void HexStrToBin (char *str, BYTE *bin, int length)
 
BOOL SamReadEntry (WINPR_SAM *sam, WINPR_SAM_ENTRY *entry)
 
void SamFreeEntry (WINPR_SAM *sam, WINPR_SAM_ENTRY *entry)
 
void SamResetEntry (WINPR_SAM_ENTRY *entry)
 
WINPR_SAM_ENTRY * SamLookupUserA (WINPR_SAM *sam, LPSTR User, UINT32 UserLength, LPSTR Domain, UINT32 DomainLength)
 
WINPR_SAM_ENTRY * SamLookupUserW (WINPR_SAM *sam, LPWSTR User, UINT32 UserLength, LPWSTR Domain, UINT32 DomainLength)
 
void SamClose (WINPR_SAM *sam)
 

Macro Definition Documentation

#define TAG   WINPR_TAG("utils")
#define WINPR_SAM_FILE   "/etc/winpr/SAM"

WinPR: Windows Portable Runtime Security Accounts Manager (SAM)

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

static void HexStrToBin ( char *  str,
BYTE bin,
int  length 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void SamClose ( WINPR_SAM *  sam)

Here is the caller graph for this function:

void SamFreeEntry ( WINPR_SAM *  sam,
WINPR_SAM_ENTRY *  entry 
)

Here is the caller graph for this function:

static void SamLookupFinish ( WINPR_SAM *  sam)
static

Here is the caller graph for this function:

static BOOL SamLookupStart ( WINPR_SAM *  sam)
static

Here is the caller graph for this function:

WINPR_SAM_ENTRY* SamLookupUserA ( WINPR_SAM *  sam,
LPSTR  User,
UINT32  UserLength,
LPSTR  Domain,
UINT32  DomainLength 
)

Here is the call graph for this function:

Here is the caller graph for this function:

WINPR_SAM_ENTRY* SamLookupUserW ( WINPR_SAM *  sam,
LPWSTR  User,
UINT32  UserLength,
LPWSTR  Domain,
UINT32  DomainLength 
)

Here is the call graph for this function:

Here is the caller graph for this function:

WINPR_SAM* SamOpen ( const char *  filename,
BOOL  readOnly 
)

Here is the caller graph for this function:

BOOL SamReadEntry ( WINPR_SAM *  sam,
WINPR_SAM_ENTRY *  entry 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void SamResetEntry ( WINPR_SAM_ENTRY *  entry)

Here is the caller graph for this function: