|
Lines 28-34
Link Here
|
| 28 |
} SoupConnectionNTLMState; |
28 |
} SoupConnectionNTLMState; |
| 29 |
|
29 |
|
| 30 |
typedef struct { |
30 |
typedef struct { |
| 31 |
char *user; |
|
|
| 32 |
guchar nt_hash[21], lm_hash[21]; |
31 |
guchar nt_hash[21], lm_hash[21]; |
| 33 |
SoupConnectionNTLMState state; |
32 |
SoupConnectionNTLMState state; |
| 34 |
} SoupConnectionNTLMPrivate; |
33 |
} SoupConnectionNTLMPrivate; |
|
Lines 56-62
Link Here
|
| 56 |
{ |
55 |
{ |
| 57 |
SoupConnectionNTLMPrivate *priv = SOUP_CONNECTION_NTLM_GET_PRIVATE (object); |
56 |
SoupConnectionNTLMPrivate *priv = SOUP_CONNECTION_NTLM_GET_PRIVATE (object); |
| 58 |
|
57 |
|
| 59 |
g_free (priv->user); |
|
|
| 60 |
memset (priv->nt_hash, 0, sizeof (priv->nt_hash)); |
58 |
memset (priv->nt_hash, 0, sizeof (priv->nt_hash)); |
| 61 |
memset (priv->lm_hash, 0, sizeof (priv->lm_hash)); |
59 |
memset (priv->lm_hash, 0, sizeof (priv->lm_hash)); |
| 62 |
|
60 |
|
|
Lines 161-166
Link Here
|
| 161 |
soup_message_get_header (msg->request_headers, "Authorization")) { |
159 |
soup_message_get_header (msg->request_headers, "Authorization")) { |
| 162 |
/* We just added the last Auth header, so restart it. */ |
160 |
/* We just added the last Auth header, so restart it. */ |
| 163 |
priv->state = SOUP_CONNECTION_NTLM_SENT_RESPONSE; |
161 |
priv->state = SOUP_CONNECTION_NTLM_SENT_RESPONSE; |
|
|
162 |
|
| 163 |
/* soup_message_restarted() will call soup_message_io_stop(), |
| 164 |
* which will release the connection, and may cause another |
| 165 |
* message to be queued on the connection before it returns. |
| 166 |
* That's no good, so we stop the message first and then |
| 167 |
* reclaim the connection so that soup_message_restarted() |
| 168 |
* won't be able to steal it. |
| 169 |
*/ |
| 170 |
soup_message_io_stop (msg); |
| 171 |
soup_connection_reserve (conn); |
| 164 |
soup_message_restarted (msg); |
172 |
soup_message_restarted (msg); |
| 165 |
soup_connection_send_request (conn, msg); |
173 |
soup_connection_send_request (conn, msg); |
| 166 |
} |
174 |
} |