Skip to content

Commit

Permalink
Add UOA auth handler and minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
John Brooks committed Dec 6, 2012
1 parent 99d19de commit 922006f
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 28 deletions.
25 changes: 6 additions & 19 deletions src/empathy-auth-client.c
@@ -1,4 +1,8 @@
/*
* Copyright (C) 2012 Jolla Ltd.
* Contact: John Brooks <john.brooks@jollamobile.com>
*
* Based on Empathy,
* Copyright (C) 2010 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -29,23 +33,6 @@
#include <empathy-auth-factory.h>
#include <empathy-server-sasl-handler.h>
#include <empathy-server-tls-handler.h>
#if 0
#include <empathy-tls-verifier.h>
#define DEBUG_FLAG EMPATHY_DEBUG_TLS
#include <libempathy/empathy-debug.h>
#include <libempathy/empathy-utils.h>

#include <libempathy-gtk/empathy-bad-password-dialog.h>
#include <libempathy-gtk/empathy-password-dialog.h>
#include <libempathy-gtk/empathy-tls-dialog.h>
#include <libempathy-gtk/empathy-ui-utils.h>

#include "empathy-sanity-cleaning.h"

#include <gnutls/gnutls.h>

#include <extensions/extensions.h>
#endif

#define TIMEOUT 60

Expand Down Expand Up @@ -303,9 +290,9 @@ main (int argc,
return EXIT_FAILURE;
}

DEBUG ("Empathy auth client started.");
DEBUG ("SASL signon auth client started.");

if (g_getenv ("EMPATHY_PERSIST") != NULL)
if (g_getenv ("SASL_SIGNON_PERSIST") != NULL)
{
DEBUG ("Timed-exit disabled");

Expand Down
7 changes: 3 additions & 4 deletions src/empathy-auth-factory.c
Expand Up @@ -22,13 +22,11 @@
#include "empathy-debug.h"
#include "empathy-utils.h"

//#include "empathy-keyring.h"
//#include "empathy-sasl-mechanisms.h"
#include "empathy-keyring.h"
#include "empathy-sasl-mechanisms.h"
#include "empathy-server-sasl-handler.h"
#include "empathy-server-tls-handler.h"
//#include "empathy-utils.h"

// XXX
#ifdef HAVE_UOA
#include "empathy-uoa-auth-handler.h"
#endif /* HAVE_UOA */
Expand Down Expand Up @@ -648,6 +646,7 @@ empathy_auth_factory_constructed (GObject *obj)
tp_base_client_set_handler_bypass_approval (client, FALSE);

/* Handle ServerTLSConnection and ServerAuthentication channels */
/* TLS channels are disabled for now due to redundant functionality. */
#if 0
tp_base_client_take_handler_filter (client, tp_asv_new (
/* ChannelType */
Expand Down
3 changes: 0 additions & 3 deletions src/empathy-keyring.c
Expand Up @@ -30,9 +30,6 @@
#include <libsignon-glib/signon-identity.h>
#include "empathy-uoa-utils.h"

#define EMPATHY_UOA_SERVICE_TYPE "IM"
#define EMPATHY_UOA_PROVIDER "im.telepathy.Account.Storage.UOA"

static AgAccountService *
uoa_password_common (TpAccount *tp_account,
GSimpleAsyncResult *result,
Expand Down

0 comments on commit 922006f

Please sign in to comment.