From 979acbc1096dda3f36f95eaed88de94931cfb164 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Tue, 10 Dec 1996 18:02:08 +0000 Subject: Fixed for FreeBsd. jra@cygnus.com --- source/libsmb/smbencrypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/libsmb') diff --git a/source/libsmb/smbencrypt.c b/source/libsmb/smbencrypt.c index 7ebb99ca1a8..ee2b17ae5d1 100644 --- a/source/libsmb/smbencrypt.c +++ b/source/libsmb/smbencrypt.c @@ -54,7 +54,11 @@ void D1(uchar *k, uchar *d, uchar *out) des_cblock deskey; str_to_key(k,(uchar *)deskey); +#ifdef __FreeBSD__ + des_set_key(&deskey,ks); +#else /* __FreeBSD__ */ des_set_key((des_cblock *)deskey,ks); +#endif /* __FreeBsd */ des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks, DES_DECRYPT); } @@ -64,7 +68,11 @@ void E1(uchar *k, uchar *d, uchar *out) des_cblock deskey; str_to_key(k,(uchar *)deskey); +#ifdef __FreeBSD__ + des_set_key(&deskey,ks); +#else /* __FreeBsd__ */ des_set_key((des_cblock *)deskey,ks); +#endif /* __FreeBsd__ */ des_ecb_encrypt((des_cblock *)d,(des_cblock *)out, ks, DES_ENCRYPT); } -- cgit