Ken Raeburn [Wed, 17 Jan 2001 02:05:52 +0000 (02:05 +0000)]
* str_conv.c (krb5_keysalt_iterate): Always use the prototype for
function-pointer argument ITERATOR.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12907
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 17 Jan 2001 02:02:11 +0000 (02:02 +0000)]
* krcp.c (error): Always declare with ellipsis
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12906
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 16 Jan 2001 19:01:01 +0000 (19:01 +0000)]
* acconfig.h (HAVE_SA_LEN): Undef
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12905
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 16 Jan 2001 19:00:45 +0000 (19:00 +0000)]
* configure.in: Call AC_REQUIRE_CPP before checking for GCC, to ensure that we
always set $CPP.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12904
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sun, 14 Jan 2001 03:31:19 +0000 (03:31 +0000)]
Document configure.in change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12903
dc483132-0cff-0310-8789-
dd5450dbe970
Sam Hartman [Sun, 14 Jan 2001 03:26:06 +0000 (03:26 +0000)]
2001-01-12 Sam Hartman <hartmans@mit.edu>
* krlogin.c: Previously, we only used TIOCGLTC on systems with
termios. This is sort of silly since its a BSD 4.[23] IOCTL. We
then go out of our way not to use it on IRIX, Solaris or HPUX. I
think all this comes about because you really want to use BSD
IOCTLS on Sunos rather than termios. I propose to do that and
never use BSD IOCTLs on Sunos.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12902
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 13 Jan 2001 00:55:07 +0000 (00:55 +0000)]
* sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
AF_INET6, which may be defined without a corresponding struct
sockaddr_in6.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12901
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 18 Dec 2000 08:03:48 +0000 (08:03 +0000)]
* configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if found
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12897
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Mon, 18 Dec 2000 08:00:49 +0000 (08:00 +0000)]
localaddr.c: Add getnameinfo support. Annotate for lclint.
Makefile.in: New target for running lclint on localaddr.c.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12896
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 15 Dec 2000 07:32:16 +0000 (07:32 +0000)]
* ktutil.c (ktutil_list): Provide a real usage message
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12895
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 15 Dec 2000 07:11:07 +0000 (07:11 +0000)]
add "-4" option to rlogin to not try krb5 auth
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12894
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 13 Dec 2000 03:41:59 +0000 (03:41 +0000)]
fix multiple-include problem on OpenBSD
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12893
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 13 Dec 2000 03:29:51 +0000 (03:29 +0000)]
update network.c with getifaddrs support from lib/krb5/os/localaddr.c
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12892
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Sat, 9 Dec 2000 02:48:42 +0000 (02:48 +0000)]
log msg for previous checkins
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12889
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Dec 2000 04:55:09 +0000 (04:55 +0000)]
check in -01 draft
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12888
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Fri, 8 Dec 2000 04:48:24 +0000 (04:48 +0000)]
* k5seal.c (make_seal_token_v1): Use ANSI-style definition, instead of K&R plus
prototype. Don't use too-big numbers even as placeholders.
* accept_sec_context.c (rd_and_store_for_creds): After creating an auth
context, set flags to require sequence numbers.
(krb5_gss_accept_sec_context): Likewise.
* init_sec_context.c (krb5_gss_init_sec_context): Likewise.
(thanks to assar for noticing this)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12887
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 23:31:05 +0000 (23:31 +0000)]
make some variables volatile
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12886
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 11:47:47 +0000 (11:47 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Ensure that we check for sa_len field
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12885
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 11:46:04 +0000 (11:46 +0000)]
Use const sockaddr pointer in interface.
Use get{name,addr}info if available, to pick up IPv6 support.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12884
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 09:46:49 +0000 (09:46 +0000)]
make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 09:01:33 +0000 (09:01 +0000)]
restore GSS_DLLIMP, KRB5_EXPORTVAR, NEAR macros
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12882
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 08:47:42 +0000 (08:47 +0000)]
fix typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12881
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 08:47:11 +0000 (08:47 +0000)]
Remove a bunch of macro definitions we don't use.
Run lclint on t_com_err test case; tune options; more annotations.
Use <com_err.h> instead of duplicated definitions in generated files.
Rebuild Perl versions of awk scripts for generating files.
Dump K&R C support, assume C89/C++.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12880
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 01:51:57 +0000 (01:51 +0000)]
undo last change
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12879
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 01:49:05 +0000 (01:49 +0000)]
tweak names of perl scripts
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12878
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 01:47:28 +0000 (01:47 +0000)]
try lclint on a com_err test program; misc cleanup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12877
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 01:41:41 +0000 (01:41 +0000)]
some notes on interactions with 64-bit systems
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12876
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 6 Dec 2000 01:36:33 +0000 (01:36 +0000)]
(WITH_CC): Don't use -Wtraditional, we're always assuming ANSI mode now
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12875
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 5 Dec 2000 23:17:28 +0000 (23:17 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Look for netdb.h.
(KRB5_AC_CHECK_INET6): Require <netinet/in.h>, <netdb.h>, inet_ntop,
getaddrinfo, AF_INET6, several NI_* macros, AI_ADDRCONFIG, and AI_NUMERICHOST.
This should be a reasonable test for conformance to certain parts of RFC2553,
giving us reasonable generic sockaddr/hostname processing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12874
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 21 Nov 2000 23:32:47 +0000 (23:32 +0000)]
* cmds.c (globulize): Use correct address of globbed results when
freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Tue, 14 Nov 2000 05:33:01 +0000 (05:33 +0000)]
make "make check" do something
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12868
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 9 Nov 2000 20:33:14 +0000 (20:33 +0000)]
* dyn_create.c (DynCopy): Arguments to memcpy were reversed. Found
while playing with lclint.
DynCopy is not used in our tree.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12867
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 9 Nov 2000 19:35:26 +0000 (19:35 +0000)]
* Makefile.in (check-unix): Built and execture dyntest
* test.c: Include string,h, stdlib.h.
* dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c,
dyn_realloc.c: Cast arguments to malloc(), realloc(), memmove() to
size_t.
* dynP.h: Provide full prototypes for _DynRealloc() and _DynResize().
* dyn.h: Add prototype for DynAppend.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12866
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Thu, 9 Nov 2000 17:45:29 +0000 (17:45 +0000)]
* strnlen.c (krb_strnlen): Put The return type before the calling
convention.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12865
dc483132-0cff-0310-8789-
dd5450dbe970
Danilo Almeida [Thu, 9 Nov 2000 01:51:59 +0000 (01:51 +0000)]
Fix common mis-spelling of my name. (There's only one "l" in Danilo. :-)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12864
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 8 Nov 2000 23:19:31 +0000 (23:19 +0000)]
* configure.in: Change KRB4_DEJAGNU_TEST variable to KRBIV from
KRB4; dejagnu-1.3 doesn't like digits in passed-in variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12862
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 8 Nov 2000 23:18:39 +0000 (23:18 +0000)]
* default.exp: Use $KRBIV rather than $KRB4 since dejagnu-1.3
doesn't deal with digits in passed-in variables.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12861
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 8 Nov 2000 23:17:50 +0000 (23:17 +0000)]
* v4gssftp.exp: Fix to handle some cases of krb4 failure prior to
timing out.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12860
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 8 Nov 2000 23:14:56 +0000 (23:14 +0000)]
* Makefile.in (OBJS, SRCS): Add strnlen.o, strnlen.c
* cr_auth_repl.c: Audit. Fix up copyright. Use new KRB4_PUT*
macros for encoding so output is always big-endian. Precompute
string lengths for better length-checking.
* cr_ciph.c: Audit. Fix up copyright. Use new KRB4_PUT* macros
for encoding so that output is always big-endian. Precompute
string lengths for better length-checking. Zero out the key
schedule after encrypting.
* cr_death_pkt.c: Audit. Fix up copyright. Precompute string
lengths for better length-checking.
* cr_err_repl.c: Audit. Fix up copyright. Use moving pointer to
do encoding. Precompute string lengths for better
length-checking. Use KRB4_PUT* macros so that output is always
big-endian.
* cr_tkt.c: Audit. Fix up copyright. Use KRB4_PUT* macros for
encoding so that output is always big-endian. Zero out the key
schedule after encrypting.
* decomp_tkt.c: Audit. Fix up copyright. Use krb_strnlen() for
actually detecting string length errors. Use a struct in_addr to
retrieve the IP address and assign it to paddress for return. Use
KRB4_GET* macros for decoding to avoid byteswapping problems.
Zero out session key and decrypted ticket on error.
* g_ad_tkt.c: Audit. Fix up copyright. Break out parsing of
decrypted KDC reply packet into a separate function to simplify
error handling somewhat. Precompute string lengths for better
length-checking. Use KRB4_PUT* macros for encoding so that output
is always big-endian. Use KRB4_GET* macros for decoding to avoid
byteswapping problems. Stomp on session key on error conditions.
* g_in_tkt.c: Audit. Fix up copyright. Precompute string lengths
for better length-checking. Use KRB4_PUT* macros for encoding so
output is always big-endian. Use KRB4_GET* macros for decoding to
avoid byteswapping problems. Use krb_strnlen() to actually detect
string length errors. Zero out session key and decrypted KDC
reply once they're no longer useful.
* mk_auth.c: Audit. Fix up copyright. Use moving pointer for
encoding. Use KRB4_PUT* macros for encoding to avoid alignment
issues with using memcpy(). Use KRB4_GET* macros for decoding to
avoid alignment issues with using memcpy().
* mk_err.c: Audit. Fix up copyright. Precompute string length.
Use KRB4_PUT* macros to always encode as big-endian.
* mk_preauth.c: Audit. Zero out key schedule after encryption.
* mk_priv.c: Audit. Fix up copyright. Use KRB4_PUT* macros for
encoding so output is always big-endian.
* mk_req.c: Audit. Fix up copyright. Use moving pointer for
encoding. Precompute string lengths for better length-checking.
Use KRB4_PUT* macros for encoding so output is always big-endian.
Zero out session key after encryption.
* mk_safe.c: Audit. Fix up copyright. Use KRB4_PUT* macros for
encoding so output is always big-endian.
* rd_err.c: Audit. Fix up copyright. Use KRB4_GET* macros to
avoid alignment issues.
* rd_preauth.c: Audit. Zero key schedule after decrypting.
* rd_priv.c: Audit. Fix up copyright. Use KRB4_GET* macros to
avoid alignment issues.
* rd_req.c: Audit. Fix up copyright.
* send_to_kdc.c (send_recv): Actually set rpkt->length, since some
callers actually use it now to do length-checking.
* strnlen.c: New file; compute string length, bounded by a
maximum. If the maximum number of characters has been read
without encountering a NUL character, return -1. This makes
overflow checking of strings in buffers much easier.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12859
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 8 Nov 2000 23:13:13 +0000 (23:13 +0000)]
* des.h: Change to make KRB4_32 an int if it's at least 32 bits
wide, else a long. This is a change from previously where it was
a long except on the alpha. We may want to rethink this if there
are binary compat issues that result. Also, define DES_INT32 as
KRB4_INT32.
* krb.h: Add new macros KRB4_PUT32, KRB4_PUT16 which
unconditionally encode integers by bytes as big-endian. Add new
macros KRB4_GET32BE, KRB4_GET32LE, KRB4_GET32, KRB4_GET16BE,
KRB4_GET16LE, KRB4_GET16 to retrieve integers by bytes. Add
prototype for krb_strnlen.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12858
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 8 Nov 2000 05:52:39 +0000 (05:52 +0000)]
problems found in auditing
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12857
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 8 Nov 2000 05:47:07 +0000 (05:47 +0000)]
clarify a little
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12856
dc483132-0cff-0310-8789-
dd5450dbe970
Ken Raeburn [Wed, 8 Nov 2000 05:46:18 +0000 (05:46 +0000)]
Test out lclint and its4 on com_err library. One lclint error left on Solaris,
due to deficiencies in lclint. Its4 chokes in parser.
* com_err.h (struct error_table): Annotate MSGS as pointing to 'shared' data.
(error_message): Returned data is 'observer' and 'dependent'; modifies internal
state.
* com_err.c (default_com_err_proc): Cast various return values to void.
(reset_com_err_hook): Use NULL, not 0.
(com_err_hook): Annotate as 'null'.
* error_table.h (_et_list): Annotate as 'null' and 'dependent'.
(struct et_list): Annotate NEXT as 'dependent' and 'null', and TABLE as
'dependent'.
(struct dynamic_et_list): Duplicate et_list definition, except NEXT is
annotated as 'only' instead of 'dependent'.
(error_table_name, error_table_name_r): Annotate for lclint.
* et_h.awk: Add lclint annotations for initialize_* functions.
* error_message.c (_et_list): Can be 'null'.
(error_message): Explicitly compare against zero. Cast strerror arg to int.
(et_list_dynamic): New variable, for dynamically allocated list elements;
_et_list is now for statically allocated elements only.
(add_error_table, remove_error_table): Check both lists.
* et_name.c (error_table_name, error_table_name_r): Annotate for lclint.
* init_et.c (et_add_error_table): Change "link" to "e" to avoid confusion with
C library function in analysis tools.
* et1.et, et2.et, t_com_err.c: New files. Exercise addition and removal of
error tables from list, using both interfaces.
* Makefile.in (LCLINT, LCLINTOPTS, ITS4, ITS4OPTS): New variables.
(do-lclint, do-its4, et1.o, et2.o, t_com_err.o, t_com_err): New targets. Not
automatically invoked at present.
(FILES): Updated.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12855
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 2 Nov 2000 00:19:55 +0000 (00:19 +0000)]
* aclocal.m4 (CONFIG_RULES): Quote AUTOCONFFLAGS properly
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12851
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 20:30:04 +0000 (20:30 +0000)]
Oops - checked in a newer version by accident
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12850
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 20:00:47 +0000 (20:00 +0000)]
* configure.in: If the cache_file is /dev/null (autoconf 2.49),
set it to config.cache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12849
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 18:36:12 +0000 (18:36 +0000)]
* reconf: Rework syntax to detect version numbers of newer
autoconf versions. For autoconf > 2.19, we need to pass an
absolute path for the localdir to autoreconf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12846
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:22:43 +0000 (15:22 +0000)]
* aclocal.m4 (V5_SET_TOPDIR): In newer versions of autoconf
(2.49), AC_LOCALDIR is not set by the reconfiguration process. If
AC_LOCALDIR is not set, try to find the top of the tree by looking
for aclocal.m4. If aclocal.m4 ever exists in a subdir, we will
need to redo this test.
* aclocal.m4: Upgrade to autoconf 2 naming schemes - AC_C_CONST,
AC_CHECK_HEADER, AC_PROG_LN_S, AC_MSG_ERROR instead of AC_CONST,
AC_HEADER_CHECK, AC_LN_S, AC_ERROR. Use AC_DEFUN instead of
define() for macro definitions and better quoting of macros within
macros.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12845
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:10:10 +0000 (15:10 +0000)]
* configure.in: Update to autoconf 2 macro names:
AC_FORK->AC_FUNC_VFORK, AC_CONST->AC_C_CONST, AC_HEADER_CHECK ->
AC_CHECK_HEADER. In addition, conditionally use internal
AC_PROG_ECHO_N (autoconf 2.12) or _AC_PROG_ECHO (autoconf 2.49)
depending on which is defined.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12844
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:05:53 +0000 (15:05 +0000)]
* configure.in: Use AC_CHECK_FUNCS, AC_CHECK_HEADERS, AC_C_CONST
instead of the older names AC_HAVE_FUNCS, AC_HEADER_CHECK,
AC_CONST. Consolidate use of function testing macros.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12843
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:03:18 +0000 (15:03 +0000)]
* configure.in: Use AC_CHECK_HEADER and AC_CHECK_FUNC instead of
AC_HEADER_CHECK and AC_FUNC_CHECK.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12842
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:02:06 +0000 (15:02 +0000)]
* configure.in: Use AC_CHECK_HEADER and AC_FUNC_VFORK instead of
AC_HEADER_CHECK and AC_VFORK.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12841
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 15:00:50 +0000 (15:00 +0000)]
* configure.in: Use AC_C_CONST instead of AC_CONST
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12840
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:59:38 +0000 (14:59 +0000)]
* configure.in: Use AC_C_CONST instead of AC_CONST
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12839
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:59:03 +0000 (14:59 +0000)]
* configure.in: Use AC_C_CONST and AC_TYPE_SIGNAL instead of
AC_RETSIGTYPE and AC_TYPE_SIGNAL.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12838
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:57:25 +0000 (14:57 +0000)]
* configure.in: Get rid of test for termios.h. The kdc does not use it
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12837
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:54:23 +0000 (14:54 +0000)]
* configure.in: Use AC_TYPE_SIZE_T instead of AC_SIZE_T
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12836
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:53:17 +0000 (14:53 +0000)]
* configure.in: Use AC_CHECK_HEADERS instead of AC_HAVE_HEADERS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12835
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:52:09 +0000 (14:52 +0000)]
* configure.in: Use AC_C_CONST and AC_CHECK_FUNCS instead of
AC_CONST and AC_HAVE_FUNCS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12834
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:51:08 +0000 (14:51 +0000)]
* configure.in: Use AC_C_CONST instead of AC_CONST
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12833
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:50:04 +0000 (14:50 +0000)]
* configure.in: Use AC_C_CONST instead of AC_CONST and
AC_CHECK_HEADER instead of AC_HEADER_CHECK.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12832
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:46:57 +0000 (14:46 +0000)]
* configure.in: Quote macro use inside AC_CHECK_LIB. Change
AC_FUNC_CHECK to AC_CHECK_FUNC, AC_HAVE_FUNCS to AC_CHECK_FUNCS
and AC_HEADER_CHECK to AC_CHECK_HEADER..
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12831
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:43:36 +0000 (14:43 +0000)]
* configure.in (AC_COMPILE_TYPE): Declare with AC_DEFUN() instead
of define() as newer versions of autoconf check for AC_REQUIRE use
outside of AC_DEFUN.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12830
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:41:47 +0000 (14:41 +0000)]
* configure.in: Use AC_C_CONST instead of AC_CONST and
AC_CHECK_FUNCS instead of AC_HAVE_FUNCS.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12829
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:40:32 +0000 (14:40 +0000)]
* configure.in: Change AC_RETSIGTYPE to AC_TYPE_SIGNAL
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12828
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 1 Nov 2000 14:39:30 +0000 (14:39 +0000)]
* configure.in: Change AC_CONST to AC_C_CONST, AC_HEADER_EGREP to
AC_EGREP_HEADER, AC_HAVE_HEADERS to AC_CHECK_HEADERS. Updates to
autoconf 2 namespace.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12827
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 31 Oct 2000 17:37:48 +0000 (17:37 +0000)]
* aclocal.m4 (AC_LIBRARY_NET): Newer versions of autoconf are more
sensative to using macros within macros without quoting. Quote
AC_CHECK_LIB calls within AC_CHECK_LIB macro.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12826
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 31 Oct 2000 00:33:00 +0000 (00:33 +0000)]
* cc_stdio.c: Add a "mode" field to krb5_scc_data to keep track of
what mode the file was opened in.
(krb5_scc_close_file): Ignore EBADF from fflush() if the file was
opened for readonly access. For some reason NetBSD's fflush()
exhibits this behavior.
(krb5_scc_open_file): Save the mode with which the file was opened
in data->mode.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12825
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Oct 2000 14:55:49 +0000 (14:55 +0000)]
* reconf: Pass "-m util/autoconf" to autoreconf only if we are
using the source trees version of autoconf.
If we trust the installed version of autoconf, we should use their macros.
Performance boost of 2x in autoconfing the tree through use of frozen
m4 files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12820
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Oct 2000 14:53:55 +0000 (14:53 +0000)]
*post.in (Makefile): When running autoconf, use AUTOCONFFLAGS
instead of always specificying the trees macrodir.
* pre.in (AUTOCONFFLAGS): Add as flags to pass to autoconf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12819
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 27 Oct 2000 14:53:36 +0000 (14:53 +0000)]
* post.in (Makefile): When running autoconf, use AUTOCONFFLAGS
instead of always specificying the trees macrodir.
* pre.in (AUTOCONFFLAGS): Add as flags to pass to autoconf.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12818
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 26 Oct 2000 23:01:49 +0000 (23:01 +0000)]
* krb5_decode_test.c (main): Add new test cases for indefinite
length ticket and as_rep. Fix up calls to decode_run() to have
the modifier be in the description parameter.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12817
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 26 Oct 2000 22:58:13 +0000 (22:58 +0000)]
* asn1buf.c (asn1buf_sync): Add new arguments to include the full
complement of data about a prefetched tag, as well as to indicate
whether the prefetched tag or the surrounding sequence is of an
indefinite length.
(asn1buf_skiptail): Add new arguments to indicate whether the
prefetched tag is indefinite, as well as its length. This
facilitates proper skipping of trailing garbage.
(asn1buf_remains): Add new argument to indicate whether the
surrounding encoding is indefinite. Don't advance buf->next if an
EOC encoding is detected; the caller will do that.
* asn1buf.h: Update prototypes.
* asn1_get.c (asn1_get_tag_indef): Don't treat EOC encoding as
special anymore, since previous behavior was overloading the
tag number in a bad way. Also, report a MISMATCH_INDEF error if
the tag encoding is for the forbidden primitive constructed
encoding.
* asn1_k_decode.c (next_tag): Call get_tag_indef() in order to get
information about whether the length is indefinite. Don't check
the tag class and construction explicitly.
(get_eoc): New macro to get a tag and check if it is an EOC
encoding.
(get_field, opt_field): Move the check for the tag class and
construction to here.
(get_field_body, get_lenfield_body): Call get_eoc() instead of
next_tag() if we are decoding a constructed indefinite encoding.
(begin_structure): Use a different variable to indicate whether
the sequence is indefinite as opposed to whether an individual
field is indefinite.
(end_structure): Update to new calling convention of
asn1buf_sync().
(sequence_of): Rewrite significantly.
(sequence_of_common): Move the bulk of previous sequence_of()
macro to here. Does not declare some variables that sequence_of()
declares.
(sequence_of_no_tagvars): Similar to sequence_of() macro but
declares different variables for the purpose of prefetching the
final tag.
(end_sequence_of_no_tagvars): Similar to end_sequence_of() macro
but uses variables declared by the sequence_of_no_tagvars() macro
to prefetch the final tag.
(asn1_decode_principal_name): Update for new asn1buf_remains()
calling convention. Call sequence_of_no_tagvars(), etc. instead
of sequence_of(), etc. in order to not declare shadowing
block-local variables.
(decode_array_body): Update for new asn1buf_remains() calling
convention.
(asn1_decode_sequence_of_enctype): Update for new
asn1buf_remains() calling convention.
* krb5_decode.c (next_tag): Call get_tag_indef() in order to get
information about whether the length is indefinite. Don't check
the tag class and construction explicitly.
(get_eoc): New macro to get a tag and check if it is an EOC
encoding.
(get_field, opt_field): Move the check for the tag class and
construction to here.
(get_field_body, get_lenfield_body): Call get_eoc() instead of
next_tag() if we are decoding a constructed indefinite encoding.
(begin_structure): Use a different variable to indicate whether
the sequence is indefinite as opposed to whether an individual
field is indefinite.
(end_structure): Update to new calling convention of
asn1buf_sync().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12816
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 26 Oct 2000 22:34:04 +0000 (22:34 +0000)]
* asn1_err.et: Add error codes MISMATCH_INDEF and MISSING_EOC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12815
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 26 Oct 2000 17:21:40 +0000 (17:21 +0000)]
* t_ser.c: Cast getpid() calls to int as arguments to sprintf
* ser_actx.c: Move prototypes (listed below) to int-proto.h
* int-proto.h: Add prototypes for krb5_ser_authdata_init,
krb5_ser_address_init, krb5_ser_authenticator_init,
krb5_ser_checksum_init, krb5_ser_keyblock_init,
krb5_ser_principal_init.
* ser_adata.c, ser_addr.c, ser_auth.c, ser_cksum.c, ser_key.c,
ser_princ.c: Include int-proto.h for prototypes.
By moving the prototypes to int-proto.h, it ndles the gcc warning
on missing prototypes. These functions are intenal and all used by
krb5_ser_auth_context_init()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12814
dc483132-0cff-0310-8789-
dd5450dbe970
Miro Jurisic [Tue, 24 Oct 2000 23:22:05 +0000 (23:22 +0000)]
#include autoconf.h instead of duplicating defines
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12809
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Oct 2000 00:18:54 +0000 (00:18 +0000)]
* kadm_ser_wrap.c (kadm_ser_in): Update call to mk_priv()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12808
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Oct 2000 00:15:17 +0000 (00:15 +0000)]
* secure.h: Change SESSION to refer to &cred.session instead, so
as to have the correct pointer type when passed to
{mk,rd}_{safe,priv}() functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12807
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Oct 2000 00:14:42 +0000 (00:14 +0000)]
* compat_recv.c (krb_v4_recvauth): Update call to mk_priv()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12806
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Oct 2000 00:14:18 +0000 (00:14 +0000)]
* mk_auth.c (krb_check_auth): Modify call to rd_priv() by kludging
a cast of session key to C_Block *, since CNS is inconsistent in
this area as well.
* mk_priv.c (krb_mk_priv): Align with CNS by taking C_Block *.
* mk_safe.c (krb_mk_safe): Align with CNS by taking C_Block *.
* rd_priv.c (krb_rd_priv): Align with CNS by taking C_Block *.
* rd_safe.c (krb_rd_safe): Align with CNS by taking C_Block *.
* recvauth.c (krb_recvauth): Update call to mk_priv() to have the
correct type.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12805
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 24 Oct 2000 00:13:45 +0000 (00:13 +0000)]
* krb.h: Modify krb_{mk,rd}_{priv,safe} prototypes to align with
CNS, mostly by making them take C_Block * arguments.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12804
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 18 Oct 2000 13:58:17 +0000 (13:58 +0000)]
* library.tex: Update to latex2e. Include krb5idx.sty
* Makefile (lib1.stamp): Use makeindex to generate index instead
of an antiquated texindex program - which is not the same texindex
as in the texinfo package.
* krb5idx.sty: Style for generating indexes. Provides definitions
for use with krb5.ist.
* krb5.ist: makeindex macros. Based on gind.ist.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12802
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:13:25 +0000 (23:13 +0000)]
* krb5.tex: krb5_unparse_name_ext(), krb5_build_principal(),
krb5_build_principal_va, krb5_build_printicpal_ext() use unsigned
ints.
* libos.tex: krb5_read_password() takes an unsigned int * as the
final argument.
* keytab.tex: krb5_kt_get_name() takes an unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12801
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:12:57 +0000 (23:12 +0000)]
* kpasswd.c (main): Argument to krb5_read_password takes an
unsigned int as argument.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12800
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:12:40 +0000 (23:12 +0000)]
* krb_auth_su.c (krb5_get_tkt_via_passwd): Argument to
krb5_read_password now takes an unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12799
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:12:04 +0000 (23:12 +0000)]
* klist.c (one_addr): gethostbyaddr takes an int as second argument
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12798
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:11:52 +0000 (23:11 +0000)]
* kinit.c (k4_kinit): Argument to krb5_read_password takes as
unsigned int as argument.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12797
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:07:41 +0000 (23:07 +0000)]
* ftpd.c (reply): For gssapi connection, do not include NULL in
sealed reply string.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12796
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:07:23 +0000 (23:07 +0000)]
* login.c (k5_get_password): Declare second argument as unsigned
int length.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12795
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:07:03 +0000 (23:07 +0000)]
* adm_conn.c, kpasswd.c: Argument to krb5_read_password
takes an unsigned int.
* kadm5_defs.h, main.c (pwd_change): Argument err_str_len changed
to unsigned int. (Argument to kadm5_chpass_principal_util()).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12794
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:06:48 +0000 (23:06 +0000)]
* ovsec_kadmd.c (do_schpw): Cast arguments to sendto() which take int
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12793
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:06:22 +0000 (23:06 +0000)]
* tty_kpasswd.c (read_old_password): Argument pwsize changed to
unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12792
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:06:08 +0000 (23:06 +0000)]
* kdb5_create.c (kdb5_create): Argument to krb5_read_password
changed to unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12791
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:05:56 +0000 (23:05 +0000)]
* kadmin.c (kadmin_cpw): Argument to krb5_read_password changed to
unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12790
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:05:24 +0000 (23:05 +0000)]
* ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALT
instead of -1.
* ktest_equal.c (ktest_equal_krb5_etype_info_entry): Test for
KRB5_ETYPE_NO_SALT. ktest_equal_array_of_octet() and
ktest_equal_array_of_char take unsigned int lengths.
* ktest_equal.h: Add len_unsigned_array macro for a prototype of a
function taking an unsigned int
count. ktest_equal_array_of_octet() is one of
these. ktest_equal_array_of_char() takes an unsigned int as
length.
* trval.c (trval): Unsigned/signed int fix.
* utility.c (asn1_krb5_data_unparse): Better test for krb5_data
length being less than zero.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12789
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:04:32 +0000 (23:04 +0000)]
* encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now take
unsigned int * lengths.
* krb524d.c (do_connection): Cast length fields in recvfrom() and
sendto() calls to int.
* sendmsg.c (krb524_sendto_kdc): Cast length fields in recv() and
send() calls to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12788
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:03:59 +0000 (23:03 +0000)]
* kdc_preauth.c (get_etype_info): Initialize length of
etype_info_entry to KRB5_ETYPE_NO_SALT. Before copying salt into
etype_info_entry, test that salt length (from get_salt_from_key())
is not SALT_TYPE_NO_LENGTH.
* kdc_util.c (get_salt_from_key): Initialize salt type to
SALT_TYPE_NO_LENGTH (instead of -1).
* network.c (process_packet): Cast length in sendto() call to int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12787
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:02:42 +0000 (23:02 +0000)]
* clnt_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
to unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12786
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:02:30 +0000 (23:02 +0000)]
* svr_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
to unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12785
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 17 Oct 2000 23:02:10 +0000 (23:02 +0000)]
* admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from
error_message to char * - leave them as const char *.
(kadm5_chpass_principal_util): Argument msg_len is unsigned int.
* admin_internal.h (_kadm5_chpass_principal_util): msg_len is
unsigned int.
* chpass_util.c (_kadm5_chpass_principal_util): Change msg_len to
unsigned int. Arhument to krb5_read_password is unsigned int.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12784
dc483132-0cff-0310-8789-
dd5450dbe970