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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user