summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-09-03 13:55:50 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 12:14:58 +0200
commitc9a2111b0025156ba70c6eb9fa857e5d639f62b7 (patch)
tree10329dc1e34eee5b914d0eaa64fbe119474d8524 /source3
parent7aa0d7c55f9cbb3ed96beaf7c4891cadc9bc00ae (diff)
downloadsamba-c9a2111b0025156ba70c6eb9fa857e5d639f62b7.tar.gz
samba-c9a2111b0025156ba70c6eb9fa857e5d639f62b7.tar.bz2
samba-c9a2111b0025156ba70c6eb9fa857e5d639f62b7.zip
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')
-rw-r--r--source3/auth/pampass.c8
-rw-r--r--source3/auth/proto.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index 427c22a8ab..bde7c22625 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;
}
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 7be2e94c2e..98b48df998 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -304,8 +304,8 @@ NTSTATUS auth_wbc_init(void);
/* The following definitions come from auth/pampass.c */
-bool smb_pam_claim_session(char *user, char *tty, char *rhost);
-bool smb_pam_close_session(char *user, char *tty, char *rhost);
+bool smb_pam_claim_session(const char *user, const char *tty, const char *rhost);
+bool smb_pam_close_session(const char *user, const char *tty, const char *rhost);
NTSTATUS smb_pam_accountcheck(const char *user, const char *rhost);
NTSTATUS smb_pam_passcheck(const char * user, const char * rhost,
const char * password);