summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-12-10 18:02:08 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-12-10 18:02:08 +0000
commit9db489ea558598d1d0cd9b9d9f131ec02e3f7fc6 (patch)
tree776442ab2de758a3e9985f093ab5b2c0551064a4 /source3
parentd68e27a3bc08e9b0d44d6fe863a45a4830102ed3 (diff)
downloadsamba-9db489ea558598d1d0cd9b9d9f131ec02e3f7fc6.tar.gz
samba-9db489ea558598d1d0cd9b9d9f131ec02e3f7fc6.tar.bz2
samba-9db489ea558598d1d0cd9b9d9f131ec02e3f7fc6.zip
Fixed for FreeBsd.
jra@cygnus.com (This used to be commit 979acbc1096dda3f36f95eaed88de94931cfb164)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smbencrypt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index 7ebb99ca1a..ee2b17ae5d 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/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);
}