[gnome-keyring] pam: Export a pam_sm_close_session() function entry point



commit d1c549afe6319fe8e4b1c00a253a85b31441d6dd
Author: Stef Walter <stefw gnome org>
Date:   Thu Mar 13 20:25:17 2014 +0100

    pam: Export a pam_sm_close_session() function entry point
    
    Some PAM callers want this even though we don't do anything
    interesting in here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726245

 pam/gkr-pam-module.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/pam/gkr-pam-module.c b/pam/gkr-pam-module.c
index 572c516..cd39510 100644
--- a/pam/gkr-pam-module.c
+++ b/pam/gkr-pam-module.c
@@ -978,6 +978,13 @@ pam_chauthtok_update (pam_handle_t *ph, struct passwd *pwd, uint args)
 }
 
 PAM_EXTERN int
+pam_sm_close_session (pam_handle_t *ph, int flags, int argc, const char **argv)
+{
+       /* Nothing to do, but we have to have this function exported */
+       return PAM_SUCCESS;
+}
+
+PAM_EXTERN int
 pam_sm_chauthtok (pam_handle_t *ph, int flags, int argc, const char **argv)
 {
        const char *user;


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