* 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:
Corinna Vinschen 2010-01-29 19:50:15 +00:00
parent 0b189c1ef3
commit cd5401de59
4 changed files with 13 additions and 5 deletions

View File

@ -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>
* Makefile.in: Add DESTDIR functionality.

View File

@ -1,6 +1,6 @@
/* 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>
@ -16,7 +16,7 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */
#include <wchar.h>
#include <windows.h>
#include <wininet.h>
#include <lm.h>
#include <lmcons.h>
#include <iptypes.h>
#include <ntsecapi.h>
#ifdef __MINGW32__
@ -322,8 +322,7 @@ LsaApLogonUserEx (PLSA_CLIENT_REQUEST request, SECURITY_LOGON_TYPE logon_type,
cyglsa_printf ("Invalid authentication parameter.\n");
return STATUS_INVALID_PARAMETER;
}
checksum = CYGWIN_VERSION_MAGIC (CYGWIN_VERSION_DLL_MAJOR,
CYGWIN_VERSION_DLL_MINOR);
checksum = CYG_LSA_MAGIC;
csp = (PDWORD) &authinf->username;
csp_end = (PDWORD) ((PBYTE) authinf + auth_len);
while (csp < csp_end)

Binary file not shown.

View File

@ -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 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
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