summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/smbdes.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-20 02:50:12 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-20 02:50:12 +0000
commitf4b4b3e6e35916dc5e280542f5f914e40b25dd21 (patch)
tree5b5ec7d180ed210ca68cfbd989b82b12f28846d3 /source3/libsmb/smbdes.c
parent7d711a6d0d3e2a974c00cdaa622f8b8d9fd35def (diff)
downloadsamba-f4b4b3e6e35916dc5e280542f5f914e40b25dd21.tar.gz
samba-f4b4b3e6e35916dc5e280542f5f914e40b25dd21.tar.xz
samba-f4b4b3e6e35916dc5e280542f5f914e40b25dd21.zip
casting cleanups
(This used to be commit ab849a97821c9e1f199eea8ea2ec477687bed947)
Diffstat (limited to 'source3/libsmb/smbdes.c')
-rw-r--r--source3/libsmb/smbdes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index 90bad778c5a..67e27016c31 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -257,7 +257,7 @@ static void dohash(char *out, char *in, char *key)
permute(out, rl, perm6, 64);
}
-void str_to_key(unsigned char *str,unsigned char *key)
+static void str_to_key(unsigned char *str,unsigned char *key)
{
int i;
@@ -317,18 +317,18 @@ void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24)
smbhash(p24+16, c8, p21+14);
}
-void cred_hash1(char *out, char *in, char *key)
+void cred_hash1(unsigned char *out,unsigned char *in,unsigned char *key)
{
- char buf[8];
+ unsigned char buf[8];
smbhash(buf, in, key);
smbhash(out, buf, key+9);
}
-void cred_hash2(char *out, char *in, char *key)
+void cred_hash2(unsigned char *out,unsigned char *in,unsigned char *key)
{
- char buf[8];
- static char key2[8];
+ unsigned char buf[8];
+ static unsigned char key2[8];
smbhash(buf, in, key);
key2[0] = key[7];