=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/telnet/network.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/telnet/network.c 1997/12/16 22:07:38 1.4 +++ src/usr.bin/telnet/network.c 1998/03/12 04:57:36 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: network.c,v 1.4 1997/12/16 22:07:38 deraadt Exp $ */ +/* $OpenBSD: network.c,v 1.5 1998/03/12 04:57:36 art Exp $ */ /* $NetBSD: network.c,v 1.5 1996/02/28 21:04:06 thorpej Exp $ */ /* @@ -34,29 +34,8 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93"; -static char rcsid[] = "$NetBSD: network.c,v 1.5 1996/02/28 21:04:06 thorpej Exp $"; -#else -static char rcsid[] = "$OpenBSD: network.c,v 1.4 1997/12/16 22:07:38 deraadt Exp $"; -#endif -#endif /* not lint */ +#include "telnet_locl.h" -#include -#include -#include -#include -#include - -#include - -#include "ring.h" - -#include "defines.h" -#include "externs.h" -#include "fdset.h" - Ring netoring, netiring; unsigned char netobuf[2*BUFSIZ], netibuf[BUFSIZ]; @@ -110,7 +89,7 @@ free(fdsp); return 1; } else { - free(fdsp); + free(fdsp); return 0; } } @@ -144,6 +123,10 @@ { register int n, n1; +#if defined(ENCRYPTION) + if (encrypt_output) + ring_encrypt(&netoring, encrypt_output); +#endif if ((n1 = n = ring_full_consecutive(&netoring)) > 0) { if (!ring_at_mark(&netoring)) { n = send(net, (char *)netoring.consume, n, 0); /* normal write */