summaryrefslogtreecommitdiff
path: root/src/auth-manager.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-11-20 14:09:42 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-12-06 17:52:30 +0000
commit5077f330e3c43d6b0ad5747a4151f9b8492cb21f (patch)
tree58cdfdaa2cd4434456206ce6a9b44f6d91f9fa05 /src/auth-manager.c
parent37cbec4ae810668e08764fd5f364708cd6f4c766 (diff)
auth-manager: rename 'falling_back' field to 'chaining_up'
Diffstat (limited to 'src/auth-manager.c')
-rw-r--r--src/auth-manager.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/auth-manager.c b/src/auth-manager.c
index 0256434db..c03598983 100644
--- a/src/auth-manager.c
+++ b/src/auth-manager.c
@@ -62,7 +62,10 @@ struct _GabbleAuthManagerPrivate
GabbleServerSaslChannel *channel;
gulong closed_id;
- gboolean falling_back;
+ /* TRUE if we are authenticating using our parent class's methods (because we
+ * have a username and password).
+ */
+ gboolean chaining_up;
GSList *mechanisms;
gchar *server;
@@ -261,7 +264,7 @@ gabble_auth_manager_start_auth_cb (GObject *channel,
/* restart authentication using our own base class */
g_assert (start_data->initial_response != NULL);
- self->priv->falling_back = TRUE;
+ self->priv->chaining_up = TRUE;
WOCKY_AUTH_REGISTRY_CLASS (
gabble_auth_manager_parent_class)->start_auth_async_func (
WOCKY_AUTH_REGISTRY (self), self->priv->mechanisms,
@@ -372,7 +375,7 @@ gabble_auth_manager_start_auth_async (WockyAuthRegistry *registry,
}
else
{
- self->priv->falling_back = TRUE;
+ self->priv->chaining_up = TRUE;
WOCKY_AUTH_REGISTRY_CLASS (
gabble_auth_manager_parent_class)->start_auth_async_func (
registry, mechanisms, allow_plain, is_secure_channel,
@@ -402,7 +405,7 @@ gabble_auth_manager_challenge_async (WockyAuthRegistry *registry,
{
GabbleAuthManager *self = GABBLE_AUTH_MANAGER (registry);
- if (self->priv->channel != NULL && !self->priv->falling_back)
+ if (self->priv->channel != NULL && !self->priv->chaining_up)
{
gabble_server_sasl_channel_challenge_async (self->priv->channel,
challenge_data, callback, user_data);
@@ -423,7 +426,7 @@ gabble_auth_manager_challenge_finish (WockyAuthRegistry *registry,
{
GabbleAuthManager *self = GABBLE_AUTH_MANAGER (registry);
- if (self->priv->channel != NULL && !self->priv->falling_back)
+ if (self->priv->channel != NULL && !self->priv->chaining_up)
{
return gabble_server_sasl_channel_challenge_finish (self->priv->channel,
result, response, error);