Tom Yu [Wed, 12 Sep 2001 01:28:50 +0000 (01:28 +0000)]
* configure.in: Cosmetic fix in utmpx.ut_exit check
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13746
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sat, 8 Sep 2001 12:25:35 +0000 (12:25 +0000)]
* telnetd.c: Move include of fake-addrinfo.c to after stdlib.h so
that malloc prototype povided.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13740
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 7 Sep 2001 14:58:06 +0000 (14:58 +0000)]
* commands.c (tn): Don't crash printing null hostname in case where supplied
destination is a numeric address that doesn't map to a hostname.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13739
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 7 Sep 2001 11:27:07 +0000 (11:27 +0000)]
* t_expand.c: New file.
* Makefile.in (SRCS): Add test-case source files; rebuilt dependencies.
(t_expand.o): Build from t_expand.c now, no special build rule.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13738
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 7 Sep 2001 11:19:24 +0000 (11:19 +0000)]
* rd_req_dec.c (krb5_rd_req_decoded_opt): Pass server realm to
transited-list check, not local realm, in case they're different.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13737
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 7 Sep 2001 02:36:37 +0000 (02:36 +0000)]
new kdc option flags
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13736
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 7 Sep 2001 02:17:13 +0000 (02:17 +0000)]
new ticket flags
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13735
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 10:49:23 +0000 (10:49 +0000)]
updated dependencies for latest make-depend target code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13734
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 10:44:32 +0000 (10:44 +0000)]
* post.in (depfix2.sed): collapse multiple slashes; more relative pathname processing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13733
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 10:42:47 +0000 (10:42 +0000)]
now process myfulldir arg too
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13732
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 09:43:33 +0000 (09:43 +0000)]
* post.in (depfix2.sed): New target, generates a sed script that'll do a better
job of identifying possible $(SRCTOP) uses.
(.depend): Use it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13731
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 09:40:37 +0000 (09:40 +0000)]
* depgen.sed: New file.
* depfix.sed: Remove /foo/../ sequences, looping til no more.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13730
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 6 Sep 2001 00:44:20 +0000 (00:44 +0000)]
* fake-addrinfo.h: Include socket-utils.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13729
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 6 Sep 2001 00:09:41 +0000 (00:09 +0000)]
* Makefile.in ($(BUILDTOP)/include/krb5/autoconf.h): Add rules to
build include/krb5/autoconf.h - this file is wiped out during a
make clean and sane_hostname.c depends on it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13728
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 2 Sep 2001 00:59:47 +0000 (00:59 +0000)]
* Makefile.in (../include/krb524_err.h): Force build of "includes"
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13727
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sun, 2 Sep 2001 00:14:07 +0000 (00:14 +0000)]
dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13726
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 23:53:50 +0000 (23:53 +0000)]
dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13725
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 23:50:59 +0000 (23:50 +0000)]
*depfix.sed: Drop "$(srcdir)/" prefix for files in current directory, in favor of using VPATH
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13724
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 23:49:30 +0000 (23:49 +0000)]
* post.in: Run compiler and sed in separate rules. Make "depend" a recursive
target. Check for error from compiler invocation.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13723
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 22:15:53 +0000 (22:15 +0000)]
add automatically generated dependencies
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13722
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 22:03:38 +0000 (22:03 +0000)]
add comment
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13721
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 04:21:32 +0000 (04:21 +0000)]
fix ordering in last change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13720
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 04:08:55 +0000 (04:08 +0000)]
* depfix.sed: Temporarily add trailing whitespace to make substitutions more
regular. Split lines before writing out.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13719
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 1 Sep 2001 04:06:44 +0000 (04:06 +0000)]
* post.in (.depend): Refuse to do anything if srcdir is ".". Find a shortcut
name for SRCTOP to eliminate "foo/.." subsequences, in case the compiler does
the same. Run depfix.sed after the directory-specific substitutions, not
before.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13718
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 23:00:12 +0000 (23:00 +0000)]
use a different macro in fake-addrinfo.h to tell fake-addrinfo.c to define fns
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13717
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 31 Aug 2001 20:38:19 +0000 (20:38 +0000)]
Fix clean-windows target to clean appl/gssftp/ftp
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13716
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 17:47:42 +0000 (17:47 +0000)]
* hostaddr.c (krb5_os_hostaddr): Don't use AI_DEFAULT
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13715
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 05:49:24 +0000 (05:49 +0000)]
separate sockaddr_storage support from ipv6 support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13714
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 05:47:59 +0000 (05:47 +0000)]
make sockaddr_storage checks separate from ipv6 support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13713
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 05:09:55 +0000 (05:09 +0000)]
fix typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13712
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 05:03:10 +0000 (05:03 +0000)]
fix conditionals
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13711
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 04:56:50 +0000 (04:56 +0000)]
* aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Do put /usr/include/tcl$v in
TCL_INCLUDES if that's where tcl.h is found. Don't include tcl.h when testing
to see if Tcl_CreateInterp is available.
(KRB5_AC_CHECK_INET6): Don't require getaddrinfo support.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13710
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 04:50:54 +0000 (04:50 +0000)]
genaddrs.c: update for ipv6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13709
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 03:25:54 +0000 (03:25 +0000)]
* socket-utils.h (struct krb5int_sockaddr_storage): Add some extra space
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13708
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 03:24:05 +0000 (03:24 +0000)]
* configure.in: Check for ipv6 support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13707
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 03:23:34 +0000 (03:23 +0000)]
* ext.h: Always use prototype declarations
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13706
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 31 Aug 2001 03:22:00 +0000 (03:22 +0000)]
add comment
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13705
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 21:05:17 +0000 (21:05 +0000)]
* defs.h: Don't include socket-utils.h until after netinet/in.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13704
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 21:03:39 +0000 (21:03 +0000)]
* Makefile.in (rebuild-error-tables): New intermediate target, avoids running
make in error_tables directory once for each generated header file we care
about.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13703
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 19:45:40 +0000 (19:45 +0000)]
avoid re-running autoheader when not needed, using timestamp file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13702
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 19:35:35 +0000 (19:35 +0000)]
update for fake-addrinfo changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13701
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 19:32:23 +0000 (19:32 +0000)]
* fake-addrinfo.c (getnameinfo): Cast address argument to gethostbyaddr
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13700
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 19:31:21 +0000 (19:31 +0000)]
* fake-addrinfo.h (AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL, AI_DEFAULT): Define as
bogus values, since they're part of getipnodeby* API, not getaddrinfo API.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13699
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 19:26:13 +0000 (19:26 +0000)]
ipv6 support, except if source routing is requested (may be broken)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13698
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 03:44:03 +0000 (03:44 +0000)]
* telnet.c (setupterm): Now static.
(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
Ken Raeburn [Thu, 30 Aug 2001 03:34:51 +0000 (03:34 +0000)]
note ipv6 work still not done
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13696
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 03:34:30 +0000 (03:34 +0000)]
support incoming ipv6 connections; debug mode still ipv4 only
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13695
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 03:19:30 +0000 (03:19 +0000)]
use fake-addrinfo, get rid of non-getnameinfo support
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13694
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 02:54:03 +0000 (02:54 +0000)]
* termio-tn.c, termios-tn.c: Define dummy variables if STREAMSPTY isn't defined, to silence compiler complaints about empty files
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13693
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 02:00:56 +0000 (02:00 +0000)]
copyrights
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13692
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 02:00:04 +0000 (02:00 +0000)]
copyright; update comments
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13691
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 01:11:52 +0000 (01:11 +0000)]
* kdc5_hammer.c (main): Initialize enctype at entry; eliminate enctypedone variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13690
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 30 Aug 2001 00:31:06 +0000 (00:31 +0000)]
move socket util definitions (socklen_t, sa2sin, etc) from k5-int to a new file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13689
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 29 Aug 2001 20:48:54 +0000 (20:48 +0000)]
update fake-addrinfo stuff
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13688
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 29 Aug 2001 20:48:07 +0000 (20:48 +0000)]
split fake getaddrinfo implementation off into a separate file
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13687
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 21 Aug 2001 23:52:06 +0000 (23:52 +0000)]
* aclocal.m4 (KRB5_AC_CHECK_INET6): Don't check for AI_ADDRCONFIG
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13684
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 21 Aug 2001 23:41:54 +0000 (23:41 +0000)]
* walk_rtree.c (krb5_walk_realm_tree): Initialize slen to silence compiler warning
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13683
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 21 Aug 2001 23:40:31 +0000 (23:40 +0000)]
* glob.c (amatch, case '*'): Treat multiple asterisks the same as one
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13682
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 10 Aug 2001 15:20:16 +0000 (15:20 +0000)]
* clnt_udp.c (clntudp_call): Do not assume that select will not
change the timeout struct timeval. Under Linux, this reflects the
time left available - which might result in 0 in the case of a
timeout. When attempting to resend a request, this may results in
a timeout of zero - flooding the server with replay requests.
* clnt_tcp.c (readtcp): Same.
* pmap_rmt.c (clnt_broadcast): Same
* svc_tcp.c (readtcp): Same
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13679
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 8 Aug 2001 16:59:12 +0000 (16:59 +0000)]
* cnv_tkt_skey.c (HOST_BYTE_ORDER): When casting const int * to
const char * instead of simply char *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13678
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 8 Aug 2001 16:31:02 +0000 (16:31 +0000)]
* walk_rtree.c (krb5_walk_realm_tree): Do not try to free const char *
* mk_safe.c (krb5_mk_safe_basic): Do not declare local_addr and
remote_addr const and then cast the attribute away.
* mk_req_ext.c (krb5_generate_authenticator): Static function -
remove const attribute from cksum pointer.
* gc_via_tkt.c (krb5_get_cred_via_tkt): Cast unsigned integer
krb5_error error_value to signed before adding
ERROR_TABLE_BASE_krb5.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13677
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 7 Aug 2001 21:47:36 +0000 (21:47 +0000)]
* post.in (all-recurse clean-recurse distclean-recurse
install-recurse check-recurse Makefiles-recurse): Do not pass down
CC and CCOPTS to subdirs. This causes automatic reconfiguration to
fail with autoconf 2.52 where config.status is invoked with
different environment variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13676
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 6 Aug 2001 18:24:56 +0000 (18:24 +0000)]
* default.exp (setup_root_shell): Also recognize "nection reset by
peer" as a failure to get a root shell. This happens if
tcp_wrappers are in use in inetd.conf, but rlogind is not prsent
on the machine.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13673
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Fri, 3 Aug 2001 16:07:19 +0000 (16:07 +0000)]
* ftpd.M: Update the usage line and option descriptions to be in sync
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
Ken Raeburn [Fri, 3 Aug 2001 14:46:44 +0000 (14:46 +0000)]
* k5-int.h (ss2sin6): New gcc-specific function and alternative macro.
(krb5_crypt_func, krb5_encrypt_helper): Don't use "usage" in argument names.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13671
dc483132-0cff-0310-8789-
dd5450dbe970
Mitchell Berger [Fri, 3 Aug 2001 07:46:05 +0000 (07:46 +0000)]
* ftpd.c (main): Convert to do option parsing with getopt() rather
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
Tom Yu [Thu, 2 Aug 2001 22:07:00 +0000 (22:07 +0000)]
* authenc.c (net_write): Rewrite in terms of netwrite()
* 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
Ken Raeburn [Thu, 2 Aug 2001 03:23:45 +0000 (03:23 +0000)]
implement libdefaults/extra_addresses
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13667
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 2 Aug 2001 03:14:07 +0000 (03:14 +0000)]
* klist.c: Include k5-int.h and fake-addrinfo.h.
(NEED_SOCKETS, FAI_PREFIX, FAI_IMPLEMENTATION): Define macros.
(one_addr): Use getnameinfo always.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13666
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Thu, 2 Aug 2001 01:57:20 +0000 (01:57 +0000)]
* hostaddr.c (krb5_os_hostaddr): Only retry non-numeric lookup after numeric
lookup if AI_NUMERICHOST is nonzero.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13665
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 1 Aug 2001 04:01:29 +0000 (04:01 +0000)]
* fake-addrinfo.h (AI_NUMERICHOST): Define as zero if not already defined
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13664
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 1 Aug 2001 02:31:13 +0000 (02:31 +0000)]
* configure.in: Include stdlib.h in test for swab declaration
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13663
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 31 Jul 2001 23:58:12 +0000 (23:58 +0000)]
krb5_check_transited_list now takes pointers to const
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13662
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Jul 2001 08:53:49 +0000 (08:53 +0000)]
* svr_principal.c (check_pw_reuse): Change argument for
n_pw_hist_data to unsigned to be consistant with calling
convention.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13661
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Jul 2001 08:53:02 +0000 (08:53 +0000)]
* read_passwd.c: Create local variable that takes the "int"
bufsize and makes it unsigned for use in malloc, strcmp, etc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13660
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Jul 2001 08:52:36 +0000 (08:52 +0000)]
* genaddrs.c: Use GETPEERNAME_ARG2_TYPE, GETPEERNAME_ARG3_TYPE
instead of assuming types.
* changepw.c: Use GETSOCKNAME_ARG3_TYPE instead of int in casts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13659
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Jul 2001 08:52:03 +0000 (08:52 +0000)]
* get_in_tkt.c: Cast to unsigned krb5_error error value to
krb5_error_code before trying to add to ERROR_TABLE_BASE_krb5.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13658
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Jul 2001 01:34:25 +0000 (01:34 +0000)]
* aclocal.m4: Fix typo in last change. Do not get rid of
spaces in definitions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13657
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 30 Jul 2001 21:36:34 +0000 (21:36 +0000)]
* sendauth.c (krb5_sendauth): Instead of casting second argument
to getpeername() and getsockname() to "struct sockaddr *", cast to
system specific type as determined by autoconf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13656
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 30 Jul 2001 21:35:08 +0000 (21:35 +0000)]
* configure.in: Add KRB5_GETSOCKNAME_ARGS and KRB5_GETPEERNAME_ARGS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13655
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 30 Jul 2001 21:34:18 +0000 (21:34 +0000)]
Checked in correct change without extraneous debugging code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13654
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 30 Jul 2001 21:32:48 +0000 (21:32 +0000)]
* aclocal.m4: Add functions KRB5_GETSOCKNAME_ARGS and
KRB5_GETPEERNAME_ARGS to elucidate the argument types to
getsockname() and getpeername().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13653
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 30 Jul 2001 18:22:14 +0000 (18:22 +0000)]
* ftp.c: Declare mech_type in struct gss_trials gss_OID to be
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
Danilo Almeida [Sat, 28 Jul 2001 00:32:00 +0000 (00:32 +0000)]
Unmark gss_mech_krb5 variable as an import
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13651
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Sat, 28 Jul 2001 00:16:51 +0000 (00:16 +0000)]
Do no export gss_mech_krb5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13650
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Sat, 28 Jul 2001 00:16:06 +0000 (00:16 +0000)]
Remove local Win32-specific definition of gss_mech_krb5.
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
Danilo Almeida [Fri, 27 Jul 2001 23:41:00 +0000 (23:41 +0000)]
Export gss_mech_krb5 as DATA. Mark all exported variables as DATA
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13648
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Fri, 27 Jul 2001 23:27:27 +0000 (23:27 +0000)]
Mark gss_mech_krb5 variable as an import
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13647
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Jul 2001 01:53:37 +0000 (01:53 +0000)]
* gen_port.c (krb5_gen_portaddr): Add const to cast of
krb5_const_pointer to maintain const status.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13646
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Jul 2001 01:53:05 +0000 (01:53 +0000)]
* xdr_reference.c (xdr_reference): Remove cast in argument to memset
* svc_auth_gssapi.c: In call to gss_accept_sec_context, pass
OM_uint32 * instead of int *;
* pmap_clnt.h, pmap_getport.c (pmap_getport): Prototype changed
for protocol from unsigned int to rpc_u_int32 to match struct
pmap.
* getrpcport.c (gssrpc_getrpcport): Update to reflect proper
calling conventions.
* rpc.h (callrpc): Change prototype from expecting ints for
prognum, versnum and procnum to rpc_u_int32 for consistancy.
(getrpcport): Update arguments in similar fashion.
* clnt_simple.c (gssrpc_callrpc): Update to reflect prototype change.
* auth_gssapi_misc.c (auth_gssapi_display_status_1): Local
variable msg_ctx should be OM_uint32 instead of int as argument to
gss_display_status.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13645
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Jul 2001 01:52:30 +0000 (01:52 +0000)]
* kdb_xdr.c (krb5_dbe_update_mod_princ_data,
krb5_encode_princ_contents): Delcare local variable unsigned.
* kdb_cpw.c (add_key_pwd): Declare local variable unsigned based
on use.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13644
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 19:03:35 +0000 (19:03 +0000)]
* adb_xdr.c (xdr_krb5_key_data): Use xdr_krb5_ui_2 instead of
xdr_krb5_int16 for key_data_length field.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13643
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 19:02:29 +0000 (19:02 +0000)]
* kadm_rpc_xdr.c: Add xdr_krb5_ui_2.
(xdr_krb5_tl_data): Change local variable from int to unsigned int.
* admin_xdr.h: Add prototype for xdr_krb5_ui_2.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13642
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 19:00:06 +0000 (19:00 +0000)]
* kdb.h: For structs krb5_tl_data (tl_data_length), krb5_key_data
(key-data_length), krb5_db_entry (len, e_length) change the
storage types from krb5_int16 to krb5_ui_2. This does not require
a database version change as the field sizes are the same. Remove
the code ifdefed under KRB5_OLD_AND_KRUFTY.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13641
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 17:48:32 +0000 (17:48 +0000)]
* import_sec_context.c (krb5_gss_import_sec_context): Get rid of
variable set but never used.
* ser_sctx.c (kg_queue_internalize): Ditto
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13640
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 17:47:28 +0000 (17:47 +0000)]
* auth_gssapi.c (auth_gssapi_create): Change calling convention
from passing ints as arguments to OM_uint32 to match spec for
gss_init_sec_context.
* auth_gssapi.h: Update prototype for auth_gssapi_create.
* svc.h (struct svc_req): The rq_clntcred and rq_svccred elements
are now void *.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13639
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 10:26:42 +0000 (10:26 +0000)]
* rc_dfl.c (krb5_rc_io_fetch): Once length element read from
cache, and verified to be positive, put into unsigned int
variable for passing to other functions that expect such.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13638
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 10:24:31 +0000 (10:24 +0000)]
* sn2princ.c: Do not cast away const char * in call to strdup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13637
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 10:23:36 +0000 (10:23 +0000)]
* in_tkt_sky.c (krb5_get_in_tkt_with_skey): Change cast from
krb5_pointer to krb5_const_pointer to ensure const integrity of
parameter.
* in_tkt_ktb.c (keytab_keyproc): Add const argument to cast of
keyseed to struct keytab_keyproc_arg to maintain const status.
* conv_princ.c (krb5_524_conv_principal): Cast argument to
memcpy to size_t.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13636
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 25 Jul 2001 10:23:07 +0000 (10:23 +0000)]
* asn1_k_encode.c: (asn1_encode_predicted_sam_response): Use
asn1_encode_charstring() instead of asn1_decode_octetstring()
for krb5_data. (signed vs. unsigned)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13635
dc483132-0cff-0310-8789-
dd5450dbe970