diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2012-04-14 15:00:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-06-11 19:00:35 +0200 |
commit | c1311c2b8f34c352d771f1d5810e64141aa802b1 (patch) | |
tree | ba0b04fcc617e15274bc3c33871ef4f0a68d239d /lib/curl_schannel.c | |
parent | 0bb5ff5d1a13f51344cdc666d08db7aefc4dc5a9 (diff) | |
download | curl-c1311c2b8f34c352d771f1d5810e64141aa802b1.tar.gz |
curl_sspi: Added Curl_sspi_version function
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.
Diffstat (limited to 'lib/curl_schannel.c')
-rw-r--r-- | lib/curl_schannel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/curl_schannel.c b/lib/curl_schannel.c index c9a390638..c7b51cb96 100644 --- a/lib/curl_schannel.c +++ b/lib/curl_schannel.c @@ -957,10 +957,10 @@ void Curl_schannel_cleanup() { size_t Curl_schannel_version(char *buffer, size_t size) { - unsigned long version = s_pSecFn ? s_pSecFn->dwVersion : 0; - return snprintf(buffer, size, "Schannel/%d.%d.%d.%d", - (version>>0)&0xff, (version>>8)&0xff, - (version>>16)&0xff, (version>>24)&0xff); + char* version = Curl_sspi_version(); + size = snprintf(buffer, size, "Schannel-%s", version); + free(version); + return size; } #endif /* USE_SCHANNEL */ |