remove ugly cred_hash3 function v3-0-trust
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Aug 2009 12:17:58 +0000 (14:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 7 Nov 2009 08:45:27 +0000 (09:45 +0100)
metze

source/libsmb/smbdes.c

index 8168eee207f8f68d71d9b21eb727811837e87654..b912d5ad85aa39e56e765a25a0dddcd61c62e2b0 100644 (file)
@@ -363,16 +363,6 @@ void des_crypt112(unsigned char out[8], const unsigned char in[8], const unsigne
        des_crypt56(out, buf, key+7, forw);
 }
 
-void cred_hash3(unsigned char *out, const unsigned char *in, const unsigned char *key, int forw)
-{
-        unsigned char key2[8];
-
-       memset(key2,'\0',8);
-        des_crypt56(out, in, key, forw);
-        key2[0] = key[7];
-        des_crypt56(out + 8, in + 8, key2, forw);
-}
-
 /* des encryption of a 16 byte lump of data with a 112 bit key */
 /* Note that if the key is actually 8 bytes of key, followed by 6 bytes of zeros,
    this is identical to cred_hash3(). JRA. */