summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-10 04:33:39 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:49:03 +0100
commit2e1f142ab03d9accbf4c61b0b11986bc1cb33d12 (patch)
treec75d4616b0390f048fa26f5d8a97c97171acff05 /source4/auth
parentb65738c251c4ad127960e710d3e7e3226db8de55 (diff)
downloadsamba-2e1f142ab03d9accbf4c61b0b11986bc1cb33d12.tar.gz
samba-2e1f142ab03d9accbf4c61b0b11986bc1cb33d12.tar.bz2
samba-2e1f142ab03d9accbf4c61b0b11986bc1cb33d12.zip
r26360: Add some const.
(This used to be commit 3616ced29ed2385300f7268a742a9090840b626f)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_anonymous.c2
-rw-r--r--source4/auth/auth_developer.c4
-rw-r--r--source4/auth/ntlm_check.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source4/auth/auth_anonymous.c b/source4/auth/auth_anonymous.c
index 2dd0be5a04..bcab918347 100644
--- a/source4/auth/auth_anonymous.c
+++ b/source4/auth/auth_anonymous.c
@@ -56,7 +56,7 @@ static NTSTATUS anonymous_check_password(struct auth_method_context *ctx,
return auth_anonymous_server_info(mem_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx), _server_info);
}
-static struct auth_operations anonymous_auth_ops = {
+static const struct auth_operations anonymous_auth_ops = {
.name = "anonymous",
.get_challenge = auth_get_challenge_not_implemented,
.want_check = anonymous_want_check,
diff --git a/source4/auth/auth_developer.c b/source4/auth/auth_developer.c
index cc5e79631f..57eb752ac8 100644
--- a/source4/auth/auth_developer.c
+++ b/source4/auth/auth_developer.c
@@ -129,7 +129,7 @@ static NTSTATUS name_to_ntstatus_check_password(struct auth_method_context *ctx,
return nt_status;
}
-static struct auth_operations name_to_ntstatus_auth_ops = {
+static const struct auth_operations name_to_ntstatus_auth_ops = {
.name = "name_to_ntstatus",
.get_challenge = auth_get_challenge_not_implemented,
.want_check = name_to_ntstatus_want_check,
@@ -179,7 +179,7 @@ static NTSTATUS fixed_challenge_check_password(struct auth_method_context *ctx,
return NT_STATUS_NO_SUCH_USER;
}
-static struct auth_operations fixed_challenge_auth_ops = {
+static const struct auth_operations fixed_challenge_auth_ops = {
.name = "fixed_challenge",
.get_challenge = fixed_challenge_get_challenge,
.want_check = fixed_challenge_want_check,
diff --git a/source4/auth/ntlm_check.c b/source4/auth/ntlm_check.c
index b98ce50cf6..a0846f00de 100644
--- a/source4/auth/ntlm_check.c
+++ b/source4/auth/ntlm_check.c
@@ -295,7 +295,7 @@ NTSTATUS ntlm_password_check(TALLOC_CTX *mem_ctx,
DATA_BLOB *user_sess_key,
DATA_BLOB *lm_sess_key)
{
- static const uint8_t zeros[8];
+ const static uint8_t zeros[8];
DATA_BLOB tmp_sess_key;
if (stored_nt == NULL) {