* cyglsa.c: Include lmcons.h instead of lm.h to make newer WinDDK happy.
(LsaApLogonUserEx): Use CYG_LSA_MAGIC as checksum start value to decouple from Cygwin release. * make-64bit-version-with-visual-c.bat: Avoid compiler warning. * cyglsa64.dll: New build.
This commit is contained in:
parent
0b189c1ef3
commit
cd5401de59
|
@ -1,3 +1,11 @@
|
||||||
|
2010-01-29 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* cyglsa.c: Include lmcons.h instead of lm.h to make newer WinDDK happy.
|
||||||
|
(LsaApLogonUserEx): Use CYG_LSA_MAGIC as checksum start value to
|
||||||
|
decouple from Cygwin release.
|
||||||
|
* make-64bit-version-with-visual-c.bat: Avoid compiler warning.
|
||||||
|
* cyglsa64.dll: New build.
|
||||||
|
|
||||||
2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
|
2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
|
||||||
|
|
||||||
* Makefile.in: Add DESTDIR functionality.
|
* Makefile.in: Add DESTDIR functionality.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* cyglsa.c: LSA authentication module for Cygwin
|
/* cyglsa.c: LSA authentication module for Cygwin
|
||||||
|
|
||||||
Copyright 2006, 2008 Red Hat, Inc.
|
Copyright 2006, 2008, 2010 Red Hat, Inc.
|
||||||
|
|
||||||
Written by Corinna Vinschen <corinna@vinschen.de>
|
Written by Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wininet.h>
|
#include <wininet.h>
|
||||||
#include <lm.h>
|
#include <lmcons.h>
|
||||||
#include <iptypes.h>
|
#include <iptypes.h>
|
||||||
#include <ntsecapi.h>
|
#include <ntsecapi.h>
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
|
@ -322,8 +322,7 @@ LsaApLogonUserEx (PLSA_CLIENT_REQUEST request, SECURITY_LOGON_TYPE logon_type,
|
||||||
cyglsa_printf ("Invalid authentication parameter.\n");
|
cyglsa_printf ("Invalid authentication parameter.\n");
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
checksum = CYGWIN_VERSION_MAGIC (CYGWIN_VERSION_DLL_MAJOR,
|
checksum = CYG_LSA_MAGIC;
|
||||||
CYGWIN_VERSION_DLL_MINOR);
|
|
||||||
csp = (PDWORD) &authinf->username;
|
csp = (PDWORD) &authinf->username;
|
||||||
csp_end = (PDWORD) ((PBYTE) authinf + auth_len);
|
csp_end = (PDWORD) ((PBYTE) authinf + auth_len);
|
||||||
while (csp < csp_end)
|
while (csp < csp_end)
|
||||||
|
|
Binary file not shown.
|
@ -25,5 +25,6 @@ rem the security checks and there's apparently no runtmchk.lib anymore.
|
||||||
rem I leave the old statements in for reference.
|
rem I leave the old statements in for reference.
|
||||||
rem cl /Wp64 /c cyglsa.c
|
rem cl /Wp64 /c cyglsa.c
|
||||||
rem link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj runtmchk.lib advapi32.lib kernel32.lib ntdll.lib
|
rem link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj runtmchk.lib advapi32.lib kernel32.lib ntdll.lib
|
||||||
cl /Wp64 /EHs-c- /GS- /GR- /GL- /c cyglsa.c
|
rem cl /Wp64 /EHs-c- /GS- /GR- /GL- /c cyglsa.c
|
||||||
|
cl /EHs-c- /GS- /GR- /GL- /c cyglsa.c
|
||||||
link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj advapi32.lib kernel32.lib ntdll.lib
|
link /nodefaultlib /dll /machine:x64 /entry:DllMain /out:cyglsa64.dll /def:mslsa.def cyglsa.obj advapi32.lib kernel32.lib ntdll.lib
|
||||||
|
|
Loading…
Reference in New Issue