/* this is for creating ntlm header output */
CURLcode Curl_output_ntlm(struct connectdata *conn,
- bool proxy,
- bool *ready)
+ bool proxy)
{
const char *domain=""; /* empty */
const char *host=""; /* empty */
/* point to the correct struct with this */
struct ntlmdata *ntlm;
- *ready = FALSE;
+ curlassert(conn);
+ curlassert(conn->data);
+ conn->data->state.authdone = FALSE;
if(proxy) {
allocuserpwd = &conn->allocptr.proxyuserpwd;
return CURLE_OUT_OF_MEMORY; /* FIX TODO */
ntlm->state = NTLMSTATE_TYPE3; /* we sent a type-3 */
- *ready = TRUE;
+ conn->data->state.authdone = TRUE;
/* Switch to web authentication after proxy authentication is done */
if (proxy)
free(*allocuserpwd);
*allocuserpwd=NULL;
}
- *ready = TRUE;
+ conn->data->state.authdone = TRUE;
break;
}
CURLntlm Curl_input_ntlm(struct connectdata *conn, bool proxy, char *header);
/* this is for creating ntlm header output */
-CURLcode Curl_output_ntlm(struct connectdata *conn, bool proxy, bool *ready);
+CURLcode Curl_output_ntlm(struct connectdata *conn, bool proxy);
void Curl_ntlm_cleanup(struct SessionHandle *data);