summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-10-17 18:03:05 -0400
committerDan Winship <danw@gnome.org>2013-10-19 12:13:48 -0400
commit8771fdf847cf6142d55ded156515c55715ea47d5 (patch)
treeab616ddaf5c50704956d6e5344eb93e7ea05ce24
parent5acf257bb82d25cc821417aefda506e581117232 (diff)
downloadlibsoup-8771fdf847cf6142d55ded156515c55715ea47d5.tar.gz
soup-auth-ntlm: fix build with --without-ntlm-auth
https://bugzilla.gnome.org/show_bug.cgi?id=710267
-rw-r--r--libsoup/soup-auth-ntlm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index 19be6928..05541973 100644
--- a/libsoup/soup-auth-ntlm.c
+++ b/libsoup/soup-auth-ntlm.c
@@ -309,13 +309,17 @@ soup_auth_ntlm_update_connection (SoupConnectionAuth *auth, SoupMessage *msg,
return TRUE;
}
+#ifdef USE_NTLM_AUTH
if (priv->sso_available) {
conn->state = SOUP_NTLM_SSO_FAILED;
priv->password_state = SOUP_NTLM_PASSWORD_NONE;
} else {
+#endif
conn->state = SOUP_NTLM_FAILED;
priv->password_state = SOUP_NTLM_PASSWORD_REJECTED;
+#ifdef USE_NTLM_AUTH
}
+#endif
return TRUE;
}