http_negotiate_sspi: Use correct return type for QuerySecurityPackageInfo()
Use the SECURITY_STATUS typedef rather than a unsigned long for the QuerySecurityPackageInfo() return and rename the variable as per other areas of SSPI code.
This commit is contained in:
@@ -52,9 +52,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
SecBuffer out_sec_buff;
|
SecBuffer out_sec_buff;
|
||||||
SecBufferDesc in_buff_desc;
|
SecBufferDesc in_buff_desc;
|
||||||
SecBuffer in_sec_buff;
|
SecBuffer in_sec_buff;
|
||||||
|
SECURITY_STATUS status;
|
||||||
unsigned long context_attributes;
|
unsigned long context_attributes;
|
||||||
TimeStamp expiry;
|
TimeStamp expiry;
|
||||||
int ret;
|
|
||||||
size_t len = 0, input_token_len = 0;
|
size_t len = 0, input_token_len = 0;
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
|
|
||||||
@@ -106,9 +106,10 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
|
|
||||||
if(!neg_ctx->output_token) {
|
if(!neg_ctx->output_token) {
|
||||||
PSecPkgInfo SecurityPackage;
|
PSecPkgInfo SecurityPackage;
|
||||||
ret = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT(SP_NAME_NEGOTIATE),
|
status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *)
|
||||||
&SecurityPackage);
|
TEXT(SP_NAME_NEGOTIATE),
|
||||||
if(ret != SEC_E_OK)
|
&SecurityPackage);
|
||||||
|
if(status != SEC_E_OK)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Allocate input and output buffers according to the max token size
|
/* Allocate input and output buffers according to the max token size
|
||||||
|
|||||||
Reference in New Issue
Block a user