patch-2.0.37 linux/fs/ncpfs/sock.c
Next file: linux/fs/nls.c
Previous file: linux/fs/ncpfs/ncpsign_kernel.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Jun 13 10:21:03 1999
- Orig file:
v2.0.36/linux/fs/ncpfs/sock.c
- Orig date:
Tue Dec 2 13:52:32 1997
diff -u --recursive --new-file v2.0.36/linux/fs/ncpfs/sock.c linux/fs/ncpfs/sock.c
@@ -7,6 +7,8 @@
*
*/
+#include <linux/config.h>
+
#include <linux/sched.h>
#include <linux/ncp_fs.h>
#include <linux/errno.h>
@@ -25,6 +27,7 @@
#include <linux/ncp_fs_sb.h>
#include <net/sock.h>
+#include "ncpsign_kernel.h"
#define _S(nr) (1<<((nr)-1))
static int _recvfrom(struct socket *sock, unsigned char *ubuf,
@@ -562,7 +565,12 @@
printk("ncpfs: Server not locked!\n");
return -EIO;
}
-
+#ifdef CONFIG_NCPFS_PACKET_SIGNING
+ if (server->sign_active)
+ {
+ sign_packet(server, &size);
+ }
+#endif /* CONFIG_NCPFS_PACKET_SIGNING */
if (!ncp_conn_valid(server))
{
return -EIO;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov