summaryrefslogtreecommitdiffstats
path: root/src/appl/telnet/telnetd/utility.c
Commit message (Collapse)AuthorAgeFilesLines
* Unbundle applications into separate repositoryGreg Hudson2009-11-221-1303/+0
| | | | | | | | | | | | | | | Remove libpty, gssftp, telnet, and the bsd applications from the source tree, build system, and tests. Docs still need to be updated to remove mentions of the applications. The build system should be simplified now that we're down to one configure script and don't need some of the functionality currently in aclocal.m4. ticket: 6583 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23305 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-8/+8
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Use [v]snprintf or asprintf instead of unchecked sprintf and separate ↵Ken Raeburn2007-07-121-2/+2
| | | | | | allocation size calculations git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19709 dc483132-0cff-0310-8789-dd5450dbe970
* Attach format attributes to declarations of various message-formattingKen Raeburn2007-06-291-4/+7
| | | | | | | | | | | | | routines under gcc. In a couple of routines, hard-code the preference for using the vsnprintf paths instead of list-of-int-arguments hacks now that we're assuming vsnprintf is available in other places. Installed headers affected: com_err.h (com_err, com_err_va) ss.h (ss_error) krb5.h (krb5_set_error_message, krb5_vset_error_message) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19653 dc483132-0cff-0310-8789-dd5450dbe970
* Merge Athena changes for requiring encrypted connectionsTom Yu2004-11-151-0/+61
| | | | | | | ticket: 841 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16866 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for speed_t being presentEzra Peisach2002-11-151-12/+14
| | | | | | | | | * sys_term.c (addarg): When reallocing memory, ensure in size of pointer. Use speed_t instead of int for termspeeds. * authenc.c, ext.h, state.c, utility.c: Unsigned/signed cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15012 dc483132-0cff-0310-8789-dd5450dbe970
* * authenc.c (net_write): Rewrite in terms of netwrite()Tom Yu2001-08-021-337/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * state.c: Declate doclientstat() static and conditionalizeEzra Peisach2001-07-021-2/+2
| | | | | | | | | | | | | inclusion if LINEMODE defined. * sys_term.c: Declare getptyslave() and addard() static. * telnetd.c: Declare _gettermname() and getterminaltype() static. * utility.c: Declare putstr() and nextitem() static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13540 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c (printsub): Ensure variable set before useEzra Peisach2001-06-191-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13386 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c (printdata): Cast argument to isprint() to intEzra Peisach2001-06-181-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13382 dc483132-0cff-0310-8789-dd5450dbe970
* * ext.h: Remove unused prototype for start_slave() and replaceEzra Peisach2001-06-071-2/+9
| | | | | | | | | | | | | | | | | with one for startslave(). * state.c: Add libtlnet/encrypt.h for missing prototypes. * sys_term.c: Add prototype for dup_tty(). Change getptyslave() from int to void. Cleanup an assignment in conditional warning. * telnetd.c: Include libtelnet/misc-proto.h. Declare return from terminaltypeok() and main() as int. * utility.c: Include libtelnet/auth.h and libtelnet/encrypt.h for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13286 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add check for <sys/utsname.h>Theodore Tso1998-11-161-0/+27
| | | | | | | utility.c (putf): Add support for %s, %m, %r, %v using information from the uname() system call. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11041 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c (ptyflush, netflush): Explicitly reset SIGCHLD handlerTom Yu1998-02-241-0/+2
| | | | | | | | | | | | before calling cleanup(). [telnet/546] * telnetd.c (telnet): Explicitly reset SIGCHLD handler before calling cleanup(). [telnet/546] * state.c (dooption): Explicitly reset SIGCHLD handler before calling cleanup(). [telnet/546] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10471 dc483132-0cff-0310-8789-dd5450dbe970
* Misc debugging cleanups [71, 74]Sam Hartman1996-10-141-7/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9164 dc483132-0cff-0310-8789-dd5450dbe970
* Check in all of jik's patches besides the forward commandSam Hartman1996-09-211-0/+3
| | | | | | | | | | and init stanza. I think that as a low-priority fix, someone should rewrite the posix_signals stuff in sys_bsd.c to be more consistent with the rest of the code; it is correct but in a different style. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9102 dc483132-0cff-0310-8789-dd5450dbe970
* * ext.h, utility.c (fatalperror, fatal): Add const to argumentEzra Peisach1996-02-241-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7519 dc483132-0cff-0310-8789-dd5450dbe970
* syslog statements should not be called with \nRichard Basch1995-10-231-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6984 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4188 dc483132-0cff-0310-8789-dd5450dbe970
* lintMark Eichin1994-08-161-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4161 dc483132-0cff-0310-8789-dd5450dbe970
* lintMark Eichin1994-08-141-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4134 dc483132-0cff-0310-8789-dd5450dbe970
* grab -nlsl, -lsocket; punt index/rindexMark Eichin1994-08-081-7/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4063 dc483132-0cff-0310-8789-dd5450dbe970
* step 3: bcopy->memcpy or memmove (chose by hand), twiddle argsMark Eichin1994-06-151-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3815 dc483132-0cff-0310-8789-dd5450dbe970
* Updated telnet to be the 94.02.07 version, with some bugfixesTheodore Tso1994-06-101-41/+45
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3704 dc483132-0cff-0310-8789-dd5450dbe970
* Initial VersionTheodore Tso1993-03-091-0/+1188
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2524 dc483132-0cff-0310-8789-dd5450dbe970