summaryrefslogtreecommitdiff
path: root/libcli/auth/smbencrypt.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-23 14:24:16 +0200
committerVolker Lendecke <vl@samba.org>2009-04-23 14:35:50 +0200
commit2146310fb75b743d383aeeae3ac121e37903f229 (patch)
tree5cdf7afcfc30dd78640bc8b5b311e0b5cbbc3d79 /libcli/auth/smbencrypt.c
parentb8cd1cff2dfad726cf6dab368dfcc31a29952889 (diff)
downloadsamba-2146310fb75b743d383aeeae3ac121e37903f229.tar.gz
samba-2146310fb75b743d383aeeae3ac121e37903f229.tar.bz2
samba-2146310fb75b743d383aeeae3ac121e37903f229.zip
Fix a couple of warnings
Diffstat (limited to 'libcli/auth/smbencrypt.c')
-rw-r--r--libcli/auth/smbencrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c
index 7659446b75..8d07b94806 100644
--- a/libcli/auth/smbencrypt.c
+++ b/libcli/auth/smbencrypt.c
@@ -231,14 +231,14 @@ bool ntv2_owf_gen(const uint8_t owf[16],
domain_byte_len = domain_byte_len - 2;
hmac_md5_init_limK_to_64(owf, 16, &ctx);
- hmac_md5_update((const void *)user, user_byte_len, &ctx);
- hmac_md5_update((const void *)domain, domain_byte_len, &ctx);
+ hmac_md5_update((uint8_t *)user, user_byte_len, &ctx);
+ hmac_md5_update((uint8_t *)domain, domain_byte_len, &ctx);
hmac_md5_final(kr_buf, &ctx);
#ifdef DEBUG_PASSWORD
DEBUG(100, ("ntv2_owf_gen: user, domain, owfkey, kr\n"));
- dump_data(100, (const void *)user, user_byte_len);
- dump_data(100, (const void *)domain, domain_byte_len);
+ dump_data(100, (uint8_t *)user, user_byte_len);
+ dump_data(100, (uint8_t *)domain, domain_byte_len);
dump_data(100, owf, 16);
dump_data(100, kr_buf, 16);
#endif