FreeRDP
sspicli.c File Reference
#include <winpr/config.h>
#include <winpr/assert.h>
#include <winpr/sspicli.h>
#include <winpr/crt.h>
#include <pthread.h>
#include <pwd.h>
#include <grp.h>
#include "../handle/handle.h"
#include "../security/security.h"

Functions

static BOOL LogonUserCloseHandle (HANDLE handle)
 
static BOOL LogonUserIsHandled (HANDLE handle)
 
static int LogonUserGetFd (HANDLE handle)
 
BOOL LogonUserA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken)
 
BOOL LogonUserW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken)
 
BOOL LogonUserExA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits)
 
BOOL LogonUserExW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits)
 
BOOL GetUserNameExA (EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize)
 
BOOL GetUserNameExW (EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
 

Variables

static HANDLE_OPS ops
 

Function Documentation

◆ GetUserNameExA()

BOOL GetUserNameExA ( EXTENDED_NAME_FORMAT  NameFormat,
LPSTR  lpNameBuffer,
PULONG  nSize 
)
Here is the caller graph for this function:

◆ GetUserNameExW()

BOOL GetUserNameExW ( EXTENDED_NAME_FORMAT  NameFormat,
LPWSTR  lpNameBuffer,
PULONG  nSize 
)
Here is the call graph for this function:

◆ LogonUserA()

BOOL LogonUserA ( LPCSTR  lpszUsername,
LPCSTR  lpszDomain,
LPCSTR  lpszPassword,
DWORD  dwLogonType,
DWORD  dwLogonProvider,
PHANDLE  phToken 
)
Here is the call graph for this function:

◆ LogonUserCloseHandle()

BOOL LogonUserCloseHandle ( HANDLE  handle)
static

WinPR: Windows Portable Runtime Security Support Provider Interface

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. sspicli.dll:

EnumerateSecurityPackagesA EnumerateSecurityPackagesW GetUserNameExW ImportSecurityContextA LogonUser LogonUserEx LogonUserExExW SspiCompareAuthIdentities SspiCopyAuthIdentity SspiDecryptAuthIdentity SspiEncodeAuthIdentityAsStrings SspiEncodeStringsAsAuthIdentity SspiEncryptAuthIdentity SspiExcludePackage SspiFreeAuthIdentity SspiGetTargetHostName SspiIsAuthIdentityEncrypted SspiLocalFree SspiMarshalAuthIdentity SspiPrepareForCredRead SspiPrepareForCredWrite SspiUnmarshalAuthIdentity SspiValidateAuthIdentity SspiZeroAuthIdentity

Here is the call graph for this function:

◆ LogonUserExA()

BOOL LogonUserExA ( LPCSTR  lpszUsername,
LPCSTR  lpszDomain,
LPCSTR  lpszPassword,
DWORD  dwLogonType,
DWORD  dwLogonProvider,
PHANDLE  phToken,
PSID *  ppLogonSid,
PVOID *  ppProfileBuffer,
LPDWORD  pdwProfileLength,
PQUOTA_LIMITS  pQuotaLimits 
)

◆ LogonUserExW()

BOOL LogonUserExW ( LPCWSTR  lpszUsername,
LPCWSTR  lpszDomain,
LPCWSTR  lpszPassword,
DWORD  dwLogonType,
DWORD  dwLogonProvider,
PHANDLE  phToken,
PSID *  ppLogonSid,
PVOID *  ppProfileBuffer,
LPDWORD  pdwProfileLength,
PQUOTA_LIMITS  pQuotaLimits 
)

◆ LogonUserGetFd()

static int LogonUserGetFd ( HANDLE  handle)
static
Here is the call graph for this function:

◆ LogonUserIsHandled()

static BOOL LogonUserIsHandled ( HANDLE  handle)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogonUserW()

BOOL LogonUserW ( LPCWSTR  lpszUsername,
LPCWSTR  lpszDomain,
LPCWSTR  lpszPassword,
DWORD  dwLogonType,
DWORD  dwLogonProvider,
PHANDLE  phToken 
)

Variable Documentation

◆ ops

HANDLE_OPS ops
static
Initial value:
NULL,
NULL }
if availableBytes return NULL
Definition: TPCircularBuffer.h:109
static BOOL LogonUserIsHandled(HANDLE handle)
Definition: sspicli.c:77
static int LogonUserGetFd(HANDLE handle)
Definition: sspicli.c:82
static BOOL LogonUserCloseHandle(HANDLE handle)
Definition: sspicli.c:94