]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/sspi/sspwin32.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 * AUTHOR: Guido Serassio <serassio@squid-cache.org>
11 * Based on previous work of Francesco Chemolli, Robert Collins and Andrew Doran
14 #ifndef _LIBSSPWIN32_H_
15 #define _LIBSSPWIN32_H_
17 #define SECURITY_WIN32
18 #define NTLM_PACKAGE_NAME "NTLM"
19 #define NEGOTIATE_PACKAGE_NAME "Negotiate"
37 typedef char * SSP_blobP
;
39 #define WINNT_SECURITY_DLL "security.dll"
40 #define WIN2K_SECURITY_DLL "secur32.dll"
45 #define SSP_MAX_CRED_LEN 848
52 HMODULE
LoadSecurityDll(int, const char *);
53 void UnloadSecurityDll(void);
55 #if HAVE_AUTH_MODULE_BASIC
56 BOOL WINAPI
SSP_LogonUser(PTSTR
, PTSTR
, PTSTR
);
59 #if HAVE_AUTH_MODULE_NTLM
60 const char * WINAPI
SSP_MakeChallenge(PVOID
, int);
61 BOOL WINAPI
SSP_ValidateNTLMCredentials(PVOID
, int, char *);
62 extern BOOL NTLM_LocalCall
;
65 #if HAVE_AUTH_MODULE_NEGOTIATE
66 const char * WINAPI
SSP_MakeNegotiateBlob(PVOID
, int, PBOOL
, int *, char *);
67 const char * WINAPI
SSP_ValidateNegotiateCredentials(PVOID
, int, PBOOL
, int *, char *);
70 #endif /* LIBSSPWIN32_H_ */