diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-25 05:34:12 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-25 05:34:12 +0000 |
commit | 30e8faaa8dac9eca2383ec0cda9cd2c9fc65d466 (patch) | |
tree | b75f16f05d2961c1ff57bfda25f3ae36ba8c43d8 /source3/libsmb/smbencrypt.c | |
parent | 75bc1009438c2ff1696205ab0ee5667ec3ef3062 (diff) | |
download | samba-30e8faaa8dac9eca2383ec0cda9cd2c9fc65d466.tar.gz samba-30e8faaa8dac9eca2383ec0cda9cd2c9fc65d466.tar.xz samba-30e8faaa8dac9eca2383ec0cda9cd2c9fc65d466.zip |
previous commit added an abstraction function that didn't even have
struct cli_state, uint16 fnum into the code: rpc_hnd_api_req().
modified cli_lsarpc.c to use this. the rest is const issues.
(This used to be commit c1ea396de21309c4cf19fd92f2573f5257c24588)
Diffstat (limited to 'source3/libsmb/smbencrypt.c')
-rw-r--r-- | source3/libsmb/smbencrypt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c index 3227caaa954..ace6cdc300d 100644 --- a/source3/libsmb/smbencrypt.c +++ b/source3/libsmb/smbencrypt.c @@ -444,21 +444,18 @@ BOOL make_oem_passwd_hash(char data[516], const char *passwd, uchar old_pw_hash[ return True; } -BOOL nt_decrypt_string2(STRING2 *out, const STRING2 *in, char nt_hash[16]) +BOOL nt_decrypt_string2(STRING2 *out, const STRING2 *in, const uchar *key) { uchar bufhdr[8]; int datalen; - uchar key[16]; - uchar *keyptr = key; - uchar *keyend = key + sizeof(key); + const uchar *keyptr = key; + const uchar *keyend = key + 16; uchar *outbuf = (uchar *)out->buffer; const uchar *inbuf = (const uchar *)in->buffer; const uchar *inbufend; - mdfour(key, nt_hash, 16); - smbhash(bufhdr, inbuf, keyptr, 0); datalen = IVAL(bufhdr, 0); |