* authenc.c (net_write): Rewrite in terms of netwrite()
authorTom Yu <tlyu@mit.edu>
Thu, 2 Aug 2001 22:07:00 +0000 (22:07 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 2 Aug 2001 22:07:00 +0000 (22:07 +0000)
commitf32211b635d9f75c218d8a8d08d4debc11dd0c8d
tree26950ab9c22c35846f1f77c7dcc6514b4fd40568
parentbda10640be28bfcb186b822a156a1b47bbe3fc00
* authenc.c (net_write): Rewrite in terms of netwrite()

* configure.in: Check for vsnprintf().

* ext.h: New prototypes for netprintf, netprintf_urg,
netprintf_noflush, netwrite, netputs.

* slc.c: Fix to use new NETOBUF-handling functions.

* state.c: Fix to use new NETOBUF-handling functions.

* telnetd.c: Fix to use new NETOBUF-handling functions.

* termstat.c: Fix to use new NETOBUF-handling functions.

* utility.c: General rework to be more paranoid about
bounds-checking of NETOBUF and NFRONTP.  Abstract away
interactions with NETOBUF to eliminate explicit references to
NFRONTP in many places.
(netwrite): New function; copies a buffer to the
NETOBUF "ring buffer", checking bounds and calling netflush() if
needed.
(netputs): New function; calls netwrite() with a nul-terminated
string.
(netprintf, netprintf_ext): New function; wrap sprintf() with
bounds checking for use with NETOBUF.
(netprintf_urg): New function; like netprintf() except sets neturg
to point at last char written.
(netprintf_noflush): New function; like netprintf() except
silently fails if NETOBUF is full.
(ttloop, printoption, printsub, printdata): Fix to use new
NETOBUF-handling functions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13669 dc483132-0cff-0310-8789-dd5450dbe970
src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/authenc.c
src/appl/telnet/telnetd/configure.in
src/appl/telnet/telnetd/ext.h
src/appl/telnet/telnetd/slc.c
src/appl/telnet/telnetd/state.c
src/appl/telnet/telnetd/telnetd.c
src/appl/telnet/telnetd/termstat.c
src/appl/telnet/telnetd/utility.c