diff options
author | Gregor Beck <gbeck@sernet.de> | 2012-09-03 13:55:50 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-10-19 12:14:58 +0200 |
commit | c9a2111b0025156ba70c6eb9fa857e5d639f62b7 (patch) | |
tree | 10329dc1e34eee5b914d0eaa64fbe119474d8524 /source3/auth/pampass.c | |
parent | 7aa0d7c55f9cbb3ed96beaf7c4891cadc9bc00ae (diff) | |
download | samba-c9a2111b0025156ba70c6eb9fa857e5d639f62b7.tar.gz |
s3:auth: use const in smb_pam_xxx_session()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/auth/pampass.c')
-rw-r--r-- | source3/auth/pampass.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |