summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * shlib.conf: Fix RUN_ENV for Irix. [pulled up from 1.2.2]Tom Yu2001-05-112-2/+22
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13238 dc483132-0cff-0310-8789-dd5450dbe970
* * logwtmp.c: Delete code under "#if 0". Fix reversed test forTom Yu2001-05-093-49/+20
| | | | | | | | | | | loggingin. Don't forget to set the ut_tv or ut_time for the entry. * update_utmp.c: Update rant about Tru64; remove fetching of ut_user from old entry. The existence of the old ut_user in the logout entry in wtmp was confusing last. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13237 dc483132-0cff-0310-8789-dd5450dbe970
* * disp_major_status.c (display_unknown): Remove unused variableEzra Peisach2001-05-084-20/+36
| | | | | | | | | | | * util_token.c (g_make_token_header): Remove incorrect cast of length argument to memcpy. * oid_ops.c (generic_gss_str_to_oid): Cast argument of isxxx() functions to int - avoids gcc warning when these are implemented as macros indexing an array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13236 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (add_host_to_list): Initialize stack variable errDanilo Almeida2001-05-082-1/+9
| | | | | | | which would otherwise get returned without being set in certain circumstances. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13235 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c: Call update_utmp() with the correct pid to assist inTom Yu2001-05-086-215/+288
| | | | | | | | | | | | | | | | | | | finding the old utmp entry. * open_ctty.c: Reformat somewhat and revise comment. * open_slave.c: Rework significantly. Primarily, keep a fd open to the slave if we need to reopen the slave device following vhangup() or revoke(), to accommodate various OS quirks. * update_utmp.c: Revise history section somewhat to document more HP-UX brokenness. Search via ut_pid before searching via ut_line. Copy stuff around because entuxent() will clobber some things. * void_assoc.c: Revise comment and reformat somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13234 dc483132-0cff-0310-8789-dd5450dbe970
* * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,Ken Raeburn2001-05-082-1/+6
| | | | | | as might happen if the DNS support is not enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13233 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is available, useKen Raeburn2001-05-082-13/+28
| | | | | | | | it instead of inet_ntoa to get the printable address. (add_host_to_list): Share declaration sections as much as possible. Propagate errors back correctly from gethostbyname path. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13232 dc483132-0cff-0310-8789-dd5450dbe970
* * open_slave.c (pty_open_slave): If revoke() present on system butEzra Peisach2001-05-042-1/+6
| | | | | | VHANG_FIRST is not defined, declare local variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13231 dc483132-0cff-0310-8789-dd5450dbe970
* * dump-utmp.c: Fix some off-by-one errors. Handle cases where weTom Yu2001-05-042-10/+18
| | | | | | have utmpname() but not utmpname(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13230 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Fix typo; VHANG_first -> VHANG_FIRSTTom Yu2001-05-043-2/+27
| | | | | | | * open_slave.c (pty_open_slave): Add workaround for Tru64 v5.0, since its revoke() will fail if the slave isn't open already. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13229 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c (pty_make_sane_hostname): Preserve constEzra Peisach2001-05-032-1/+6
| | | | | | property of incomming parameter in casts. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13228 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c (pty_cleanup): Delcare local variable only ifEzra Peisach2001-05-034-1/+21
| | | | | | | | | | | | | | | VHANG_LAST defined. * logwtmp.c (pty_logwtmp): Only declare local variables if logwtmp() not available on system. * sane_hostname.c (sockaddrlen): Only define static function if HAVE_GETNAMEINFO defined. (pty_make_sane_hostname) Declare goto target only if code compiled in. gcc warning cleanups git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13227 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Fix typo (OWRONLY -> O_WRONLY)Ken Raeburn2001-05-022-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13226 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
* * update_wtmp.c (ptyint_update_wtmpx): Add missing semi-colon inEzra Peisach2001-05-012-1/+6
| | | | | | code path if PTY_UTMP_E_EXIT and PTY_UTMPX_E_EXIT exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13223 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix some quoting of shell variables when passingTom Yu2001-04-304-23/+46
| | | | | | | | | | | | | | to "test". Reorder some logic in consistency checks to validate cache variables against "yes" to account for possible empty or nonexistent values. * pty-int.h: Fix conditional prototype of update_wtmp(). * update_wtmp.c: Fix conditional compilation of update_wtmp() to cover the case where we have setutxent() but don't have updwtmpx() and WTMPX_FILE, as is the case on some Linux installations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13222 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in(K5_CHECK_UT_MEMBER): Fix typo in previous; makeTom Yu2001-04-282-1/+5
| | | | | | | sure to include the correct header when checking structure members. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13219 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Many changes to support the rewriting of the utmpTom Yu2001-04-289-398/+1111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pieces of libpty. Do a large amount of checking for consistency of various utmp and utmpx APIs as currently understood. See rant in update_utmp.c. * dump-utmp.c: Rewrite; now has capability to use utmp{,x}name() to extract entries from utmp and utmpx files. Adjusts field widths when printing as appropriate. * libpty.h: Update call signature for update_utmp() and logwtmp(); make prototypes unconditional. * logwtmp.c: Rewrite. Use pututline() or pututxline() API whenever possible. * pty-int.h: Update call signatures for update_wtmp{,x}(); make prototypes unconditional. * sane_hostname.c: Use the autoconf-correct macro names. * update_utmp.c: Rewrite. Basically, use functions from the pututline() or pututxline() API whenever possible, to avoid lossage. Inserted large rant about the conjectured history of BSD utmp, sysV utmp, and utmpx, as well as documentation about some known quirks. * update_wtmp.c: Rewrite. Add new function ptyint_logwtmpx() that takes a utmpx rather than a utmp, so it can fail to lose data converting to and from utmp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13218 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
* * aclocal.m4 (DECLARE_SYS_ERRLIST): Check for sys_nerr with anKen Raeburn2001-04-272-6/+22
| | | | | | | | | | | | expression that can't be optimized away. (KRB5_INIT_CCOPTS): New macro. (WITH_CC): Add gcc warning flags to CCOPTS instead of CC. Add option -Wno-comment to stop gcc from complaining about SunOS system header files. Call AC_REQUIRE on KRB5_INIT_CCOPTS. (WITH_CCOPTS): Add to CCOPTS instead of simply assigning to it. Call AC_REQUIRE on KRB5_INIT_CCOPTS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13215 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
* .cvsignore: Add stamp-h.inEzra Peisach2001-04-272-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13213 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Allow for "no credentials cache found" error minorTom Yu2001-04-272-1/+9
| | | | | | code from GSSAPI. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13212 dc483132-0cff-0310-8789-dd5450dbe970
* back out accidental check-inKen Raeburn2001-04-263-28/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13209 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_creds.c (broken, krb524_convert_creds_plain): Unused code deletedKen Raeburn2001-04-265-60/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13208 dc483132-0cff-0310-8789-dd5450dbe970
* add some commentsKen Raeburn2001-04-261-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13207 dc483132-0cff-0310-8789-dd5450dbe970
* hst_realm.c (T_TXT): Define if not defined by header filesKen Raeburn2001-04-262-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13206 dc483132-0cff-0310-8789-dd5450dbe970
* use new internal interface for locating serversKen Raeburn2001-04-262-15/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13205 dc483132-0cff-0310-8789-dd5450dbe970
* implement and use new internal interface for locating serversKen Raeburn2001-04-266-445/+672
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13204 dc483132-0cff-0310-8789-dd5450dbe970
* new internal library interface for locating serversKen Raeburn2001-04-262-19/+78
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13203 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_INET6): Don't look for getipnodebyname, getipnodebyaddrKen Raeburn2001-04-262-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13202 dc483132-0cff-0310-8789-dd5450dbe970
* assume ANSI C: delete no-volatile support, and most no-prototype supportKen Raeburn2001-04-2626-98/+68
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13201 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Don't look for getipnodebyaddrKen Raeburn2001-04-262-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13200 dc483132-0cff-0310-8789-dd5450dbe970
* * klist.c (one_addr): Drop getipnodebyaddr supportKen Raeburn2001-04-262-11/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13199 dc483132-0cff-0310-8789-dd5450dbe970
* back out changes that shouldn't have been checked in yetKen Raeburn2001-04-265-646/+434
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13198 dc483132-0cff-0310-8789-dd5450dbe970
* localaddr.c (foreach_localaddr): support SIOCGIFNUM, for SolarisKen Raeburn2001-04-267-434/+661
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13197 dc483132-0cff-0310-8789-dd5450dbe970
* update copyright yearsKen Raeburn2001-04-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13196 dc483132-0cff-0310-8789-dd5450dbe970
* move socklen_t, socklen handling from krb5 library to include/k5-int.hKen Raeburn2001-04-269-50/+60
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13195 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
* test.c: Always include stdlib.hEzra Peisach2001-04-252-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13192 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add lclint supportEzra Peisach2001-04-256-24/+100
| | | | | | | | | | | | | | * dyn.h: Lclint annotate functions. * dyn_create.c (DynCreate): Do not assume that malloc(0) is valid and returns a valid pointer. Fix memory leak if malloc fails. * dyn_realloc.c (_DynResize): Turn off warning of shifting a signed variable. * test.c: Check the return values of all library calls. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13191 dc483132-0cff-0310-8789-dd5450dbe970
* * tcl_kadm5.c, tcl_ovsec_kadm.c: Cleanup of assignments inEzra Peisach2001-04-253-95/+123
| | | | | | conditionals, missing prototypes, etc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13190 dc483132-0cff-0310-8789-dd5450dbe970
* kdb_dbm.c (destroy_file_suffix): Declare as staticEzra Peisach2001-04-252-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13189 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: For Kerberos 4 tests, use a different ticket fileEzra Peisach2001-04-252-1/+6
| | | | | | name from the V5 tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13188 dc483132-0cff-0310-8789-dd5450dbe970
* * client.c (main): Ensure that end of string is NULL terminatedEzra Peisach2001-04-242-9/+22
| | | | | | | instead of assuming buffer initialized to 0. Include <string.h> for memset prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13187 dc483132-0cff-0310-8789-dd5450dbe970
* * util_crypt.c (kg_make_confounder): Change variable random toEzra Peisach2001-04-242-4/+9
| | | | | | lrandom to prevent shadowing of global function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13186 dc483132-0cff-0310-8789-dd5450dbe970
* update info on Solaris; add BSD/OSKen Raeburn2001-04-241-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13185 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (unixmac): Target deletedKen Raeburn2001-04-1710-17/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13184 dc483132-0cff-0310-8789-dd5450dbe970