Imported Upstream version 2.6.1
[debian/amanda] / common-src / krb4-security.c
index 77fa3bd903a205bfff4c2615f5456485d957734a..69bf2d314142478177aedaf0bd812453be34ea80 100644 (file)
 #endif /* HAVE_ON_EXIT */
 #endif /* ! HAVE_ATEXIT */
 
+/*
+ * This is the tcp stream buffer size
+ */
+#ifndef STREAM_BUFSIZE
+#define        STREAM_BUFSIZE  (32768*2)
+#endif
+
 int krb_set_lifetime(int);
 int kuserok(AUTH_DAT *, char *);
 
@@ -98,19 +105,12 @@ struct krb4_stream {
     in_port_t port;                    /* local port this is bound to */
     int socket;                                /* fd for server-side accepts */
     event_handle_t *ev_read;           /* read event handle */
-    char databuf[MAX_TAPE_BLOCK_BYTES];        /* read buffer */
+    char databuf[STREAM_BUFSIZE];      /* read buffer */
     int len;                           /* */
     void (*fn)(void *, void *, ssize_t);/* read event fn */
     void *arg;                         /* arg for previous */
 };
 
-/*
- * This is the tcp stream buffer size
- */
-#ifndef STREAM_BUFSIZE
-#define        STREAM_BUFSIZE  (MAX_TAPE_BLOCK_BYTES * 2)
-#endif
-
 /*
  * Interface functions
  */