summaryrefslogtreecommitdiff
path: root/lib/curl_schannel.c
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-04-14 15:00:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-06-11 19:00:35 +0200
commitc1311c2b8f34c352d771f1d5810e64141aa802b1 (patch)
treeba0b04fcc617e15274bc3c33871ef4f0a68d239d /lib/curl_schannel.c
parent0bb5ff5d1a13f51344cdc666d08db7aefc4dc5a9 (diff)
downloadcurl-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.c8
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 */