mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
http_negotiate_sspi: added missing data variable
This commit is contained in:
parent
693422b79b
commit
32606e4f0b
@ -43,6 +43,7 @@
|
|||||||
CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
||||||
const char *header)
|
const char *header)
|
||||||
{
|
{
|
||||||
|
struct SessionHandle *data = conn->data;
|
||||||
BYTE *input_token = NULL;
|
BYTE *input_token = NULL;
|
||||||
SecBufferDesc out_buff_desc;
|
SecBufferDesc out_buff_desc;
|
||||||
SecBuffer out_sec_buff;
|
SecBuffer out_sec_buff;
|
||||||
@ -64,12 +65,12 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
if(proxy) {
|
if(proxy) {
|
||||||
userp = conn->proxyuser;
|
userp = conn->proxyuser;
|
||||||
passwdp = conn->proxypasswd;
|
passwdp = conn->proxypasswd;
|
||||||
neg_ctx = &conn->data->state.proxyneg;
|
neg_ctx = &data->state.proxyneg;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
userp = conn->user;
|
userp = conn->user;
|
||||||
passwdp = conn->passwd;
|
passwdp = conn->passwd;
|
||||||
neg_ctx = &conn->data->state.negotiate;
|
neg_ctx = &data->state.negotiate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Not set means empty */
|
/* Not set means empty */
|
||||||
@ -83,7 +84,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
/* We finished successfully our part of authentication, but server
|
/* We finished successfully our part of authentication, but server
|
||||||
* rejected it (since we're again here). Exit with an error since we
|
* rejected it (since we're again here). Exit with an error since we
|
||||||
* can't invent anything better */
|
* can't invent anything better */
|
||||||
Curl_cleanup_negotiate(conn->data);
|
Curl_cleanup_negotiate(data);
|
||||||
return CURLE_LOGIN_DENIED;
|
return CURLE_LOGIN_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,7 +169,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
if(!input_token_len) {
|
if(!input_token_len) {
|
||||||
infof(conn->data,
|
infof(data,
|
||||||
"Negotiate handshake failure (empty challenge message)\n");
|
"Negotiate handshake failure (empty challenge message)\n");
|
||||||
|
|
||||||
return CURLE_BAD_CONTENT_ENCODING;
|
return CURLE_BAD_CONTENT_ENCODING;
|
||||||
|
Loading…
Reference in New Issue
Block a user