diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-20 01:00:08 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-20 01:00:08 +0000 |
commit | 62b73f0913894ce7cf6e327cb9928a283f305403 (patch) | |
tree | 596ec1892e1a6e58ef49298abae69eef830007be /source3/libsmb/smbdes.c | |
parent | 02674ea801a4fa1e9032d612d20d6370e53c066c (diff) | |
download | samba-62b73f0913894ce7cf6e327cb9928a283f305403.tar.gz samba-62b73f0913894ce7cf6e327cb9928a283f305403.tar.xz samba-62b73f0913894ce7cf6e327cb9928a283f305403.zip |
move calls to smbhash() inside smbdes.c (for legal reasons)
(This used to be commit 9dfab27da3634539e99eb48c85dd5a64212e7005)
Diffstat (limited to 'source3/libsmb/smbdes.c')
-rw-r--r-- | source3/libsmb/smbdes.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c index b62a160418d..90bad778c5a 100644 --- a/source3/libsmb/smbdes.c +++ b/source3/libsmb/smbdes.c @@ -275,7 +275,7 @@ void str_to_key(unsigned char *str,unsigned char *key) } -void smbhash(unsigned char *out, unsigned char *in, unsigned char *key) +static void smbhash(unsigned char *out, unsigned char *in, unsigned char *key) { int i; char outb[64]; @@ -317,4 +317,21 @@ 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) +{ + char buf[8]; + + smbhash(buf, in, key); + smbhash(out, buf, key+9); +} + +void cred_hash2(char *out, char *in, char *key) +{ + char buf[8]; + static char key2[8]; + + smbhash(buf, in, key); + key2[0] = key[7]; + smbhash(out, buf, key2); +} |