diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-27 15:46:29 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-27 15:46:29 +0000 |
commit | c009f27dba57cd220ee4854c6efa4665c8d1beb4 (patch) | |
tree | d0be3cc4edbbabd31fd9689f7c056927151c1426 /usr.bin/telnet/ring.c | |
parent | 109e9ae764615304685c48a081c80390ed957586 (diff) | |
download | FreeBSD-src-c009f27dba57cd220ee4854c6efa4665c8d1beb4.zip FreeBSD-src-c009f27dba57cd220ee4854c6efa4665c8d1beb4.tar.gz |
Fix big f*ckup by doing "make nocrypt"
(Don't think I don't realize what a big f*ckup this was.)
Submitted by: geoff.
Diffstat (limited to 'usr.bin/telnet/ring.c')
-rw-r--r-- | usr.bin/telnet/ring.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/usr.bin/telnet/ring.c b/usr.bin/telnet/ring.c index 1080d12..6de5a67 100644 --- a/usr.bin/telnet/ring.c +++ b/usr.bin/telnet/ring.c @@ -112,9 +112,6 @@ Ring *ring; ring->top = ring->bottom+ring->size; -#ifdef ENCRYPTION - ring->clearto = 0; -#endif /* ENCRYPTION */ return 1; } @@ -185,15 +182,6 @@ ring_consumed(ring, count) (ring_subtract(ring, ring->mark, ring->consume) < count)) { ring->mark = 0; } -#ifdef ENCRYPTION - if (ring->consume < ring->clearto && - ring->clearto <= ring->consume + count) - ring->clearto = 0; - else if (ring->consume + count > ring->top && - ring->bottom <= ring->clearto && - ring->bottom + ((ring->consume + count) - ring->top)) - ring->clearto = 0; -#endif /* ENCRYPTION */ ring->consume = ring_increment(ring, ring->consume, count); ring->consumetime = ++ring_clock; /* @@ -325,38 +313,3 @@ ring_consume_data(ring, buffer, count) } #endif -#ifdef ENCRYPTION - void -ring_encrypt(ring, encryptor) - Ring *ring; - void (*encryptor)(); -{ - unsigned char *s, *c; - - if (ring_empty(ring) || ring->clearto == ring->supply) - return; - - if (!(c = ring->clearto)) - c = ring->consume; - - s = ring->supply; - - if (s <= c) { - (*encryptor)(c, ring->top - c); - (*encryptor)(ring->bottom, s - ring->bottom); - } else - (*encryptor)(c, s - c); - - ring->clearto = ring->supply; -} - - void -ring_clearto(ring) - Ring *ring; -{ - if (!ring_empty(ring)) - ring->clearto = ring->supply; - else - ring->clearto = 0; -} -#endif /* ENCRYPTION */ |