summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-24 00:09:08 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-24 00:09:08 +0000
commit08d00eb68ee93eaead0f3bbaabc3d89540e0818e (patch)
tree710ccb9b7720c18394876a415803b4a414df8b26 /source3/libsmb
parent99ad4508a086205a7801e88a2f74ad6fe839431f (diff)
downloadsamba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.tar.gz
samba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.tar.bz2
samba-08d00eb68ee93eaead0f3bbaabc3d89540e0818e.zip
- added support for TMPDIR env variable
- fixed fault.c for linux 2.1 - put back in the FIND_SELF failing code - cleaned up casts in encryption (This used to be commit 3af04f1580b2569c0a4f2549bf6352c7a25afa0d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smbencrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index c666e79547..7ebb99ca1a 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/libsmb/smbencrypt.c
@@ -54,8 +54,8 @@ void D1(uchar *k, uchar *d, uchar *out)
des_cblock deskey;
str_to_key(k,(uchar *)deskey);
- des_set_key(deskey,ks);
- des_ecb_encrypt(d, out, ks, DES_DECRYPT);
+ des_set_key((des_cblock *)deskey,ks);
+ des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks, DES_DECRYPT);
}
void E1(uchar *k, uchar *d, uchar *out)
@@ -64,8 +64,8 @@ void E1(uchar *k, uchar *d, uchar *out)
des_cblock deskey;
str_to_key(k,(uchar *)deskey);
- des_set_key(deskey,ks);
- des_ecb_encrypt(d, out, ks, DES_ENCRYPT);
+ des_set_key((des_cblock *)deskey,ks);
+ des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks, DES_ENCRYPT);
}
void E_P16(uchar *p14,uchar *p16)