krb5.git
22 years ago* rcp.M: Document -f and -t options as internal use only
Ken Raeburn [Fri, 8 Mar 2002 10:35:04 +0000 (10:35 +0000)]
* rcp.M: Document -f and -t options as internal use only

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14252 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoRevert getaddrinfo changes in krb5-only code from 2-10. Factor out common
Ken Raeburn [Fri, 8 Mar 2002 10:30:02 +0000 (10:30 +0000)]
Revert getaddrinfo changes in krb5-only code from 2-10.  Factor out common
krb4 and krb5 code into separate functions.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14251 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodon't use k5-int.h here
Ken Raeburn [Thu, 7 Mar 2002 23:57:44 +0000 (23:57 +0000)]
don't use k5-int.h here

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14250 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoattribution for log entry
Ken Raeburn [Thu, 7 Mar 2002 09:52:43 +0000 (09:52 +0000)]
attribution for log entry

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14245 dc483132-0cff-0310-8789-dd5450dbe970

22 years agotest suite updates from 1.2.x - mostly testing 8-bit-kvno workarounds
Ken Raeburn [Thu, 7 Mar 2002 03:13:51 +0000 (03:13 +0000)]
test suite updates from 1.2.x - mostly testing 8-bit-kvno workarounds

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14244 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago8-bit-kvno workarounds from 1.2.4
Ken Raeburn [Thu, 7 Mar 2002 01:54:59 +0000 (01:54 +0000)]
8-bit-kvno workarounds from 1.2.4

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14243 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (LIBMINOR): Bump due to changes in error tables
Ken Raeburn [Thu, 7 Mar 2002 01:48:00 +0000 (01:48 +0000)]
* Makefile.in (LIBMINOR): Bump due to changes in error tables

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14242 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb5_err.et: Change several "credentials cache file" messages to just say
Ken Raeburn [Thu, 7 Mar 2002 01:45:55 +0000 (01:45 +0000)]
* krb5_err.et: Change several "credentials cache file" messages to just say
"credentials cache", so as to be applicable in the ccapi case too.  (Miro's
change from 1.2.x branch.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14241 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* kts_g_ent.c (krb5_ktsrvtab_get_entry): If a specific DES enctype was
Ken Raeburn [Thu, 7 Mar 2002 01:43:09 +0000 (01:43 +0000)]
* kts_g_ent.c (krb5_ktsrvtab_get_entry): If a specific DES enctype was
requested, set the key's enctype to it, instead of always returning
des-cbc-crc.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14240 dc483132-0cff-0310-8789-dd5450dbe970

22 years agolog entry for fwd_tgt change accidentally checked in without log entry
Ken Raeburn [Thu, 7 Mar 2002 01:10:46 +0000 (01:10 +0000)]
log entry for fwd_tgt change accidentally checked in without log entry

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14239 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* ser_actx.c (krb5_auth_context_externalize): Do bounds checking on converted size...
Ken Raeburn [Thu, 7 Mar 2002 01:09:33 +0000 (01:09 +0000)]
* ser_actx.c (krb5_auth_context_externalize): Do bounds checking on converted size value

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14238 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb524d.c (lookup_service_key): Copy key block and free up keytab entry data
Ken Raeburn [Thu, 7 Mar 2002 00:54:58 +0000 (00:54 +0000)]
* krb524d.c (lookup_service_key): Copy key block and free up keytab entry data

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14237 dc483132-0cff-0310-8789-dd5450dbe970

22 years agorestore krb5_const definition, with a warning it's deprecated
Ken Raeburn [Thu, 7 Mar 2002 00:40:40 +0000 (00:40 +0000)]
restore krb5_const definition, with a warning it's deprecated

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14236 dc483132-0cff-0310-8789-dd5450dbe970

22 years agomore verbose reporting of unexpected errors
Ken Raeburn [Thu, 7 Mar 2002 00:29:07 +0000 (00:29 +0000)]
more verbose reporting of unexpected errors

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14235 dc483132-0cff-0310-8789-dd5450dbe970

22 years agochanges from 1.2.4 branch
Ken Raeburn [Thu, 7 Mar 2002 00:28:22 +0000 (00:28 +0000)]
changes from 1.2.4 branch

* loginpaths.h [_PATH_DEFPATH]: Undefine LPATH and RPATH unconditionally before
redefining them.

* login.c (main): If the supplied name is longer than the utmp buffer, don't
bother trying it as a username.
(dolastlog): Don't assume lastlog.ll_time is a time_t.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14234 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoshlib version number updates from 1.2.x branch
Ken Raeburn [Thu, 7 Mar 2002 00:25:22 +0000 (00:25 +0000)]
shlib version number updates from 1.2.x branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14233 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodefine "unix" on BSD
Ken Raeburn [Thu, 7 Mar 2002 00:21:38 +0000 (00:21 +0000)]
define "unix" on BSD

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14232 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* foreachaddr.c (SLOP): New macro.
Ken Raeburn [Wed, 6 Mar 2002 01:20:45 +0000 (01:20 +0000)]
* foreachaddr.c (SLOP): New macro.
(foreach_localaddr): Use it as the amount of extra space we look for past the
ifreq structures actually filled in.  Add SLOP to the size of the buffer
allocated to hold the ifreq structures.  Place an upper bound on the buffer
size.  Don't crash if the returned ifc_len is larger than the supplied buffer
size.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14226 dc483132-0cff-0310-8789-dd5450dbe970

22 years agomake a log entry more readable
Ken Raeburn [Wed, 6 Mar 2002 01:15:07 +0000 (01:15 +0000)]
make a log entry more readable

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14225 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoCommit patch to accept both encrypted and unencrypted credentials for Heimdal interop
Sam Hartman [Sun, 3 Mar 2002 23:32:01 +0000 (23:32 +0000)]
Commit patch to accept both encrypted and unencrypted credentials for Heimdal interop

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14215 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago2002-03-02 Sam Hartman <hartmans@mit.edu>
Sam Hartman [Sun, 3 Mar 2002 03:05:40 +0000 (03:05 +0000)]
2002-03-02  Sam Hartman  <hartmans@mit.edu>

* server_acl.c (acl_find_entry):  Patch from sxw@sxw.org.uk:
patch to correct handling of ACL targets.  Previous patch from
Matt Crawford  seems to only work for * targets where it ignores
the restrictions.  This patch seems to work for all the semantics
described in MATt's original message, at least as far as I tested.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14214 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoSet umask to 077 to avoid public srvtabs
Sam Hartman [Sun, 3 Mar 2002 01:10:01 +0000 (01:10 +0000)]
Set umask to 077 to avoid public srvtabs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14213 dc483132-0cff-0310-8789-dd5450dbe970

22 years agofieldbits.h: Deleted
Ken Raeburn [Wed, 27 Feb 2002 22:45:34 +0000 (22:45 +0000)]
fieldbits.h: Deleted

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14169 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoFix indentation I broke
Sam Hartman [Wed, 27 Feb 2002 21:33:43 +0000 (21:33 +0000)]
Fix indentation I broke

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14167 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoDisable address checking in krb_rd_cred. No objections raised on
Sam Hartman [Wed, 27 Feb 2002 21:24:58 +0000 (21:24 +0000)]
Disable address checking in krb_rd_cred.  No objections raised on
krbdev; helps NAT and Heimdal interoperability.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14166 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* krb5.hin, k5-int.h: Use const instead of krb5_const.
Ken Raeburn [Sat, 23 Feb 2002 03:31:09 +0000 (03:31 +0000)]
* krb5.hin, k5-int.h: Use const instead of krb5_const.
* krb5.hin (krb5_const): Deleted definition.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14163 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUse const instead of krb5_const.
Ken Raeburn [Sat, 23 Feb 2002 03:23:58 +0000 (03:23 +0000)]
Use const instead of krb5_const.
Use stdarg always, never varargs.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14162 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoUse const instead of krb5_const
Ken Raeburn [Sat, 23 Feb 2002 03:20:52 +0000 (03:20 +0000)]
Use const instead of krb5_const

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14161 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * default.exp (start_kerberos_daemons): In starting the kadmin
Ezra Peisach [Thu, 21 Feb 2002 00:38:38 +0000 (00:38 +0000)]
    * default.exp (start_kerberos_daemons): In starting the kadmin
        daemon, the last line in the log file might read "Seeding random
        number" for a second. If that is the case, wait three seconds and
        refetch the last line of the log file to look for the "starting
        kadmind message"

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14158 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* network.c: Include foreachaddr.c.
Ken Raeburn [Wed, 20 Feb 2002 05:12:06 +0000 (05:12 +0000)]
* network.c: Include foreachaddr.c.
(printaddr, printifaddr, addr_eq, foreach_localaddr): Deleted.
* Makefile.in ($(OUTPRE)network.$(OBJEXT)): Updated dependencies.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14157 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* localaddr.c: Include foreachaddr.c.
Ken Raeburn [Wed, 20 Feb 2002 05:10:07 +0000 (05:10 +0000)]
* localaddr.c: Include foreachaddr.c.
(printaddr, printifaddr, addr_eq, grow_or_free, get_ifconf, get_lifconf,
get_linux_ipv6_addrs, foreach_localaddr): Deleted.
* Makefile.in (localaddr.o): Update dependencies.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14156 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* foreachaddr.c: New file, contents taken from code shared between
Ken Raeburn [Wed, 20 Feb 2002 05:06:43 +0000 (05:06 +0000)]
* foreachaddr.c: New file, contents taken from code shared between
kdc/network.c and lib/krb5/os/localaddr.c.  Split out multiple branches within
foreach_localaddr into separate functions.  Fixed a couple minor compiler
warnings on Linux.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14155 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* run.test: Use "/bin/." instead of "/bin" in find commands in case /bin itself
Ken Raeburn [Wed, 20 Feb 2002 01:12:36 +0000 (01:12 +0000)]
* run.test: Use "/bin/." instead of "/bin" in find commands in case /bin itself
is a symlink.
(test8): Check exit status of dbtest program.

* dbtest.c (compare): Exit with error indication if comparison of contents
indicates a difference.
(get): Exit with error indication after printing message if key not found.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14154 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (LIBMINOR): Bump
Ken Raeburn [Wed, 20 Feb 2002 00:40:52 +0000 (00:40 +0000)]
* Makefile.in (LIBMINOR): Bump

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14153 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (LIBMINOR): Bump
Ken Raeburn [Wed, 20 Feb 2002 00:35:22 +0000 (00:35 +0000)]
* Makefile.in (LIBMINOR): Bump

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14152 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* default.exp (start_kerberos_daemons): When standalone, delete KDC replay
Ken Raeburn [Tue, 19 Feb 2002 21:37:31 +0000 (21:37 +0000)]
* default.exp (start_kerberos_daemons): When standalone, delete KDC replay
cache before starting it up.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14148 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.c (_XOPEN_SOURCE_EXTENDED): Define if not defined, and if not
Ken Raeburn [Tue, 19 Feb 2002 21:34:13 +0000 (21:34 +0000)]
* fake-addrinfo.c (_XOPEN_SOURCE_EXTENDED): Define if not defined, and if not
Mac or Windows, for duration of inclusion of netdb.h.  This gets us the h_errno
declaration on HP-UX.
(getnameinfo): Cast gethostbyaddr pointer arg to char *, not sockaddr *.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14147 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate copyright
Ken Raeburn [Tue, 19 Feb 2002 21:32:03 +0000 (21:32 +0000)]
update copyright

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14146 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate hst_realm dependencies
Ken Raeburn [Thu, 14 Feb 2002 21:47:56 +0000 (21:47 +0000)]
update hst_realm dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14145 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate copyright dates
Ken Raeburn [Thu, 14 Feb 2002 21:45:28 +0000 (21:45 +0000)]
update copyright dates

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14144 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoChange krb5 kcmd to use getaddrinfo, and add some hooks for future ipv6
Ken Raeburn [Mon, 11 Feb 2002 00:15:47 +0000 (00:15 +0000)]
Change krb5 kcmd to use getaddrinfo, and add some hooks for future ipv6
support.

* defines.h: Include fake-addrinfo.h.
(FAI_PREFIX): Define.
(getport): Update.
* kcmd.c: Include fake-addrinfo.c.
(kcmd): Use getaddrinfo instead of gethostbyname, but only get AF_INET
addresses for now.
(k4cmd): Update argument list to getport.
(getport): Accept new argument, pointer to address family to use.  If zero, try
inet6 and then inet.
* krshd.c (doit): Update argument list to getport.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14140 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* fake-addrinfo.h: Always check for FAI_PREFIX, not just when fake getaddrinfo
Ken Raeburn [Sun, 10 Feb 2002 23:53:55 +0000 (23:53 +0000)]
* fake-addrinfo.h: Always check for FAI_PREFIX, not just when fake getaddrinfo
support is needed.
(fixup_addrinfo): Declare.
* fake-addrinfo.c (fixup_addrinfo): New function, fixes up breakage in AIX and
GNU implementations (so far) of getaddrinfo.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14139 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoget local ipv6 addresses on linux
Ken Raeburn [Sun, 10 Feb 2002 07:07:19 +0000 (07:07 +0000)]
get local ipv6 addresses on linux

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14138 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoprof_init.c, prof_tree.c: Fixed calls to profile_update_file/profile_open_file to...
Alexandra Ellwood [Wed, 23 Jan 2002 15:55:53 +0000 (15:55 +0000)]
prof_init.c, prof_tree.c: Fixed calls to profile_update_file/profile_open_file to handle the possibility that we have lost permission to read one of the configuration files in the file list (say it's in AFS).  We should only fail catastrophically if we can't read all of the files in the profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14116 dc483132-0cff-0310-8789-dd5450dbe970

22 years agokrb5_princ_realm returns a pointer to krb5_data
Sam Hartman [Tue, 15 Jan 2002 20:54:30 +0000 (20:54 +0000)]
krb5_princ_realm returns a pointer to krb5_data

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14113 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoReflect correct values for current code
Sam Hartman [Tue, 15 Jan 2002 02:27:59 +0000 (02:27 +0000)]
Reflect correct values for current code

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14112 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoDon't right shift by 32
Sam Hartman [Mon, 14 Jan 2002 19:06:37 +0000 (19:06 +0000)]
Don't right shift by 32

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14108 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* hst_realm.c (EAFNOSUPPORT): On Windows, translate to WSAEAFNOSUPPORT
Ken Raeburn [Wed, 9 Jan 2002 22:15:21 +0000 (22:15 +0000)]
* hst_realm.c (EAFNOSUPPORT): On Windows, translate to WSAEAFNOSUPPORT

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14104 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* Makefile.in (t_localaddr): Link against $(LIBS)
Ken Raeburn [Wed, 9 Jan 2002 03:58:11 +0000 (03:58 +0000)]
* Makefile.in (t_localaddr): Link against $(LIBS)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14102 dc483132-0cff-0310-8789-dd5450dbe970

22 years agolog msg for getaddrinfo error codes
Ken Raeburn [Wed, 9 Jan 2002 03:57:17 +0000 (03:57 +0000)]
log msg for getaddrinfo error codes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14101 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoSplit out code for getting canonical name of local host, change it to use
Ken Raeburn [Wed, 9 Jan 2002 03:56:32 +0000 (03:56 +0000)]
Split out code for getting canonical name of local host, change it to use
getaddrinfo, and make both sites call the new function.  Added new error codes
to report getaddrinfo failures that don't translate to standard errno codes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14100 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoupdate comment
Ken Raeburn [Wed, 9 Jan 2002 03:26:16 +0000 (03:26 +0000)]
update comment

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14099 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only if IPv6 support...
Ken Raeburn [Wed, 9 Jan 2002 03:25:02 +0000 (03:25 +0000)]
* socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only if IPv6 support is turned on

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14098 dc483132-0cff-0310-8789-dd5450dbe970

22 years agodo database expansion from tcl driver code
Ken Raeburn [Wed, 9 Jan 2002 02:23:35 +0000 (02:23 +0000)]
do database expansion from tcl driver code

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14097 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * shlib.conf: Fix hpux to deal with building shared libs with gcc.
Tom Yu [Wed, 9 Jan 2002 00:46:52 +0000 (00:46 +0000)]
* shlib.conf: Fix hpux to deal with building shared libs with gcc.
Patch from Doug Engert; fixes krb5-build/1021.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14096 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago * crc.pl: New file; perl script to do generate some test vectors
Tom Yu [Wed, 9 Jan 2002 00:20:17 +0000 (00:20 +0000)]
* crc.pl: New file; perl script to do generate some test vectors
and CRC tables.

* CRC.pm: New file; perl module to implement CRCs in terms of
polynomial arithmetic (verrrry slooow).

* Poly.pm: New file; perl module to do polynomial arithmetic in
the field of integers mod 2.

* t_crc.c: New file; do some sanity checks (and timing checks,
more useful when building shift-4 as well).

* Makefile.in (check-unix): Add rules for building, running
t_crc.

* crc32.c (mit_crc32_shift4): Add new function, usually not
compiled, for shift-4 implementation of CRC32.

* crc-32.h: Add (conditionalized) prototype for the shift-4
function; remove checksum_entry (it's no longer used).

* crctest.c: Removed.

* crc-test: Removed.

* crc.c: Removed.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14095 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* shlib.conf: For Linux, always add "-lc" at the end of the link command
Ken Raeburn [Tue, 8 Jan 2002 23:51:44 +0000 (23:51 +0000)]
* shlib.conf: For Linux, always add "-lc" at the end of the link command

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14094 dc483132-0cff-0310-8789-dd5450dbe970

22 years ago* libobj.in (config.status): Depend on shlib.conf
Ken Raeburn [Tue, 8 Jan 2002 23:51:09 +0000 (23:51 +0000)]
* libobj.in (config.status): Depend on shlib.conf

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14093 dc483132-0cff-0310-8789-dd5450dbe970

22 years agofix bug with inconsistent result codes when homedir isn't accessible but / is
Ken Raeburn [Tue, 8 Jan 2002 23:49:54 +0000 (23:49 +0000)]
fix bug with inconsistent result codes when homedir isn't accessible but / is

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14092 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoKDC support for new PRNG
Sam Hartman [Tue, 8 Jan 2002 20:43:03 +0000 (20:43 +0000)]
KDC support for new PRNG

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14090 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoGet strong random bits at kadmind startup
Sam Hartman [Tue, 8 Jan 2002 19:27:00 +0000 (19:27 +0000)]
Get strong random bits at kadmind startup
provide better error message for current round of keytab not found

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14089 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoAssign entropy source identifier
Sam Hartman [Tue, 8 Jan 2002 17:42:31 +0000 (17:42 +0000)]
Assign entropy source identifier

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14088 dc483132-0cff-0310-8789-dd5450dbe970

22 years agoImplement code to get random data from /dev/{random,urandom}. For
Sam Hartman [Tue, 8 Jan 2002 14:38:44 +0000 (14:38 +0000)]
Implement code to get random data from /dev/{random,urandom}.  For
init_context use /dev/urandom; for database creation use /dev/random
if it exists.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14087 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoCheck test results more carefully.
Ken Raeburn [Fri, 4 Jan 2002 05:06:11 +0000 (05:06 +0000)]
Check test results more carefully.
Fix big-endian-64-bit bug in btree implementation (for sparcv9).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14086 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * main.c (main, init_realm): Get rid of variables set but never used
Ezra Peisach [Fri, 14 Dec 2001 20:53:39 +0000 (20:53 +0000)]
* main.c (main, init_realm): Get rid of variables set but never used

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14073 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Local return
Ezra Peisach [Fri, 14 Dec 2001 20:48:17 +0000 (20:48 +0000)]
* svc_auth_gssapi.c (_gssrpc_svcauth_gssapi): Local return
variable declared enum auth_stat instead of int.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14072 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * hmac_md5.c (k5_hmac_md5_hash): Test if malloc returns NULL and
Ezra Peisach [Fri, 14 Dec 2001 18:45:28 +0000 (18:45 +0000)]
* hmac_md5.c (k5_hmac_md5_hash): Test if malloc returns NULL and
not the argument to malloc.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14071 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * kdc_util.c (subrealm, add_to_transited): Unsigned vs. signed int
Ezra Peisach [Tue, 11 Dec 2001 17:51:58 +0000 (17:51 +0000)]
* kdc_util.c (subrealm, add_to_transited): Unsigned vs. signed int
fixes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14064 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoFix typo in #ifdef KRB5_KRB4_COMPAT. Thanks to rbasch@mit.edu
Danilo Almeida [Mon, 10 Dec 2001 20:46:19 +0000 (20:46 +0000)]
Fix typo in #ifdef KRB5_KRB4_COMPAT.  Thanks to rbasch@mit.edu

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14062 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * ktf_g_ent.c (krb5_ktfile_get_entry): Coerce enctype for now to
Tom Yu [Sat, 8 Dec 2001 02:00:19 +0000 (02:00 +0000)]
* ktf_g_ent.c (krb5_ktfile_get_entry): Coerce enctype for now to
restore 1.0.x enctype similarity behavior.
[pullup from 1.2.3]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14060 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * ftpcmd.y (pathname): Handle returns from ftpglob() better so
Tom Yu [Sat, 8 Dec 2001 01:58:07 +0000 (01:58 +0000)]
* ftpcmd.y (pathname): Handle returns from ftpglob() better so
that errors get sent via reply(), while causing some match
failures to match to simply return $1, so the higher level can
deal.  Previously, some failures would cause synch problems since
NULL would be returned and no reply was sent.
[pullup from 1.2.3]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14059 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * glob.c (execbrc): Fix some fencepost errors. Don't copy
Tom Yu [Sat, 8 Dec 2001 01:57:48 +0000 (01:57 +0000)]
* glob.c (execbrc): Fix some fencepost errors.  Don't copy
uninitialized memory past the end of the pattern string.  Don't
increment pointer beyond string end.
[pullup from 1.2.3]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14058 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * update_utmp.c (PTY_GETUTXENT): Fix typo. Thanks to Shawn
Tom Yu [Sat, 8 Dec 2001 01:57:17 +0000 (01:57 +0000)]
* update_utmp.c (PTY_GETUTXENT): Fix typo.  Thanks to Shawn
Stepper. [fixes krb5-build/1020]
[pullup from 1.2.3]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14057 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * k5-int.h (krb5int_des_init_state): Change variable name in
Ezra Peisach [Fri, 7 Dec 2001 19:24:40 +0000 (19:24 +0000)]
* k5-int.h (krb5int_des_init_state): Change variable name in
prototype away from usage.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14055 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure to
Ezra Peisach [Fri, 7 Dec 2001 19:20:17 +0000 (19:20 +0000)]
* clnt_raw, clnt_tcp.c, clnt_udp.c: Use a union structure to
ensure argument alignment.

* pmap_clnt.c, pmap_clnt.h (pmap_set): Change port argument to int
to avoid width warnings.

* rpc_callmsg.c (xdr_callmsg): Cast argument to XDR_INLINE to
avoid signed vs. unsigned warning.

* svc.c: Cast assignment to avoid signed warning.

* xdr.c (xdr_u_short, xdr_u_long): cast pointers to long * in
invocation of XDR_PUTLONG.

* xdr_alloc.c (xdralloc_putbytes): Cast argument to DynInsert to
avoid signed/unsigned warning.

* auth_gssapi.c, svc_auth_gssapi, xdr_rec.c: Cast arguments to
avoid alignment warnings.

* svc_tcp.c, xdr_stdio.c: Cast argument to fread/fwrite/read/write.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14054 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS
Ezra Peisach [Thu, 6 Dec 2001 19:02:05 +0000 (19:02 +0000)]
* configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS

* kprop.c, kpropd.c: Use GETSOCKNAME_ARG3_TYPE and
GETPEERNAME_ARG3_TYPE.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14051 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * krcp.c, krlogin.c, krlogind.c, krsh.c, krshd.c, login.c,
Ezra Peisach [Thu, 6 Dec 2001 18:27:06 +0000 (18:27 +0000)]
    * krcp.c, krlogin.c, krlogind.c, krsh.c, krshd.c, login.c,
        setenv.c, v4rcp.c: Signed v.s unsigned int cleanup.

        * defines.h: rcmd_stream_{read,write} take size_t as length argument.

        * kcmd.c: Use GETSOCKNAME_ARG3_TYPE instead of assuming int. input
        and output handler take size_t as length argument instead of
        int. Other signed vs. unsigned fixes.

        * configure.in: Add KRB5_GETSOCKNAME_ARGS.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14050 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
Ezra Peisach [Wed, 5 Dec 2001 23:30:25 +0000 (23:30 +0000)]
    * string_to_key.c (krb5_arcfour_string_to_key): Use size_t instead
        of int for local variable.
        (asctouni): Length argument now size_t instead of int.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14049 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * t_encrypt.c (main): Free memory when finished to test for memory
Ezra Peisach [Wed, 5 Dec 2001 23:30:00 +0000 (23:30 +0000)]
* t_encrypt.c (main): Free memory when finished to test for memory
leaks.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14048 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned.
Ezra Peisach [Wed, 5 Dec 2001 23:16:28 +0000 (23:16 +0000)]
* yarrow.c (krb5int_yarrow_stretch): Delare local variable unsigned.
(krb5int_yarrow_init): Zero cipher context on init.

* yhash.h (HASH_Final): Use a variable other than out (shadow in
yarrow.c)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14047 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * shs.c, shs.h (shsUpdate): Declare second argument as const
Ezra Peisach [Wed, 5 Dec 2001 23:14:30 +0000 (23:14 +0000)]
* shs.c, shs.h (shsUpdate): Declare second argument as const

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14046 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoFix typo in last checkin
Ezra Peisach [Wed, 5 Dec 2001 22:49:34 +0000 (22:49 +0000)]
Fix typo in last checkin

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14045 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * rsh.exp: Fix date-grabbing regexp to deal with older versions of
Ezra Peisach [Wed, 5 Dec 2001 22:26:52 +0000 (22:26 +0000)]
   * rsh.exp: Fix date-grabbing regexp to deal with older versions of
        expect/tcl that have limited regexp capabilities.

Pullup from 1-2-3 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14044 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * krb524d.c (cleanup_and_exit): Call krb5_klog_close()
Ezra Peisach [Wed, 5 Dec 2001 12:07:41 +0000 (12:07 +0000)]
    * krb524d.c (cleanup_and_exit): Call krb5_klog_close()

        * encode.c (encode_bytes, decode_bytes): Make length field
        unsigned to clean up unsigned/signed warnings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * t_ser.c (main): Free context on failure exit route
Ezra Peisach [Wed, 5 Dec 2001 12:03:18 +0000 (12:03 +0000)]
    * t_ser.c (main): Free context on failure exit route

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14042 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * sendto_kdc.c (krb5_sendto_kdc): Get rid of unecessary casts
Ezra Peisach [Wed, 5 Dec 2001 12:02:10 +0000 (12:02 +0000)]
    * sendto_kdc.c (krb5_sendto_kdc): Get rid of unecessary casts

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14041 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * t_cksum.c (main): Free memory leak in tests
Ezra Peisach [Wed, 5 Dec 2001 12:01:17 +0000 (12:01 +0000)]
    * t_cksum.c (main): Free memory leak in tests

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14040 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * test_profile.c (main): Call profile_release() before exiting
Ezra Peisach [Wed, 5 Dec 2001 11:58:54 +0000 (11:58 +0000)]
    * test_profile.c (main): Call profile_release() before exiting
        in case of error return. (memory leak testing)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14039 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * gss-client.c, gss-misc.c, gss-server.c: Cast buffer length to
Ezra Peisach [Wed, 5 Dec 2001 11:39:39 +0000 (11:39 +0000)]
    * gss-client.c, gss-misc.c, gss-server.c: Cast buffer length to
        int in length argument for printf.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14038 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoFix documentation bug
Sam Hartman [Tue, 4 Dec 2001 01:04:12 +0000 (01:04 +0000)]
Fix documentation bug

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14035 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago* klist.c (flags_string): Display transit-policy-checked, ok-as-delegate, and anonymo...
Ken Raeburn [Wed, 28 Nov 2001 23:51:11 +0000 (23:51 +0000)]
* klist.c (flags_string): Display transit-policy-checked, ok-as-delegate, and anonymous ticket flags

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14029 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago* ms2mit.c: Make sure we get a des-cbc-crc session key instead of
Danilo Almeida [Wed, 28 Nov 2001 21:20:38 +0000 (21:20 +0000)]
* ms2mit.c: Make sure we get a des-cbc-crc session key instead of
potentially getting whatever happens to be in the cache.  Remove
unnecessary static variables.  Make function headers use a
consistent format.  Rename ShowLastError() to ShowWinError() and
ShowNTError() to ShowLsaError().

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14024 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * api.2/init-v2.exp: For test 101 failure, change port number 1 -
Ezra Peisach [Tue, 27 Nov 2001 17:17:55 +0000 (17:17 +0000)]
* api.2/init-v2.exp: For test 101 failure, change port number 1 -
which is used by tcpmux under Irix, to 4 - which is unassigned by
IANA.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14021 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago 2001-11-24 Sam Hartman <hartmans@mit.edu>
Sam Hartman [Mon, 26 Nov 2001 20:43:10 +0000 (20:43 +0000)]
 2001-11-24  Sam Hartman  <hartmans@mit.edu>

  * fwd_tgt.c (krb5_fwd_tgt_creds): Get a session key for the
  forwarded tgt that is the same as the  session key for  the
  auth_context.  This  is an enctype we know the remote side
  supports.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14019 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoAdd entropy source identifiers for random seed calls
Sam Hartman [Mon, 26 Nov 2001 20:37:46 +0000 (20:37 +0000)]
Add entropy source identifiers for random seed calls

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14018 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoOn fork, perturb the PRNG stream in the child
Sam Hartman [Wed, 21 Nov 2001 21:28:14 +0000 (21:28 +0000)]
On fork, perturb the PRNG stream in the child

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14016 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoexport krb5_set_default_tgs_enctypes
Sam Hartman [Tue, 20 Nov 2001 18:34:03 +0000 (18:34 +0000)]
export krb5_set_default_tgs_enctypes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14014 dc483132-0cff-0310-8789-dd5450dbe970

23 years ago * Makefile.in (check-unix): Use $(srcdir) in file specification
Ezra Peisach [Tue, 20 Nov 2001 17:03:24 +0000 (17:03 +0000)]
* Makefile.in (check-unix): Use $(srcdir) in file specification
for input to t_prng.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14011 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoAdd regression test
Sam Hartman [Tue, 20 Nov 2001 00:59:19 +0000 (00:59 +0000)]
Add regression test

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14010 dc483132-0cff-0310-8789-dd5450dbe970

23 years agoWork around hash using host byte order
Sam Hartman [Tue, 20 Nov 2001 00:26:54 +0000 (00:26 +0000)]
Work around hash using host byte order

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14009 dc483132-0cff-0310-8789-dd5450dbe970