summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-17 07:08:21 +0000
committerJeremy Allison <jra@samba.org>1998-01-17 07:08:21 +0000
commit1ea8ceac458501719a055700902d456304c4ee0a (patch)
treeb7e3008831dd6b3b0b280c1c75ad5aa3c6e64296 /source3/libsmb
parent4f9674d1c85f2e7293874477ae0da15fee1538c7 (diff)
downloadsamba-1ea8ceac458501719a055700902d456304c4ee0a.tar.gz
samba-1ea8ceac458501719a055700902d456304c4ee0a.tar.bz2
samba-1ea8ceac458501719a055700902d456304c4ee0a.zip
charcnv.c: Added codepage 866 support onto the file system. Patch
from Max Khon <max@iclub.nsu.ru>. chgpasswd.c: Allow old RAP change password to work with encrypted passwords. Samba can now allow Windows 95/NT clients to securely change the Lanman password ! (But not the NT hash - that gets lost). ipc.c: smbdes.c: smbpass.c: Support for the above. server.c: #ifdef'ed out fix for NT redirector bug. util.c: Fix NIS bug with server name. Jeremy. (This used to be commit cd9fad92d0316e5a0007ba3c5668906dc2f011f1)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smbdes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index c3cc2c7133..7446f31e15 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -317,6 +317,12 @@ void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24)
smbhash(p24+16, c8, p21+14, 1);
}
+void D_P16(unsigned char *p14, unsigned char *in, unsigned char *out)
+{
+ smbhash(out, in, p14, 0);
+ smbhash(out+8, in+8, p14+7, 0);
+}
+
void cred_hash1(unsigned char *out,unsigned char *in,unsigned char *key)
{
unsigned char buf[8];