aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_schannel.c
diff options
context:
space:
mode:
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 */