Ken Raeburn [Thu, 28 Mar 2002 02:16:14 +0000 (02:16 +0000)]
* krb5.hin: Don't include <sys/types.h> any more.
* Makefile.in (krb5.h): Don't put HAVE_STDARG_H or HAVE_SYS_TYPE_H symbols into
output.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14297
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 28 Mar 2002 02:13:19 +0000 (02:13 +0000)]
* fake-addrinfo.h [NEED_FAKE_GETADDRINFO]: Include errno.h.
(fake_getnameinfo) [__GNUC__ && __mips__]: Use const when
referencing bytes of supplied address.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14296
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Wed, 27 Mar 2002 02:48:43 +0000 (02:48 +0000)]
Updated telnet patch
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14295
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 27 Mar 2002 02:00:05 +0000 (02:00 +0000)]
ignore autoconf.stmp
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14294
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 26 Mar 2002 22:46:57 +0000 (22:46 +0000)]
* fake-addrinfo.h (fake_getnameinfo) [__GNUC__ && __mips__]: Don't call
inet_ntoa, struct passing doesn't work. Format the output string locally.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14293
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 26 Mar 2002 22:38:03 +0000 (22:38 +0000)]
update dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14292
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 26 Mar 2002 22:37:04 +0000 (22:37 +0000)]
Change approach for getaddrinfo support. Now, only fake-addrinfo.h is
included, no magic macros need to be defined, and no special care needs to be
taken to identify a unique object file used in all builds of a library/program.
All defined functions (if any) are static in each object file, and declared
inline under gcc so they can be more easily eliminated. Simplifies
maintenance, and worst case should add no more than a few KB to libraries and
programs.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14291
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 26 Mar 2002 21:30:33 +0000 (21:30 +0000)]
update dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14290
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 26 Mar 2002 21:27:05 +0000 (21:27 +0000)]
* move-if-changed: New script.
* post.in (depend-postrecurse): Use it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14289
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Mar 2002 15:37:21 +0000 (15:37 +0000)]
* Makefile.in: Remove dependency on krb524.h and krb524_err.h as
they may not be present if compiling --without-krb4.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14288
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 20 Mar 2002 15:33:20 +0000 (15:33 +0000)]
* Makefile.in: Remove dependencies on krb524_err.h for login.o. If
compiling without krb4 support, this file will not be present.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14287
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sat, 16 Mar 2002 18:11:29 +0000 (18:11 +0000)]
Fix merge from 1.2.2 branch to mainline
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14286
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sat, 16 Mar 2002 18:08:08 +0000 (18:08 +0000)]
Fix client side buffer overflows
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14285
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Thu, 14 Mar 2002 15:16:16 +0000 (15:16 +0000)]
Fix walk_realm_tree handling of null realms
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14273
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 14 Mar 2002 04:02:24 +0000 (04:02 +0000)]
* implementor.texinfo: Add chapters on local addresses, hostname address
lookups, and thread safety.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14272
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 13 Mar 2002 21:33:23 +0000 (21:33 +0000)]
* kcmd.c (kcmd_connect): Actually save errno value when preparing error text to
print. Free address info before returning.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14271
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 13 Mar 2002 21:24:09 +0000 (21:24 +0000)]
* kcmd.c (kcmd_connect): Don't call fixup_addrinfo, it's been deleted
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14270
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 13 Mar 2002 16:36:21 +0000 (16:36 +0000)]
* configure.in: Do not explicitly add getent.o and setenv.o to
LIBOBJS. Autoconf 2.53 labels this as an error. Move to
Makefile.in.
* Makefile.in (OBJS): Add getent.o and setenv.o explicity.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14267
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 12 Mar 2002 03:56:38 +0000 (03:56 +0000)]
delete a macro def that should've gone away before last checkin
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14263
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 12 Mar 2002 03:54:58 +0000 (03:54 +0000)]
Restructure a little to permit wrapping a system implementation of getaddrinfo
and friends in a function that does some fixups on the returned data. Use this
for Linux and AIX. Also separate the replacement versions as functions with
different names so that Windows can (eventually) use them from a wrapper
function if a system version cannot be located.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14262
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 12 Mar 2002 03:10:04 +0000 (03:10 +0000)]
* lsb_addr_cmp.h (krb4int_address_less): Declare
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14261
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 12 Mar 2002 03:00:08 +0000 (03:00 +0000)]
Handle IPv6 sockets that are used to communicate over IPv4, and permit use of
non-IPv4 addresses if address checking is turned off.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14260
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 23:11:26 +0000 (23:11 +0000)]
update comment
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14258
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 23:08:36 +0000 (23:08 +0000)]
revert accidental checkin of unfinished changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14257
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 23:02:05 +0000 (23:02 +0000)]
(kcmd_connect): copy out correct remote address to caller
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14256
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 22:54:34 +0000 (22:54 +0000)]
* kcmd.c (kcmd_connect): Always call getport with the address family from the
current address. Retry connection to the same remote address if the error
returned was EADDRINUSE; that applies to the local address.
(kcmd, k4cmd): Don't set *fd2p before calling setup_secondary_channel.
(setup_secondary_channel): If fd2p is non-null, initialize the pointed-to value
to -1.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14255
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 22:19:54 +0000 (22:19 +0000)]
move getsockname calls into common code from kcmd/k4cmd
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14254
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Mar 2002 21:50:40 +0000 (21:50 +0000)]
Use getaddrinfo. Separate out some AF-independent socket setup code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14253
dc483132-0cff-0310-8789-
dd5450dbe970
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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