summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-21 21:56:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:52 -0500
commit25a3427ef16f261cbfcf65abc367f55165676aaa (patch)
tree4d3e87eeb73290372d7f847fcedd7e02912bc422 /source3
parent7712e7eeb6358c05677ae718a6bd5bcb27d509a4 (diff)
downloadsamba-25a3427ef16f261cbfcf65abc367f55165676aaa.tar.gz
samba-25a3427ef16f261cbfcf65abc367f55165676aaa.tar.bz2
samba-25a3427ef16f261cbfcf65abc367f55165676aaa.zip
r23986: Some const
(This used to be commit dc6f4bdb7f5fc0fd4cd9f687c47af3719985da8b)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h2
-rw-r--r--source3/libsmb/smb_signing.c18
2 files changed, 14 insertions, 6 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 9db97243ea..b16d8a765a 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1870,7 +1870,7 @@ struct ip_service {
typedef struct smb_sign_info {
void (*sign_outgoing_message)(char *outbuf, struct smb_sign_info *si);
- BOOL (*check_incoming_message)(char *inbuf, struct smb_sign_info *si, BOOL must_be_ok);
+ BOOL (*check_incoming_message)(const char *inbuf, struct smb_sign_info *si, BOOL must_be_ok);
void (*free_signing_context)(struct smb_sign_info *si);
void *signing_context;
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c
index 3964bfa534..d893af54f8 100644
--- a/source3/libsmb/smb_signing.c
+++ b/source3/libsmb/smb_signing.c
@@ -170,7 +170,9 @@ static void null_sign_outgoing_message(char *outbuf, struct smb_sign_info *si)
SMB signing - NULL implementation - check a MAC sent by server.
************************************************************/
-static BOOL null_check_incoming_message(char *inbuf, struct smb_sign_info *si, BOOL must_be_ok)
+static BOOL null_check_incoming_message(const char *inbuf,
+ struct smb_sign_info *si,
+ BOOL must_be_ok)
{
return True;
}
@@ -217,7 +219,8 @@ static void free_signing_context(struct smb_sign_info *si)
}
-static BOOL signing_good(char *inbuf, struct smb_sign_info *si, BOOL good, uint32 seq, BOOL must_be_ok)
+static BOOL signing_good(const char *inbuf, struct smb_sign_info *si,
+ BOOL good, uint32 seq, BOOL must_be_ok)
{
if (good) {
@@ -375,7 +378,9 @@ static void client_sign_outgoing_message(char *outbuf, struct smb_sign_info *si)
SMB signing - Client implementation - check a MAC sent by server.
************************************************************/
-static BOOL client_check_incoming_message(char *inbuf, struct smb_sign_info *si, BOOL must_be_ok)
+static BOOL client_check_incoming_message(const char *inbuf,
+ struct smb_sign_info *si,
+ BOOL must_be_ok)
{
BOOL good;
uint32 reply_seq_number;
@@ -531,7 +536,8 @@ static void temp_sign_outgoing_message(char *outbuf, struct smb_sign_info *si)
SMB signing - TEMP implementation - check a MAC sent by server.
************************************************************/
-static BOOL temp_check_incoming_message(char *inbuf, struct smb_sign_info *si, BOOL foo)
+static BOOL temp_check_incoming_message(const char *inbuf,
+ struct smb_sign_info *si, BOOL foo)
{
return True;
}
@@ -712,7 +718,9 @@ static void srv_sign_outgoing_message(char *outbuf, struct smb_sign_info *si)
SMB signing - Server implementation - check a MAC sent by server.
************************************************************/
-static BOOL srv_check_incoming_message(char *inbuf, struct smb_sign_info *si, BOOL must_be_ok)
+static BOOL srv_check_incoming_message(const char *inbuf,
+ struct smb_sign_info *si,
+ BOOL must_be_ok)
{
BOOL good;
struct smb_basic_signing_context *data =