From 2853ce5812aa8f03f677516e64d5dcff1e6e01ab Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 9 Jul 2012 21:33:10 -0400 Subject: worker: add reauthentication support This commit adds reauthentication support for screensavers and user switching to use. 1) It adds a "verification mode" argument to the GdmSession constructor that tweaks the behavior of how the session worker acts to fit login or unlock scenarios better. 2) It adds a way for programs to open a communication channel for user verification to already runnings sessions (so reauthentication happens in the context of the session). --- daemon/gdm-display.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'daemon/gdm-display.h') diff --git a/daemon/gdm-display.h b/daemon/gdm-display.h index 1f4d3dbe..5050eecd 100644 --- a/daemon/gdm-display.h +++ b/daemon/gdm-display.h @@ -91,8 +91,17 @@ GType gdm_display_get_type (void); int gdm_display_get_status (GdmDisplay *display); time_t gdm_display_get_creation_time (GdmDisplay *display); char * gdm_display_open_session_sync (GdmDisplay *display, + GPid pid_of_caller, + uid_t uid_of_caller, GCancellable *cancellable, GError **error); + +char * gdm_display_open_reauthentication_channel_sync (GdmDisplay *display, + const char *username, + GPid pid_of_caller, + uid_t uid_of_caller, + GCancellable *cancellable, + GError **error); char * gdm_display_get_session_id (GdmDisplay *display); gboolean gdm_display_create_authority (GdmDisplay *display); gboolean gdm_display_prepare (GdmDisplay *display); -- cgit v1.2.1