aboutsummaryrefslogtreecommitdiff
path: root/src/krb5-auth-dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/krb5-auth-dbus.c')
-rw-r--r--src/krb5-auth-dbus.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/krb5-auth-dbus.c b/src/krb5-auth-dbus.c
index 52dab46..4fd7e74 100644
--- a/src/krb5-auth-dbus.c
+++ b/src/krb5-auth-dbus.c
@@ -32,12 +32,24 @@ gboolean
ka_dbus_acquire_tgt (KaApplet *applet,
const gchar *principal, DBusGMethodInvocation *context)
{
- gboolean success;
+ gboolean success;
- KA_DEBUG("Getting TGT for '%s'", principal);
- success = ka_check_credentials(applet, principal);
- dbus_g_method_return(context, success);
- return TRUE;
+ KA_DEBUG("Getting TGT for '%s'", principal);
+ success = ka_check_credentials(applet, principal);
+ dbus_g_method_return(context, success);
+ return TRUE;
+}
+
+
+gboolean
+ka_dbus_destroy_ccache(KaApplet* applet, DBusGMethodInvocation *context)
+{
+ gboolean success;
+
+ KA_DEBUG("Destroying ticket cache");
+ success = ka_destroy_ccache (applet);
+ dbus_g_method_return(context, success);
+ return TRUE;
}
bgstack15