summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2011-07-15 15:30:14 +0200
committerChristian Ambach <ambi@samba.org>2011-07-21 14:54:46 +0200
commita78407b9ca24d0fd2dae06debccbe0859e76ca87 (patch)
tree78c8bee80ec2b4d2960df5af70228cd4bc6001f9
parent3b231e6a12676aba13a29589992c020bd5e2b33d (diff)
downloadsamba-a78407b9ca24d0fd2dae06debccbe0859e76ca87.tar.gz
samba-a78407b9ca24d0fd2dae06debccbe0859e76ca87.tar.bz2
samba-a78407b9ca24d0fd2dae06debccbe0859e76ca87.zip
s3:lib/afs fix some compiler warnings
-rw-r--r--source3/lib/afs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/afs.c b/source3/lib/afs.c
index 379cf676d5..2ee1747a77 100644
--- a/source3/lib/afs.c
+++ b/source3/lib/afs.c
@@ -126,7 +126,7 @@ static bool afs_createtoken(const char *username, const char *cell,
p += 4;
/* We need to create a session key */
- generate_random_buffer(p, 8);
+ generate_random_buffer((uint8_t *)p, 8);
/* Our client code needs the the key in the clear, it does not
know the server-key ... */
@@ -176,7 +176,8 @@ static bool afs_createtoken(const char *username, const char *cell,
len = PTR_DIFF(p, clear_ticket);
des_key_sched((const_des_cblock *)key.key, key_schedule);
- des_pcbc_encrypt(clear_ticket, clear_ticket,
+ des_pcbc_encrypt((const unsigned char*) clear_ticket,
+ (unsigned char*) clear_ticket,
len, key_schedule, (C_Block *)key.key, 1);
ZERO_STRUCT(key);