summaryrefslogtreecommitdiffstats
path: root/src/appl
Commit message (Collapse)AuthorAgeFilesLines
...
* dependenciesKen Raeburn2001-09-0210-6/+263
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13726 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for ipv6 supportKen Raeburn2001-08-312-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13707 dc483132-0cff-0310-8789-dd5450dbe970
* * ext.h: Always use prototype declarationsKen Raeburn2001-08-312-93/+88
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13706 dc483132-0cff-0310-8789-dd5450dbe970
* * defs.h: Don't include socket-utils.h until after netinet/in.hKen Raeburn2001-08-302-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13704 dc483132-0cff-0310-8789-dd5450dbe970
* ipv6 support, except if source routing is requested (may be broken)Ken Raeburn2001-08-303-93/+133
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13698 dc483132-0cff-0310-8789-dd5450dbe970
* * telnet.c (setupterm): Now static.Ken Raeburn2001-08-302-5/+13
| | | | | | | | (suboption): Rename local variable "ospeed" to "o_speed" to avoid conflict with global. (env_opt_add): Cast opt_welldefined argument to char * to silence warning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13697 dc483132-0cff-0310-8789-dd5450dbe970
* note ipv6 work still not doneKen Raeburn2001-08-301-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13696 dc483132-0cff-0310-8789-dd5450dbe970
* support incoming ipv6 connections; debug mode still ipv4 onlyKen Raeburn2001-08-303-15/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13695 dc483132-0cff-0310-8789-dd5450dbe970
* * termio-tn.c, termios-tn.c: Define dummy variables if STREAMSPTY isn't ↵Ken Raeburn2001-08-303-0/+9
| | | | | | defined, to silence compiler complaints about empty files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13693 dc483132-0cff-0310-8789-dd5450dbe970
* * glob.c (amatch, case '*'): Treat multiple asterisks the same as oneKen Raeburn2001-08-212-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13682 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.M: Update the usage line and option descriptions to be in syncMitchell Berger2001-08-032-19/+32
| | | | | | with what the code actually does and be in a consistent order. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13672 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (main): Convert to do option parsing with getopt() ratherMitchell Berger2001-08-032-71/+48
| | | | | | | | | than the whitespace-sensitive voodoo we've used in the past. This fixes a bug where use of -u to set a default umask silently failed and granted more permission on files than desired if the -u and the mode were separated by a space, and likely many other such bugs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13670 dc483132-0cff-0310-8789-dd5450dbe970
* * authenc.c (net_write): Rewrite in terms of netwrite()Tom Yu2001-08-029-447/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * ftp.c: Declare mech_type in struct gss_trials gss_OID to beEzra Peisach2001-07-302-1/+6
| | | | | | compatible with GSS_C_NO_OID type. (was gss_OID *). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13652 dc483132-0cff-0310-8789-dd5450dbe970
* Remove local Win32-specific definition of gss_mech_krb5.Danilo Almeida2001-07-282-25/+10
| | | | | | | Use GSS_C_NO_OID instead of gss_mech_krb5 for mech_type to use an implementation specific default. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13649 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add check for getev() to avoid problems whenTom Yu2001-07-242-1/+6
| | | | | | building setenv.c from appl/bsd. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13632 dc483132-0cff-0310-8789-dd5450dbe970
* * getpass.c: Remove duplicate definitions of sig_t, my_sig_t;Tom Yu2001-07-243-5/+8
| | | | | | | | they're already declared in ftp_var.h. * ftp_var.h (FDOPEN_SOCKET): Fix second arg. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13631 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in, cmds.c, ftp.c, ftp_var.h, getpass.c, glob.c,Danilo Almeida2001-07-2411-197/+629
| | | | | | | | | | | | main.c, ruserpass.c, secure.c, secure.h: Quick and dirty Win32 port. Changes include using sockets more portably; changing the method of getting username, home directory, and temporary filenames; adding password reading code for Win32; directory enumeration via FindNextFile() rather than readdir(); removing OUT labels (which appear to cause problems with MSVC++ 6.0). Since ANSI C, assume we have stdarg.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13628 dc483132-0cff-0310-8789-dd5450dbe970
* * setenv.c (setenv): Include stdlib.h for malloc prototypesEzra Peisach2001-07-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13626 dc483132-0cff-0310-8789-dd5450dbe970
* * sys_term.c (startslave): Get rid of extra argument in call toEzra Peisach2001-07-232-1/+6
| | | | | | getptyslave(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13625 dc483132-0cff-0310-8789-dd5450dbe970
* * enc_des.c (fb64_start): Remove variable set but never usedEzra Peisach2001-07-232-3/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13624 dc483132-0cff-0310-8789-dd5450dbe970
* * v4rcp.c (kstream_create_rcp_from_fd, kstream_create_from_fd): AllocateKen Raeburn2001-07-142-2/+8
| | | | | | | correct amount of space for kstream data. (Patch from Cygnus KerbNet code, 1997.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13604 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos.c (Data): Third argument now constEzra Peisach2001-07-095-8/+20
| | | | | | | | | | | * misc.c (printd): First argument now const. * misc-proto.h: Modify printd prototype to take const first argument. * auth.c: Cast argument to memcpy to unsigned. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13593 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add AC_HEADER_STDARGEzra Peisach2001-07-083-5/+24
| | | | | | * commands.c (call): Rewrite to use varargs/stdarg interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13589 dc483132-0cff-0310-8789-dd5450dbe970
* * login.c (sigint): Declare staticEzra Peisach2001-07-082-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13583 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for need to provide setenv prototype ifEzra Peisach2001-07-064-2/+14
| | | | | | | | | | | setenv is in the C library. * forward.c: Provide setenv prototype if needed. * auth.c (auth_name): Cast result of sizeof() to int to match printf format specification. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13580 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check if prototype needed for herror()Ezra Peisach2001-07-063-1/+29
| | | | | | | | * commands.c (ayt_status): Add explict return type (void or int) depending on signal handler definition. Add prototype for herror if system does not provide one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13579 dc483132-0cff-0310-8789-dd5450dbe970
* * sys_term.c (addarg): Cast char to long in indexing arrayEzra Peisach2001-07-062-4/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13570 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Link krshd with KRSHDLIBS instead of LOGINLIBSEzra Peisach2001-07-0610-44/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Creare a new variable KRSHDLIBS which differs from LOGINLIBS by not including libkrb524.a. Test for getenv. * krcp.c: Prototype lostconn(). * krlogind.c: Provide prototype for signal handler cleanup. Implied need to add extra argument to function - ensure consistant calling. * krsh.c: Provide prototype for signal handler sendsig. * krshd.c: Rewrite error() to use stdargs/varargs. (doit): When creating a tty name using getpid. Ensure that does not overflow tty string buffer. * login.c: Provide prototype for signal handler timedout. * setenv.c: Do not define getenv() unless needed. * v4rcp.c: Rewrite error() to use stdargs/varargs. Add signal number argument to lostconn(), include prototype, and ensure called consistantly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13567 dc483132-0cff-0310-8789-dd5450dbe970
* * encrypt.c (encrypt_reply): Cast arguments to printf to matchEzra Peisach2001-07-052-4/+9
| | | | | | format in debugging statments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13564 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: Provide prototypes for myoob and lostconnEzra Peisach2001-07-052-3/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13558 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.c: Instead of hard wiring the FUDGE_FACTOR, newEzra Peisach2001-07-042-18/+65
| | | | | | | | | | variables to keep track of the total buffer length desired and the actual maximum that can be fitted. Add secure_determine_constants() to determine the mechanism dependent overhead. This has a hard limit for krb4 - for gssapi use gss_wrap_size_limit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13553 dc483132-0cff-0310-8789-dd5450dbe970
* * v4rcp.c, login.c: Fill in prototypes, declare many functionsEzra Peisach2001-07-034-36/+42
| | | | | | static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13550 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (sgetpwnam): Remove local declaration of sgetsaveEzra Peisach2001-07-032-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13549 dc483132-0cff-0310-8789-dd5450dbe970
* * popen.c: Include ftpd_var.hEzra Peisach2001-07-025-16/+33
| | | | | | | | | | | | * ftpd.c: Declare secure_fprintf, gunique, sgetsave, sgetpwnam, path_expand static. * ftpd_var.h: Add prototypes for getline, renamefrom, ftpd_popen, ftpd_pclose. * ftpcmd.y: Declare lookup, copy and urgsafe_getc static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13545 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c: Remove prototypes for EncryptAutoEnc(),Ezra Peisach2001-07-022-6/+7
| | | | | | | EncryptAuthDec(), EcnryptDebug(), EncryptVerbose() as they exists in enc-proto.h in libtelnet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13544 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5forw.h: File with prototype for rd_and_store_for_creds()Ezra Peisach2001-07-0213-16/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kerberos5.c: Include krb5forw.h for rd_and_store_for_creds() prototype which is removed from this file. * forward.c: Include krb5forw.h for prototype. * setenv.c: Include misc-proto.h for setenv/unsetenv prototypes. * parsetos.c: Include misc-proto.h for parsetos prototype. * misc-proto.h: Add prototype for parsetos(), setenv(), unsetenv() as needed. * kerberos5.c: Declare kerberos5_forward() static and flush out prototype. * gettytab.h: Flush out prototypes for getent() and getstr(). * getent.c: Include gettytab.h for prototypes. * genget.c: Include misc.h for prototypes. * enc_des.c: Add prototype for fb64_printsub. * enc-proto.h: Add prototypes for encrypt_debug(), finddecryption(), EncryptAuthEnc(), EncryptAutoDec(), EncryptDebug(), EncryptVerbose(). * encrypt.c: Declare encrypt_list_types() and encrypt_keyid() static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13543 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c: Declare sourceroute() staticEzra Peisach2001-07-022-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13542 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c: Declare local functions staticEzra Peisach2001-07-027-26/+47
| | | | | | | | | | | | | | | * main.c: Declare usage() static. * ring.h: Provide full prototypes for ring_mark() and ring_clear_mark(). * sys_bsd.c: Declare signal handler and NetNonblockingIO static. * telnet.c: Declear gettermname() and mklist() static. Change local variable timeout to tmie_out to avoid shadowing curses header file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13541 dc483132-0cff-0310-8789-dd5450dbe970
* * state.c: Declate doclientstat() static and conditionalizeEzra Peisach2001-07-025-10/+23
| | | | | | | | | | | | | 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
* * krlogind.c: Provide daemon prototype if neededEzra Peisach2001-06-223-0/+15
| | | | | | * configure.in: Test if prototype for daemon necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13496 dc483132-0cff-0310-8789-dd5450dbe970
* * telnetd.c (main): Change variable sin to sin4.Ezra Peisach2001-06-222-11/+16
| | | | | | (encrypt_failure): Change to not shadow global error_message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13495 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c (tn): Change sin to sin4 to not shadow globalEzra Peisach2001-06-223-28/+36
| | | | | | | * authenc.c (telnet_gets): Change local variable prompt to tprompt to not shadow global variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13494 dc483132-0cff-0310-8789-dd5450dbe970
* * enc_des.c: Change local variable index to idx to not shadownEzra Peisach2001-06-224-45/+58
| | | | | | | | | | | | | global function. * kerberos5.c (kerberos5_is): Change errbuf to kerrbuf to not shadow previous local. * kerberos.c (kerberos4_send): Change random_key to rand_key to prevent redefine by des.h. Change auth to kauth to not shadow global. (kerberos4_status): Change name to kname for same reason. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13493 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y (help): Change local variable type to ftypeEzra Peisach2001-06-223-67/+74
| | | | | | | * ftpd.c (main): Local variable name changes to prevent shadowing of cp, sin, optarg. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13492 dc483132-0cff-0310-8789-dd5450dbe970
* * login.c: Much cleanup to reduce globals and shadowingEzra Peisach2001-06-224-56/+81
| | | | | | | | | | | * krlogind.c (main): Change sin to sock_in. * krshd.c: Change sin to sock_in to not shadow global. Change some local variables to not shadow others. 2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13487 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: If NEED_SETENV defined, prototype for setenv.Ezra Peisach2001-06-212-1/+7
| | | | | | | (auth_data): radix_encode expects a int * and not a size_t *. Use temporary variable to pass data in and out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13466 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c: If NEED_SETENV defined, provide prototype for setenvEzra Peisach2001-06-213-0/+11
| | | | | | * configure.in: If compiling setenv.c, define NEED_SETENV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464 dc483132-0cff-0310-8789-dd5450dbe970
* * telnetd.c: Add prototypes for getent() and tgetent()Ezra Peisach2001-06-212-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13463 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for parsetos() prototype and presence ofEzra Peisach2001-06-214-2/+24
| | | | | | | | | | | curses.h and term.h header files. * telnet.c: Include term.h and curses.h if present for setupterm() prototype. * main.c: Declare prototype for parsetos() if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13462 dc483132-0cff-0310-8789-dd5450dbe970