From a78407b9ca24d0fd2dae06debccbe0859e76ca87 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 15 Jul 2011 15:30:14 +0200 Subject: s3:lib/afs fix some compiler warnings --- source3/lib/afs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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); -- cgit