summaryrefslogtreecommitdiffstats
path: root/winsup/lsaauth/cyglsa.c
Commit message (Collapse)AuthorAgeFilesLines
* Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout optioncygwin-2_5_2-releaseCorinna Vinschen2016-06-231-2/+0
| | | | | | | | | | | | | | Bump GPLv2+ to GPLv3+ for some files, clarify BSD 2-clause. Everything else stays under GPLv3+. New Linking Exception exempts resulting executables from LGPLv3 section 4. Add CONTRIBUTORS file to keep track of licensing. Remove 'Copyright Red Hat Inc' comments. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* cyglsa: Drop code handling Windows 2000 and earlierCorinna Vinschen2016-02-171-35/+2
| | | | | | | | | | * cyglsa.c (must_create_logon_sid): Remove. (LsaApInitializePackage): Drop checking version and setting must_create_logon_sid accordingly. (LsaApLogonUserEx): Drop code setting login SID only required on Windows 2000 and earlier. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* * Makefile.in (LIBS): Re-add advapi32.dll. Explain why.Corinna Vinschen2012-05-291-28/+18
| | | | | | | * make-64bit-version-with-mingw-w64.sh (LIBS): Ditto. * cyglsa.c: Drop NTDLL function declarations. Use equivalent advapi32 functions again, throughout. * cyglsa64.dll: Regenerate.
* * Makefile.in: Don't override CC.Corinna Vinschen2011-05-101-1/+5
| | | | | * cyglsa.c: Don't include wchar.h. Declare wcscpy and wcslen instead. * cyglsa64.dll: Rebuild.
* * Makefile.in (LIBS): Remove advapi32.dll.Corinna Vinschen2011-03-311-22/+33
| | | | | | | | | | | | | (clean): Remove cyglsa.def. * cyglsa.c: Drop definitions required for VC++. Don't include ntddk.h. Declare functions from NTDLL here. Explain why. Use NTDLL functions in place of ADVAPI32 functions. * cyglsa64.def: New file. * cyglsa64.dll: Regenerate. * make-64bit-version-with-mingw-w64.sh (LIBS): Remove advapi32.dll. Reference cyglsa64.def instead of mslsa.def. * make-64bit-version-with-visual-c.bat: Remove. * mslsa.def: Remove.
* * cyglsa.c: Fix compilation with MinGW-w64 toolchains.Corinna Vinschen2011-03-311-2/+2
| | | | | * make-64bit-version-with-mingw-w64.sh: New file. * cyglsa64.dll: Regenerate with MinGW-w64-gc.
* * cyglsa.c: Include lmcons.h instead of lm.h to make newer WinDDK happy.Corinna Vinschen2010-01-291-4/+3
| | | | | | | (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.
* * Makefile.in: Rearrange to avoid -mno-cygwin.Christopher Faylor2008-10-121-49/+49
| | | | | | | | * configure.in: Use mingw front-end from utils directory as compiler front-end. * configure: Regenerate. * cyglsa.c (cyglsa_printf): Rename from 'printf' to avoid a compiler error. (print_sid, print_groups, print_privs, print_dacl, print_tokinf, LsaApLogonUserEx): Ditto.
* * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined.Corinna Vinschen2008-07-151-0/+3
| | | | | * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Fix comment.
* * cyglsa.c: Don't include ntddk.h.Corinna Vinschen2008-07-131-9/+10
| | | | | | | | | | | | | (RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead of "inline". (uni_alloc): Change second argument to USHORT. (printf): Move definition of ap to make Visual-C++ happy. (LsaApLogonUserEx): Compute size of datastructure returned to LSA on 64 bit systems correctly to avoid heap corruption. * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft toolchains. Add more comment. * mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser.
* * cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domainCorinna Vinschen2008-07-111-13/+12
| | | | | | and authinf->username are now of type WCHAR. Change sam_username and sam_u size to be deifned in terms of MAX_DOMAIN_NAME_LEN instead of INTERNET_MAX_HOST_NAME_LENGTH.
* * cyglsa.c: Revamp debugging output.Corinna Vinschen2008-07-101-109/+227
| | | | | | | | (LsaApInitializePackage): Open debugging output file here. (LsaApLogonUserEx): Replace LsaApLogonUser. Add debugging output. Create machine name for accounting. Add (disabled) code to fetch a token from GetAuthDataForUser/ConvertAuthDataToToken. * cyglsa.din: Relace LsaApLogonUser with LsaApLogonUserEx.
* Initial release of the Cygwin LSA authentication package.Corinna Vinschen2006-11-271-0/+508
* ChangeLog: New file. * Makefile.in: Ditto. * aclocal.m4: Ditto. * configure.in: Ditto. * configure: Ditto. Generated from configure.in. * cyglsa-config: Ditto. * cyglsa.c: Ditto. * cyglsa.din: Ditto. * cyglsa64.dll: Ditto. * make-64bit-version-with-visual-c.bat: Ditto. * mslsa.def: Ditto.