From c9a2111b0025156ba70c6eb9fa857e5d639f62b7 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Mon, 3 Sep 2012 13:55:50 +0200 Subject: s3:auth: use const in smb_pam_xxx_session() Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam --- source3/auth/pampass.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/auth/pampass.c') diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c index 427c22a8ab2..bde7c226250 100644 --- a/source3/auth/pampass.c +++ b/source3/auth/pampass.c @@ -720,7 +720,7 @@ static bool smb_pam_chauthtok(pam_handle_t *pamh, const char * user) * PAM Externally accessible Session handler */ -bool smb_pam_claim_session(char *user, char *tty, char *rhost) +bool smb_pam_claim_session(const char *user, const char *tty, const char *rhost) { pam_handle_t *pamh = NULL; struct pam_conv *pconv = NULL; @@ -748,7 +748,7 @@ bool smb_pam_claim_session(char *user, char *tty, char *rhost) * PAM Externally accessible Session handler */ -bool smb_pam_close_session(char *user, char *tty, char *rhost) +bool smb_pam_close_session(const char *user, const char *tty, const char *rhost) { pam_handle_t *pamh = NULL; struct pam_conv *pconv = NULL; @@ -880,13 +880,13 @@ NTSTATUS smb_pam_accountcheck(const char *user, const char *rhost) } /* If PAM not used, also no PAM restrictions on sessions. */ -bool smb_pam_claim_session(char *user, char *tty, char *rhost) +bool smb_pam_claim_session(const char *user, const char *tty, const char *rhost) { return True; } /* If PAM not used, also no PAM restrictions on sessions. */ -bool smb_pam_close_session(char *in_user, char *tty, char *rhost) +bool smb_pam_close_session(const char *in_user, const char *tty, const char *rhost) { return True; } -- cgit v1.2.1