|
Squid Web Cache master
|
Go to the source code of this file.
Classes | |
| struct | _AUTH_SEQ |
Typedefs | |
| typedef struct _AUTH_SEQ | AUTH_SEQ |
| typedef struct _AUTH_SEQ * | PAUTH_SEQ |
Functions | |
| template<typename T > | |
| T | farproc_cast (FARPROC in) |
| BOOL | GenClientContext (PAUTH_SEQ, PSEC_WINNT_AUTH_IDENTITY, PVOID, DWORD, PVOID, PDWORD, PBOOL) |
| BOOL | GenServerContext (PAUTH_SEQ, PVOID, DWORD, PVOID, PDWORD, PBOOL, char *) |
| void | UnloadSecurityDll (void) |
| HMODULE | LoadSecurityDll (int mode, const char *SSP_Package) |
| BOOL WINAPI | SSP_LogonUser (PTSTR szUser, PTSTR szPassword, PTSTR szDomain) |
Variables | |
| static HMODULE | hModule |
| static int | NTLM_mode = SSP_BASIC |
| static char * | SSP_Package_InUse |
| SECURITY_STATUS | SecurityStatus = SEC_E_OK |
| static DWORD | cbMaxToken = 0 |
| static uint8_t * | pClientBuf = nullptr |
| static uint8_t * | pServerBuf = nullptr |
| static AUTH_SEQ | NTLM_asServer = {} |
| BOOL | Use_Unicode = FALSE |
| ACCEPT_SECURITY_CONTEXT_FN | _AcceptSecurityContext = nullptr |
| ACQUIRE_CREDENTIALS_HANDLE_FN | _AcquireCredentialsHandle = nullptr |
| COMPLETE_AUTH_TOKEN_FN | _CompleteAuthToken = nullptr |
| DELETE_SECURITY_CONTEXT_FN | _DeleteSecurityContext = nullptr |
| FREE_CONTEXT_BUFFER_FN | _FreeContextBuffer = nullptr |
| FREE_CREDENTIALS_HANDLE_FN | _FreeCredentialsHandle = nullptr |
| INITIALIZE_SECURITY_CONTEXT_FN | _InitializeSecurityContext = nullptr |
| QUERY_SECURITY_PACKAGE_INFO_FN | _QuerySecurityPackageInfo = nullptr |
| QUERY_CONTEXT_ATTRIBUTES_FN_A | _QueryContextAttributes = nullptr |
| T farproc_cast | ( | FARPROC | in | ) |
Definition at line 21 of file sspwin32.cc.
| BOOL GenClientContext | ( | PAUTH_SEQ | pAS, |
| PSEC_WINNT_AUTH_IDENTITY | pAuthIdentity, | ||
| PVOID | pIn, | ||
| DWORD | cbIn, | ||
| PVOID | pOut, | ||
| PDWORD | pcbOut, | ||
| PBOOL | pfDone | ||
| ) |
Definition at line 217 of file sspwin32.cc.
References _AcquireCredentialsHandle, _CompleteAuthToken, _InitializeSecurityContext, FALSE, _AUTH_SEQ::fHaveCredHandle, _AUTH_SEQ::fHaveCtxtHandle, _AUTH_SEQ::fInitialized, _AUTH_SEQ::hcred, _AUTH_SEQ::hctxt, NTLM_mode, NULL, SecurityStatus, SSP_NTLM, SSP_Package_InUse, and TRUE.
Referenced by SSP_LogonUser().
| BOOL GenServerContext | ( | PAUTH_SEQ | pAS, |
| PVOID | pIn, | ||
| DWORD | cbIn, | ||
| PVOID | pOut, | ||
| PDWORD | pcbOut, | ||
| PBOOL | pfDone, | ||
| char * | credentials | ||
| ) |
Definition at line 285 of file sspwin32.cc.
References _AcceptSecurityContext, _AcquireCredentialsHandle, _CompleteAuthToken, _QueryContextAttributes, FALSE, _AUTH_SEQ::fHaveCredHandle, _AUTH_SEQ::fHaveCtxtHandle, _AUTH_SEQ::fInitialized, _AUTH_SEQ::hcred, _AUTH_SEQ::hcredLifeTime, _AUTH_SEQ::hctxt, _AUTH_SEQ::hctxtLifeTime, NTLM_mode, NULL, SecurityStatus, SSP_MAX_CRED_LEN, SSP_NTLM, SSP_Package_InUse, and TRUE.
Referenced by SSP_LogonUser().
| HMODULE LoadSecurityDll | ( | int | mode, |
| const char * | SSP_Package | ||
| ) |
Definition at line 104 of file sspwin32.cc.
References _AcceptSecurityContext, _AcquireCredentialsHandle, _CompleteAuthToken, _DeleteSecurityContext, _FreeContextBuffer, _FreeCredentialsHandle, _InitializeSecurityContext, _QueryContextAttributes, _QuerySecurityPackageInfo, cbMaxToken, hModule, NTLM_mode, pClientBuf, pServerBuf, SSP_BASIC, SSP_NTLM, SSP_Package_InUse, UnloadSecurityDll(), WIN2K_SECURITY_DLL, WINNT_SECURITY_DLL, xcalloc(), and xstrdup.
| BOOL WINAPI SSP_LogonUser | ( | PTSTR | szUser, |
| PTSTR | szPassword, | ||
| PTSTR | szDomain | ||
| ) |
Definition at line 390 of file sspwin32.cc.
References _DeleteSecurityContext, _FreeCredentialsHandle, cbMaxToken, FALSE, _AUTH_SEQ::fHaveCredHandle, _AUTH_SEQ::fHaveCtxtHandle, GenClientContext(), GenServerContext(), _AUTH_SEQ::hcred, _AUTH_SEQ::hctxt, hModule, pClientBuf, pServerBuf, and TRUE.
Referenced by Valid_User().
| void UnloadSecurityDll | ( | void | ) |
Definition at line 77 of file sspwin32.cc.
References _AcceptSecurityContext, _AcquireCredentialsHandle, _CompleteAuthToken, _DeleteSecurityContext, _FreeContextBuffer, _FreeCredentialsHandle, _InitializeSecurityContext, _QueryContextAttributes, _QuerySecurityPackageInfo, _AUTH_SEQ::fHaveCredHandle, _AUTH_SEQ::fHaveCtxtHandle, _AUTH_SEQ::hcred, _AUTH_SEQ::hctxt, hModule, NTLM_asServer, pClientBuf, pServerBuf, SSP_Package_InUse, and xfree.
Referenced by LoadSecurityDll(), main(), and main().
| ACCEPT_SECURITY_CONTEXT_FN _AcceptSecurityContext = nullptr |
Definition at line 63 of file sspwin32.cc.
Referenced by GenServerContext(), LoadSecurityDll(), and UnloadSecurityDll().
| ACQUIRE_CREDENTIALS_HANDLE_FN _AcquireCredentialsHandle = nullptr |
Definition at line 64 of file sspwin32.cc.
Referenced by GenClientContext(), GenServerContext(), LoadSecurityDll(), and UnloadSecurityDll().
| COMPLETE_AUTH_TOKEN_FN _CompleteAuthToken = nullptr |
Definition at line 65 of file sspwin32.cc.
Referenced by GenClientContext(), GenServerContext(), LoadSecurityDll(), and UnloadSecurityDll().
| DELETE_SECURITY_CONTEXT_FN _DeleteSecurityContext = nullptr |
Definition at line 66 of file sspwin32.cc.
Referenced by LoadSecurityDll(), SSP_LogonUser(), and UnloadSecurityDll().
| FREE_CONTEXT_BUFFER_FN _FreeContextBuffer = nullptr |
Definition at line 67 of file sspwin32.cc.
Referenced by LoadSecurityDll(), and UnloadSecurityDll().
| FREE_CREDENTIALS_HANDLE_FN _FreeCredentialsHandle = nullptr |
Definition at line 68 of file sspwin32.cc.
Referenced by LoadSecurityDll(), SSP_LogonUser(), and UnloadSecurityDll().
| INITIALIZE_SECURITY_CONTEXT_FN _InitializeSecurityContext = nullptr |
Definition at line 69 of file sspwin32.cc.
Referenced by GenClientContext(), LoadSecurityDll(), and UnloadSecurityDll().
| QUERY_CONTEXT_ATTRIBUTES_FN_A _QueryContextAttributes = nullptr |
Definition at line 74 of file sspwin32.cc.
Referenced by GenServerContext(), LoadSecurityDll(), and UnloadSecurityDll().
| QUERY_SECURITY_PACKAGE_INFO_FN _QuerySecurityPackageInfo = nullptr |
Definition at line 70 of file sspwin32.cc.
Referenced by LoadSecurityDll(), and UnloadSecurityDll().
|
static |
Definition at line 51 of file sspwin32.cc.
Referenced by LoadSecurityDll(), and SSP_LogonUser().
|
static |
Definition at line 46 of file sspwin32.cc.
Referenced by LoadSecurityDll(), SSP_LogonUser(), and UnloadSecurityDll().
|
static |
Definition at line 55 of file sspwin32.cc.
Referenced by UnloadSecurityDll().
Definition at line 47 of file sspwin32.cc.
Referenced by GenClientContext(), GenServerContext(), and LoadSecurityDll().
|
static |
Definition at line 52 of file sspwin32.cc.
Referenced by LoadSecurityDll(), SSP_LogonUser(), and UnloadSecurityDll().
|
static |
Definition at line 53 of file sspwin32.cc.
Referenced by LoadSecurityDll(), SSP_LogonUser(), and UnloadSecurityDll().
| SECURITY_STATUS SecurityStatus = SEC_E_OK |
Definition at line 49 of file sspwin32.cc.
Referenced by GenClientContext(), and GenServerContext().
|
static |
Definition at line 48 of file sspwin32.cc.
Referenced by GenClientContext(), GenServerContext(), LoadSecurityDll(), and UnloadSecurityDll().
| BOOL Use_Unicode = FALSE |
Definition at line 57 of file sspwin32.cc.