summaryrefslogtreecommitdiff
path: root/lib/curl_sspi.c
Commit message (Collapse)AuthorAgeFilesLines
* comment: Fix multiple typos in function parametersDaniel Gustafsson2018-10-031-1/+1
| | | | | | | | Ensure that the parameters in the comment match the actual names in the prototype. Closes #3079 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
* lib: fix gcc8 warning on WindowsViktor Szakats2018-09-121-2/+3
| | | | Closes https://github.com/curl/curl/pull/2979
* curl_sspi.c: Updated function description commentsSteve Holme2016-08-311-1/+19
| | | | | | * Added description to Curl_sspi_free_identity() * Added parameter and return explanations to Curl_sspi_global_init() * Added parameter explaination to Curl_sspi_global_cleanup()
* win32: Used centralised verify windows version functionSteve Holme2016-06-041-42/+1
| | | | Closes #845
* loadlibrary: Only load system DLLs from the system directorySteve Holme2016-05-301-3/+4
| | | | | | | | Inspiration provided by: Daniel Stenberg and Ray Satiro Bug: https://curl.haxx.se/docs/adv_20160530.html Ref: Windows DLL hijacking with curl, CVE-2016-4802
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* sspi: Fix typo from left over from old code which referenced NTLMSteve Holme2015-08-011-1/+1
| | | | | References to NTLM in the identity generation should have been removed in commit c469941293 but not all were.
* win32: Fix compilation warnings from commit 40c921f8b8Steve Holme2015-08-011-1/+6
| | | | | | | | | | | connect.c:953:5: warning: initializer element is not computable at load time connect.c:953:5: warning: missing initializer for field 'dwMinorVersion' of 'OSVERSIONINFOEX' curl_sspi.c:97:5: warning: initializer element is not computable at load time curl_sspi.c:97:5: warning: missing initializer for field 'szCSDVersion' of 'OSVERSIONINFOEX'
* Windows: Fix VerifyVersionInfo callsJay Satiro2015-07-221-11/+11
| | | | | | | | | | | | | | - Fix the VerifyVersionInfo calls, which we use to test for the OS major version, to also test for the minor version as well as the service pack major and minor versions. MSDN: "If you are testing the major version, you must also test the minor version and the service pack major and minor versions." https://msdn.microsoft.com/en-us/library/windows/desktop/ms725492.aspx Bug: https://github.com/bagder/curl/pull/353#issuecomment-123493098 Reported-by: Marcel Raad <MarcelRaad@users.noreply.github.com>
* curl_memory: make curl_memory.h the second-last header file loadedDan Fandrich2015-03-241-2/+2
| | | | | | | This header file must be included after all header files except memdebug.h, as it does similar memory function redefinitions and can be similarly affected by conflicting definitions in system or dependent library headers.
* mprintf.h: remove #ifdef CURLDEBUGDaniel Stenberg2015-03-031-6/+1
| | | | | ... and as a consequence, introduce curl_printf.h with that re-define magic instead and make all libcurl code use that instead.
* ntlm: Moved the identity generation into shared SSPI codeSteve Holme2014-04-061-0/+104
|
* win32: Added additional preprocessor check for Version Helper APISteve Holme2014-01-181-1/+2
| | | | | A follow up patch to commit d2671340a613 as _WIN32_WINNT_WIN2K and _WIN32_WINNT_WIN2K may not be defined on all systems.
* win32: Corrected the preprocessor check for Version Helper APISteve Holme2014-01-171-1/+1
| | | | | Following some auto build failures after commit c7a76bb056f31e changed the preprocessor check to use _WIN32_WINNT.
* win32: Fixed use of deprecated function 'GetVersionInfoEx' for VC12Steve Holme2014-01-151-7/+33
| | | | | | | | Starting with Visual Studio 2013 (VC12) and Windows 8.1 the GetVersionInfoEx() function has been marked as deprecated and it's return value atered. Updated connect.c and curl_sspi.c to use VerifyVersionInfo() where possible, which has been available since Windows 2000.
* build: fix circular header inclusion with other packagesYang Tse2013-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit renames lib/setup.h to lib/curl_setup.h and renames lib/setup_once.h to lib/curl_setup_once.h. Removes the need and usage of a header inclusion guard foreign to libcurl. [1] Removes the need and presence of an alarming notice we carried in old setup_once.h [2] ---------------------------------------- 1 - lib/setup_once.h used __SETUP_ONCE_H macro as header inclusion guard up to commit ec691ca3 which changed this to HEADER_CURL_SETUP_ONCE_H, this single inclusion guard is enough to ensure that inclusion of lib/setup_once.h done from lib/setup.h is only done once. Additionally lib/setup.h has always used __SETUP_ONCE_H macro to protect inclusion of setup_once.h even after commit ec691ca3, this was to avoid a circular header inclusion triggered when building a c-ares enabled version with c-ares sources available which also has a setup_once.h header. Commit ec691ca3 exposes the real nature of __SETUP_ONCE_H usage in lib/setup.h, it is a header inclusion guard foreign to libcurl belonging to c-ares's setup_once.h The renaming this commit does, fixes the circular header inclusion, and as such removes the need and usage of a header inclusion guard foreign to libcurl. Macro __SETUP_ONCE_H no longer used in libcurl. 2 - Due to the circular interdependency of old lib/setup_once.h and the c-ares setup_once.h header, old file lib/setup_once.h has carried back from 2006 up to now days an alarming and prominent notice about the need of keeping libcurl's and c-ares's setup_once.h in sync. Given that this commit fixes the circular interdependency, the need and presence of mentioned notice is removed. All mentioned interdependencies come back from now old days when the c-ares project lived inside a curl subdirectory. This commit removes last traces of such fact.
* Revert changes relative to lib/*.[ch] recent renamingYang Tse2013-01-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts renaming and usage of lib/*.h header files done 28-12-2012, reverting 2 commits: f871de0... build: make use of 76 lib/*.h renamed files ffd8e12... build: rename 76 lib/*.h files This also reverts removal of redundant include guard (redundant thanks to changes in above commits) done 2-12-2013, reverting 1 commit: c087374... curl_setup.h: remove redundant include guard This also reverts renaming and usage of lib/*.c source files done 3-12-2013, reverting 3 commits: 13606bb... build: make use of 93 lib/*.c renamed files 5b6e792... build: rename 93 lib/*.c files 7d83dff... build: commit 13606bbfde follow-up 1 Start of related discussion thread: http://curl.haxx.se/mail/lib-2013-01/0012.html Asking for confirmation on pushing this revertion commit: http://curl.haxx.se/mail/lib-2013-01/0048.html Confirmation summary: http://curl.haxx.se/mail/lib-2013-01/0079.html NOTICE: The list of 2 files that have been modified by other intermixed commits, while renamed, and also by at least one of the 6 commits this one reverts follows below. These 2 files will exhibit a hole in history unless git's '--follow' option is used when viewing logs. lib/curl_imap.h lib/curl_smtp.h
* build: make use of 76 lib/*.h renamed filesYang Tse2012-12-281-2/+2
| | | | | | 76 private header files renamed to use our standard naming scheme. This change affects 322 files in libcurl's source tree.
* SSPI related code: Unicode support for WinCEMark Salisbury2012-06-151-7/+18
| | | | | | | | | | | | | SSPI related code now compiles with ANSI and WCHAR versions of security methods (WinCE requires WCHAR versions of methods). Pulled UTF8 to WCHAR conversion methods out of idn_win32.c into their own file. curl_sasl.c - include curl_memory.h to use correct memory functions. getenv.c and telnet.c - WinCE compatibility fix With some committer adjustments
* schannel: remove version number and identify its use with 'schannel' literalYang Tse2012-06-131-63/+0
| | | | | | | | | | Version number is removed in order to make this info consistent with how we do it with other MS and Linux system libraries for which we don't provide this info. Identifier changed from 'WinSSPI' to 'schannel' given that this is the actual provider of the SSL/TLS support. libcurl can still be built with SSPI and without SCHANNEL support.
* sspi: make Curl_sspi_strerror() libcurl's sspi status code string functionYang Tse2012-06-121-146/+0
|
* cleanup: remove trailing whitespaceDaniel Stenberg2012-06-111-1/+1
|
* sspi: Fixed incompatible parameter pointer type in Curl_sspi_versionMarc Hoersken2012-06-111-1/+2
|
* sspi.c: Post Curl_sspi_version() rework code tidy upSteve Holme2012-06-111-26/+14
| | | | | | | | | | Removed duplicate blank lines. Removed spaces between the not and test in various if statements. Removed explicit test of NULL in an if statement. Placed function returns on same line as function declarations. Replaced the use of curl_maprintf() with aprintf() as it is the preprocessor job to do this substitution if ENABLE_CURLX_PRINTF is set.
* sspi: Reworked Curl_sspi_version() to return version componentsSteve Holme2012-06-111-32/+45
| | | | | Reworked the version function to return four version components rather than a string that has to be freed by the caller.
* schannel: Code cleanup and bug fixesMarc Hoersken2012-06-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | curl_sspi.c: Fixed mingw32-gcc compiler warnings curl_sspi.c: Fixed length of error code hex output The hex value was printed as signed 64-bit value on 64-bit systems: SEC_E_WRONG_PRINCIPAL (0xFFFFFFFF80090322) It is now correctly printed as the following: SEC_E_WRONG_PRINCIPAL (0x80090322) curl_sspi.c: Fallback to security function table version number Instead of reporting an unknown version, the interface version is used. curl_sspi.c: Removed SSPI/ version prefix from Curl_sspi_version curl_schannel: Replaced static buffer sizes with defined names curl_schannel.c: First brace when declaring functions on column 0 curl_schannel.c: Put the pointer sign directly at variable name curl_schannel.c: Use structs directly instead of typedef'ed structs curl_schannel.c: Removed space before opening brace curl_schannel.c: Fixed lines being longer than 80 chars
* curl_sspi: Added Curl_sspi_version functionMarc Hoersken2012-06-111-0/+50
| | | | | | Added new function to get SSPI version as string. Added required library version.lib to makefiles. Changed curl_schannel.c to use Curl_sspi_version.
* sspi: Refactored socks_sspi and schannel to use same error message functionsMarc Hoersken2012-06-111-0/+149
| | | | | | | Moved the error constant switch to curl_sspi.c and added two new helper functions to curl_sspi.[ch] which either return the constant or a fully translated message representing the SSPI security status. Updated socks_sspi.c and curl_schannel.c to use the new functions.
* Revert "sspi: Added version information"Yang Tse2012-04-231-63/+1
| | | | This reverts commit 2976de480808119dae08fc6f52c8d75ba1aedb1a.
* Revert "sspi - Small code tidy up"Yang Tse2012-04-231-8/+13
| | | | This reverts commit 46cd5f1daddad3b3e542e6d93eee52e8bb9a8687.
* Revert "Fixed 'Trailing whitespace' found by checksrc."Yang Tse2012-04-231-2/+2
| | | | This reverts commit 683bfa60ad0b52505947e59b03515e5f44378523.
* Revert "sspi: Code tidy up to remove unused variable."Yang Tse2012-04-231-0/+1
| | | | This reverts commit 412510f97407d617426d93b80e6b6bf0a8ff11ac.
* sspi: Code tidy up to remove unused variable.Steve Holme2012-04-221-1/+0
|
* Fixed 'Trailing whitespace' found by checksrc.Guenter Knauf2012-04-221-2/+2
|
* sspi - Small code tidy upSteve Holme2012-04-221-13/+8
|
* sspi: Added version informationSteve Holme2012-04-221-1/+63
| | | | | Added version information for Windows SSPI to curl's main version string and removed SSPI from the features string.
* Use own typedef as workaround for broken sspi.h header (f.e. Watcom).Guenter Knauf2010-09-021-2/+5
|
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* libcurl's memory.h renamed to curl_memory.hYang Tse2009-04-211-1/+1
|
* fix typo in commentYang Tse2009-01-301-1/+1
|
* Introduced curl_sspi.c and curl_sspi.h for the implementation of functionsYang Tse2009-01-291-0/+119
Curl_sspi_global_init() and Curl_sspi_global_cleanup() which previously were named Curl_ntlm_global_init() and Curl_ntlm_global_cleanup() in http_ntlm.c Also adjusted socks_sspi.c to remove the link-time dependency on the Windows SSPI library using it now in the same way as it was done in http_ntlm.c.