aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-17 11:24:06 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-17 13:28:03 +0000
commit930be07067c16218d3244917527315e1f947b610 (patch)
tree0a5264d5d4224f015a05d5b36eb548f434d42e6c
parent30eb6bbdc90b21833c98e238c3ee88a63239ffa4 (diff)
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.
-rw-r--r--lib/http_negotiate_sspi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 9aa1dfd45..207dc49c8 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -52,9 +52,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
SecBuffer out_sec_buff;
SecBufferDesc in_buff_desc;
SecBuffer in_sec_buff;
+ SECURITY_STATUS status;
unsigned long context_attributes;
TimeStamp expiry;
- int ret;
size_t len = 0, input_token_len = 0;
CURLcode result;
@@ -106,9 +106,10 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
if(!neg_ctx->output_token) {
PSecPkgInfo SecurityPackage;
- ret = s_pSecFn->QuerySecurityPackageInfo((TCHAR *) TEXT(SP_NAME_NEGOTIATE),
- &SecurityPackage);
- if(ret != SEC_E_OK)
+ status = s_pSecFn->QuerySecurityPackageInfo((TCHAR *)
+ TEXT(SP_NAME_NEGOTIATE),
+ &SecurityPackage);
+ if(status != SEC_E_OK)
return -1;
/* Allocate input and output buffers according to the max token size