From e2443195992c33d69073bcae320779041215339a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 18 Jul 2011 10:19:27 +1000 Subject: s3-auth Add const to indicate input elements Signed-off-by: Andrew Tridgell --- source3/auth/proto.h | 4 ++-- source3/auth/token_util.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/auth') 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; -- cgit