[libsoup/gnome-3-8] soup-auth-ntlm: fix build with --without-ntlm-auth



commit f4bb23f1672f3274657912778eee93d70b3152c9
Author: Dan Winship <danw gnome org>
Date:   Thu Oct 17 18:03:05 2013 -0400

    soup-auth-ntlm: fix build with --without-ntlm-auth
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710267

 libsoup/soup-auth-ntlm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index f76285e..2bebf42 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;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]