summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-18 10:19:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-20 09:17:10 +1000
commite2443195992c33d69073bcae320779041215339a (patch)
treef3c39105c2f39a70ddba2fa406e03fccf2d44770
parentfa18267042440e9d9529f0228a3df030c84acb11 (diff)
downloadsamba-e2443195992c33d69073bcae320779041215339a.tar.gz
samba-e2443195992c33d69073bcae320779041215339a.tar.bz2
samba-e2443195992c33d69073bcae320779041215339a.zip
s3-auth Add const to indicate input elements
Signed-off-by: Andrew Tridgell <tridge@samba.org>
-rw-r--r--source3/auth/proto.h4
-rw-r--r--source3/auth/token_util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 2839793472..8ff9fa9b99 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -284,8 +284,8 @@ struct security_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
const struct dom_sid *groupsids);
NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx,
bool is_guest,
- struct netr_SamInfo3 *info3,
- struct extra_auth_info *extra,
+ const struct netr_SamInfo3 *info3,
+ const struct extra_auth_info *extra,
struct security_token **ntok);
void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid,
int n_groups, gid_t *groups);
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 22df21f5ed..0d47a3f968 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -211,8 +211,8 @@ static NTSTATUS finalize_local_nt_token(struct security_token *result,
NTSTATUS create_local_nt_token_from_info3(TALLOC_CTX *mem_ctx,
bool is_guest,
- struct netr_SamInfo3 *info3,
- struct extra_auth_info *extra,
+ const struct netr_SamInfo3 *info3,
+ const struct extra_auth_info *extra,
struct security_token **ntok)
{
struct security_token *usrtok = NULL;