[libsoup/wip/tpopela/negotiate] soup-auth-negotitate: Make the SoupAuth object reusable again
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/tpopela/negotiate] soup-auth-negotitate: Make the SoupAuth object reusable again
- Date: Tue, 16 Feb 2016 15:09:43 +0000 (UTC)
commit cce0f1118120c54d3f02b660145e0bf349d34341
Author: Tomas Popela <tpopela redhat com>
Date: Tue Feb 16 16:06:17 2016 +0100
soup-auth-negotitate: Make the SoupAuth object reusable again
As per
https://git.gnome.org/browse/libsoup/tree/libsoup/soup-auth-ntlm.c?h=wip/tpopela/negotiate&id=e7f914bf6ad1489baed0e7defa89126ba7132ac2#n295
libsoup/soup-auth-negotiate.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c
index 2508be5..e986edd 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -122,8 +122,7 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms
if (!check_auth_trusted_uri (negotiate, msg)) {
conn->state = SOUP_NEGOTIATE_FAILED;
-
- return FALSE;
+ return TRUE;
}
/* Found negotiate header with no token, start negotiate */
@@ -132,7 +131,7 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms
/* If we were already negotiating and we get a 401
* with no token, that means we failed. */
conn->state = SOUP_NEGOTIATE_FAILED;
- return FALSE;
+ return TRUE;
}
conn->state = SOUP_NEGOTIATE_RECEIVED_CHALLENGE;
if (soup_gss_build_response (conn, SOUP_AUTH (auth), &err)) {
@@ -163,12 +162,9 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms
}
g_clear_error (&err);
- return FALSE;
-#else
- conn->state = SOUP_NEGOTIATE_FAILED;
-
- return FALSE;
#endif /* LIBSOUP_HAVE_GSSAPI */
+ conn->state = SOUP_NEGOTIATE_FAILED;
+ return TRUE;
}
static GSList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]