summaryrefslogtreecommitdiffstats
path: root/src/appl
Commit message (Collapse)AuthorAgeFilesLines
...
* * configure.in (SETENVOBJ): Define NEED_SETENV if compiling our ownEzra Peisach2001-06-212-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13461 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: If NEED_SETENV defined, prototype for setenvEzra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13460 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test if prototypes needed for setenv and unsetenvEzra Peisach2001-06-213-0/+14
| | | | | | * ext.h: Provide prototypes for unsetenv and setenv if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13454 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos5.c: Add prototype for rd_and_store_for_creds()Ezra Peisach2001-06-212-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13449 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c: Include gssapi/gssapi_krb5.h for gss_krb5_copy_ccacheEzra Peisach2001-06-212-0/+7
| | | | | | prototype. Provide prototype for yyparse. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13448 dc483132-0cff-0310-8789-dd5450dbe970
* * login.c (read_env_vars_from_file: Only define ifEzra Peisach2001-06-212-0/+7
| | | | | | /etc/environment or /etc/timezone exists on machine. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13447 dc483132-0cff-0310-8789-dd5450dbe970
* * kcmd.c: Get rid of prototypes for krb5_write_message(),Ezra Peisach2001-06-202-6/+5
| | | | | | krb5_net_write(), and krb5_net_read(). They are in krb5.h now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13422 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Cleanup potential ambiguity between comparsion andEzra Peisach2001-06-192-1/+6
| | | | | | pre-increment for a variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13388 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c (printsub): Ensure variable set before useEzra Peisach2001-06-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13386 dc483132-0cff-0310-8789-dd5450dbe970
* telnet.c (telrcv): Ensure variable set before useEzra Peisach2001-06-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13385 dc483132-0cff-0310-8789-dd5450dbe970
* * encrypt.c (encrypt_is): Cast arguments to printf to match formatEzra Peisach2001-06-182-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13384 dc483132-0cff-0310-8789-dd5450dbe970
* * utility.c (printdata): Cast argument to isprint() to intEzra Peisach2001-06-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13382 dc483132-0cff-0310-8789-dd5450dbe970
* * commands.c: Cast argument to isspace() to intEzra Peisach2001-06-183-6/+12
| | | | | | * telnet.c (mklist): Cast argument to islower()/toupper() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13381 dc483132-0cff-0310-8789-dd5450dbe970
* * genget.c (LOWER): Cast argument to isupper()/tolower() to intEzra Peisach2001-06-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13380 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-client.c (parse_oid): Cast argument to isdigit() to intEzra Peisach2001-06-183-11/+9
| | | | | | * gss-server.c (sign_server): Cast argument to isspace() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13379 dc483132-0cff-0310-8789-dd5450dbe970
* * krcp.c (sink): Cast argument to isdigit() to intEzra Peisach2001-06-182-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13378 dc483132-0cff-0310-8789-dd5450dbe970
* * sim_client.c (main): Cast argument to isupper()/tolower() to intEzra Peisach2001-06-182-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13377 dc483132-0cff-0310-8789-dd5450dbe970
* * loginpaths.h: If _PATH_DEFPATH is defined, undefine LPATH andEzra Peisach2001-06-182-0/+11
| | | | | | RPATH before redefining. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13362 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y, ftpd.c: Cast argument to isspace()/isdigit() to intEzra Peisach2001-06-154-9/+16
| | | | | | | * secure.h (SESSION): Pass pointer to C_Block as expected by krb5_mk_priv(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13351 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c, domacro.c: Cast arguments to isspace() and isdigit()Ezra Peisach2001-06-154-18/+25
| | | | | | | | from char to int. * ftp.c: krb5_mk_priv(), krb5_mk_safe() expect C_Block *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13350 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in (SETENVOBJ): If setenv is not present on system,Ezra Peisach2001-06-1110-11/+45
| | | | | | | | | | | | | | | | | | | | | | | | define NEED_SETENV as well as linking in local sources. * defines.h: Include prototype for setenv() if NEED_SETENV defined. * krlogin.c (prf): Declare as void. Used only with one argument - get rid of pseudo-varargs behaviour. * krlogind.c (recvauth): Include k5-util.h for krb5_compat_recvauth_version() prototype. Declare sendoob() void. * krshd.c: Include k5-util.h for krb5_compat_recvauth_version() prototype. * login.c: Include setenv prototype if NEED_SETENV defined. Cast arguments to printf to match format string. * v4rcp.c (source): Cast argument to sprintf() to match format string. * krcp.c (rsource): Likewise. * forward.c (rd_and_store_for_creds): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13334 dc483132-0cff-0310-8789-dd5450dbe970
* * krshd.c: Include <grp.h>, <libpty.h>, and <sys/wait.h> forEzra Peisach2001-06-113-3/+14
| | | | | | | | | | initgroups(), pty_logwtmp()/pty_make_sane_hostname(), and wait() prototypes. For local initgroups definition, conditionalize on HAVE_INITGROUPS and not __SCO__. * krcp.c: Include <sys/wait.h> for wait()/waitpid() prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13321 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Include unistd.h (if present) for getopt() prototypeEzra Peisach2001-06-082-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13306 dc483132-0cff-0310-8789-dd5450dbe970
* * pathnames.h: _PATH_FTPUSERS renamed to _PATH_FTPUSERS_DEFAULTMitchell Berger2001-06-084-5/+34
| | | | | | | | | * ftpd.c: Added '-U filename' option to allow specification of an ftpusers file other than the default. * ftpd.M: Documented the new -U option. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13303 dc483132-0cff-0310-8789-dd5450dbe970
* * authenc.c (telnet_gets): Cleanup assignment in conditionalEzra Peisach2001-06-0710-41/+164
| | | | | | | | | | | | | | | | | | | | | | | | * commands.c: Include sys/wait.h, libtelent/auth.h, libtelnet/encrypt.h for prototypes. Explicity declare functions as returning int. Assignments in conditionals cleanup. * externs.h: Add numerous prototypes. * ring.c (ring_init): Explicitly declare as returning int. * ring.h: Add prototype for ring_at_mark(). * telnet.c: Include unistd.h, libtelnet/auth.h, libtelnet/encrypt.h for prototypes. Delcare is_unique() static. Fix up format string for sprintf() to expect longs. Assignments in conditionals cleaned up. * main.c, terminal.c: Include libtelnet/encrypt.h for prototype. * utilities.c: Include sys/socket.h, libtelent/auth.h, libtelnet/encrypt.h for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13287 dc483132-0cff-0310-8789-dd5450dbe970
* * ext.h: Remove unused prototype for start_slave() and replaceEzra Peisach2001-06-076-14/+44
| | | | | | | | | | | | | | | | | 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
* * auth-proto.h: Add prototype for kerberos5_cleanup()Ezra Peisach2001-06-073-1/+22
| | | | | | | | | * enc-proto.h: Add prototypes for encrypt_printsub(), encrypt_request_sart(), encrypt_request_end(), encrypt_enc_keyid()m encrypt_dec_keyid(), encrypt_support(), encrypt_start(), encrypt_end(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13285 dc483132-0cff-0310-8789-dd5450dbe970
* * auth-proto.h: Add prototypes for getauthmask(), auth_enable,Ezra Peisach2001-06-0616-47/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth_disable(), auth_onoff(), auth_togdebug(), auth_status(), auth_name(), auth_sendname(), auth_debug(), and auth_printsub(). * auth.c: Include unistd.h and cleanup some assignments in conditionals. * auth.h: Explicitly declare auth_debug mode as an int. * enc-proto.h: Add prototypes for EncryptDisable(), EncryptType(), EncryptStart(), EncryptStartInput(), EncryptStartOutput(), EncryptStop(), EncryptStopInput(), EncryptStopOutput(), EncryptStatus(), encrypt_gen_printsub(), printsub(). * enc_des.c: Declare encrypt_debug_mode as int. Cleanup unused variables and assignments in conditionals. * encrypt.c: Include stdio.h for sprintf prototype. Cleanup assignments in conditionals. * getent.c: Conditionalize definition of some variables. * kerberos5.c: Explicitly declare auth_debug_mode an int. * misc-proto.h: Add prototype for auth_encrypt_user(). * misc.c: Include auth.h and encrypt.h for prototypes. * misc.h: Add prototypes for isprfix(), genget(), Ambiguous(). * parsetos.c: Include stdlib.h for strtol() prototype. * forward.c, kerberos.c, setenv.c: Assignment in conditional cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13280 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up small typo in lat set of commitsEzra Peisach2001-06-061-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13279 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Include "ftpd_var.h" and remove prototype for reply()Ezra Peisach2001-06-065-50/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lreply(). Add prototypes and declare as returning void sizecmd(), help() and yylex(). Cleanup assignments in conditionals. * ftpd.c: Include <grp.h> for initgroups() prototype. Move reply(), lreply() prototypes to ftpd_var.h (and include same). Include "krb524.h" for krb524_convert_creds_kdc() prototype. Include secure.h. Provide static prototypes for ftpd_gss_convert_creds(), ftpd_gss_userok(), dolog(), receive_data(), login(), end_login(), disallowed_user(), restricted_user(), checkuser(). Declare main(), checkuser(), disallowed_user(), restricted_user(), end_login(), kpass(), retreive_data(), auth_data(), secure_printf(), ftpd_gss_userok(), as returning int. Declare setdlevel(), user(), pass(), login(), retreive(), store_file(), secure_error(), statfilecmd(), stat_cmd(), fatal(), reply(), lreply(), ack(), nack(), yyerror(), delete_file(), cwd(), makedir(), removedir(), pwd(), renamecmd(), dolog(), dologout(), passive(), perror_reply(), auth(), send_file_list(), reply_gss_error(), secure_gss_error(), ftpd_gss_convert_creds(), as returning void. Cleanup printf argument mismatches. * ftpd_var.h: New header file with many prototypes from ftpd.c. * popen.c (ftpd_popen): Add parenthesis in conditional to distinguish || vs &&. Add prototype for blkfree(). (ftpd_pclose): Declare as returning int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13276 dc483132-0cff-0310-8789-dd5450dbe970
* client.c, server.c: Cleanup assignments in conditionalsEzra Peisach2001-06-053-202/+224
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13273 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogin.c: Always provide prototype for setsignal and not ifEzra Peisach2001-06-042-5/+8
| | | | | | __STDC__ is defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13264 dc483132-0cff-0310-8789-dd5450dbe970
* * login.c: Add braces around initializers. Cleanup assignments inEzra Peisach2001-06-0111-78/+135
| | | | | | | | | | | | | | | | | | | | | | | | | conditionals. Include krb524.h if KRB4_CONVERT defined. * krlogind.c (main): Cleanup unused variables. (protocol): Cleanup ambiguous if-if-else warning. * krshd.c (main): Cleanup unused variables. * krlogin.c (setsignal): Declare as void. (server_message): Cleanup unused variables. * setenv.c (setenv): Declare as returning int and clean up assignments in conditionals. * kcmd.c (kcmd, rcmd_stream_init_krb5, v5_des_read): Clean up unused variables and assignments in conditionals. * forward.c (rd_and_store_for_creds): Likewise. * krcp.c (rsource): Likewise. * v4rcp.c (answer_auth): Likewise. * krsh.c (main): Declare as retuning int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13257 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogind.c (protocol): Don't do TIOCPKT on systems with STREAMSTom Yu2001-05-252-1/+11
| | | | | | | | | | ptys, even if there is a TIOCPKT, since it may result in hangs on some systems where BSD packet mode is (presumably) not implemented properly, such as AIX 4.3.3. Should get cleaned up at some later point to actually I_PUSH "pckt" or equivalent and do translation between STREAMS and BSD style packet mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13245 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-server.c (usage): Fix usage info *again* to reflect thatDanilo Almeida2001-05-152-1/+6
| | | | | | service_name is required. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13242 dc483132-0cff-0310-8789-dd5450dbe970
* * defines.h: Fix k4cmd prototype to match kcmd.cTom Yu2001-05-114-4/+14
| | | | | | | | * kcmd.c (k4cmd): Fix to not use a narrow type. * krlogin.c: Fix prototypes so they don't include narrow types. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13240 dc483132-0cff-0310-8789-dd5450dbe970
* cmds.c: fix broken port number checkKen Raeburn2001-05-012-4/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13225 dc483132-0cff-0310-8789-dd5450dbe970
* * telnet.c (telnet): Fix grammar in some error messagesKen Raeburn2001-05-012-6/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13224 dc483132-0cff-0310-8789-dd5450dbe970
* telnetd.c (usage): Align output columns betterKen Raeburn2001-04-272-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13217 dc483132-0cff-0310-8789-dd5450dbe970
* delete support for command-line options that are no longer accepted (and ↵Ken Raeburn2001-04-272-12/+10
| | | | | | haven't been since 1999) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13216 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp_var.h: Prototype for recvrequest() needs volatileEzra Peisach2001-04-273-1/+13
| | | | | | | | | declaration to match code. Native Dec Alpha compiler errors on the inconsistancy. * secure.h (PROTOTYPE): Only define if not defined already. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13214 dc483132-0cff-0310-8789-dd5450dbe970
* assume ANSI C: delete no-volatile support, and most no-prototype supportKen Raeburn2001-04-265-10/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13201 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Don't dereference a NULL pointer returned fromTom Yu2001-04-263-20/+143
| | | | | | | | | | ftpglob(). * ftpd.c: Be more paranoid about return values from ftpglob(). Police uses of sprintf(). Account for expansion in radix_encode(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13193 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for setenv, unsetenv, and getenv. CompileTom Yu2001-04-043-2/+22
| | | | | | | | | | | setenv.c if at least of these is undefined. [pullup from krb5-1-2-2-branch] * setenv.c: Add conditionals for compilation of setenv, unsetenv, and getenv such that they only get compiled if they don't already exist. [pullup from krb5-1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13140 dc483132-0cff-0310-8789-dd5450dbe970
* * login.M: Don't include "= 0" as part of the "accept_passwd"Tom Yu2001-04-032-1/+6
| | | | | | config option. [pullup from 1.2.2] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13135 dc483132-0cff-0310-8789-dd5450dbe970
* * defines.h: Add prototypes for rcmd_stream_init_normal(),Ezra Peisach2001-03-1210-93/+173
| | | | | | | | | | | | | | rcmd_stream_init_krb4(), strsave() and rd_and_store_for_creds() * Makefile.in: Add dependency of forward.o on defines.h * forward.c: Include defines.h for prototypes. * kcmd.c, krcp.c, krlogin.c, krlogind.c, krsh.c: Provide full prototype for local functions and move include of kerberosIV/krb.h before defines.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13077 dc483132-0cff-0310-8789-dd5450dbe970
* prefer strerror() over sys_errlist[], for sparcv9-solaris2.8Ken Raeburn2001-03-088-5/+28
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13061 dc483132-0cff-0310-8789-dd5450dbe970
* * sclient.c (main): Do not free auth_context unlessEzra Peisach2001-01-302-2/+7
| | | | | | | | set. (krb5-appl/895 from tim.mann@compaq.com) Pull up from 1-2 branch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12973 dc483132-0cff-0310-8789-dd5450dbe970
* * krshd.c: Get path for NOLOGIN file from paths.h if present,Tom Yu2001-01-262-1/+17
| | | | | | | mirroring logic in login.c. [patch from David MacKenzie krb5-appl/913] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12952 dc483132-0cff-0310-8789-dd5450dbe970
* * state.c (envvarok): Disallow LC_* and NLSPATHTom Yu2001-01-262-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12946 dc483132-0cff-0310-8789-dd5450dbe970