X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fkrb4-security.c;fp=common-src%2Fkrb4-security.c;h=69bf2d314142478177aedaf0bd812453be34ea80;hb=2627875b7d18858bc1f9f7652811e4d8c15a23eb;hp=77fa3bd903a205bfff4c2615f5456485d957734a;hpb=fb2bd066c2f8b34addafe48d62550e3033a59431;p=debian%2Famanda diff --git a/common-src/krb4-security.c b/common-src/krb4-security.c index 77fa3bd..69bf2d3 100644 --- a/common-src/krb4-security.c +++ b/common-src/krb4-security.c @@ -60,6 +60,13 @@ #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 */