summaryrefslogtreecommitdiff
path: root/source3/libsmb/smbdes.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-22 19:15:24 +0000
committerJeremy Allison <jra@samba.org>1998-10-22 19:15:24 +0000
commit84866d423330b2a21720adef2e9bed5f45d8ff0c (patch)
tree05e366531f62383a905b8025aafbdf75e2d3c7fd /source3/libsmb/smbdes.c
parent6e25286b3c5ea64e941a0a8e612c9df94f4d8fa9 (diff)
downloadsamba-84866d423330b2a21720adef2e9bed5f45d8ff0c.tar.gz
samba-84866d423330b2a21720adef2e9bed5f45d8ff0c.tar.bz2
samba-84866d423330b2a21720adef2e9bed5f45d8ff0c.zip
Removed previously #ifdef 0 'ed code.
Jeremy. (This used to be commit 7feaa13d02f84760d6857115ed253570f41911bb)
Diffstat (limited to 'source3/libsmb/smbdes.c')
-rw-r--r--source3/libsmb/smbdes.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index 8a13935cf9..5bff1742af 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -358,43 +358,6 @@ void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int for
smbhash(out + 8, in + 8, key2, forw);
}
-#if 0
-/*
- * Prepare to remove... JRA.
- */
-void NTLMSSPhash( unsigned char hash[258], unsigned char key[5])
-{
- unsigned char j = 0;
- int ind;
-
- unsigned char k2[8];
-
- memcpy(k2, key, 5);
- k2[5] = 0xe5;
- k2[6] = 0x38;
- k2[7] = 0xb0;
-
- for (ind = 0; ind < 256; ind++)
- {
- hash[ind] = (unsigned char)ind;
- }
-
- for( ind = 0; ind < 256; ind++)
- {
- unsigned char tc;
-
- j += (hash[ind] + k2[ind%8]);
-
- tc = hash[ind];
- hash[ind] = hash[j];
- hash[j] = tc;
- }
-
- hash[256] = 0;
- hash[257] = 0;
-}
-#endif
-
void NTLMSSPcalc( unsigned char hash[258], unsigned char *data, int len)
{
unsigned char index_i = hash[256];