[libsoup/wip/tpopela/negotiate] soup-auth-negotiate: Don't fail if the authentication is still in progress
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/tpopela/negotiate] soup-auth-negotiate: Don't fail if the authentication is still in progress
- Date: Fri, 19 Feb 2016 13:45:49 +0000 (UTC)
commit 8a882ffb6638024dd1257280a43a8862b750870b
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 19 13:03:37 2016 +0100
soup-auth-negotiate: Don't fail if the authentication is still in progress
libsoup/soup-auth-negotiate.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c
index e986edd..a5cf16e 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -286,7 +286,9 @@ check_server_response (SoupMessage *msg, gpointer state)
ret = soup_gss_client_step (conn, auth_headers + 10, &err);
- if (ret != AUTH_GSS_COMPLETE) {
+ if (ret == AUTH_GSS_CONTINUE) {
+ conn->state = SOUP_NEGOTIATE_RECEIVED_CHALLENGE;
+ } else if (ret == AUTH_GSS_ERROR) {
if (err)
g_warning ("%s", err->message);
conn->state = SOUP_NEGOTIATE_FAILED;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]