http_negotiate_sspi: Use a dynamic buffer for SPN generation

Updated to use a dynamic buffer for the SPN generation via the recently
introduced Curl_sasl_build_spn() function rather than a fixed buffer of
1024 characters, which should have been more than enough, but by using
the new function removes the need for another variable sname to do the
wide character conversion in Unicode builds.
This commit is contained in:
Steve Holme
2014-08-09 17:56:51 +01:00
parent d01e30431c
commit 72945b856e
2 changed files with 11 additions and 17 deletions

View File

@@ -463,7 +463,7 @@ struct negotiatedata {
CredHandle *credentials;
SEC_WINNT_AUTH_IDENTITY identity;
SEC_WINNT_AUTH_IDENTITY *p_identity;
char server_name[1024];
TCHAR *server_name;
size_t max_token_length;
BYTE *output_token;
size_t output_token_length;