summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* log msg for previous checkinsKen Raeburn2000-12-091-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12889 dc483132-0cff-0310-8789-dd5450dbe970
* check in -01 draftKen Raeburn2000-12-081-184/+305
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12888 dc483132-0cff-0310-8789-dd5450dbe970
* * k5seal.c (make_seal_token_v1): Use ANSI-style definition, instead of K&R plusKen Raeburn2000-12-083-35/+21
| | | | | | | | | | | | 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
* make some variables volatileKen Raeburn2000-12-063-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12886 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_INET6): Ensure that we check for sa_len fieldKen Raeburn2000-12-062-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12885 dc483132-0cff-0310-8789-dd5450dbe970
* Use const sockaddr pointer in interface.Ken Raeburn2000-12-064-17/+87
| | | | | | 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
* make pty_make_sane_hostname take sockaddr* arg instead of sockaddr_in*Ken Raeburn2000-12-0610-11/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12883 dc483132-0cff-0310-8789-dd5450dbe970
* restore GSS_DLLIMP, KRB5_EXPORTVAR, NEAR macrosKen Raeburn2000-12-062-2/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12882 dc483132-0cff-0310-8789-dd5450dbe970
* fix typoKen Raeburn2000-12-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12881 dc483132-0cff-0310-8789-dd5450dbe970
* Remove a bunch of macro definitions we don't use.Ken Raeburn2000-12-069-173/+116
| | | | | | | | | 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
* undo last changeKen Raeburn2000-12-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12879 dc483132-0cff-0310-8789-dd5450dbe970
* tweak names of perl scriptsKen Raeburn2000-12-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12878 dc483132-0cff-0310-8789-dd5450dbe970
* try lclint on a com_err test program; misc cleanupKen Raeburn2000-12-062-7/+41
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12877 dc483132-0cff-0310-8789-dd5450dbe970
* some notes on interactions with 64-bit systemsKen Raeburn2000-12-061-0/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12876 dc483132-0cff-0310-8789-dd5450dbe970
* (WITH_CC): Don't use -Wtraditional, we're always assuming ANSI mode nowKen Raeburn2000-12-062-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12875 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_INET6): Look for netdb.h.Ken Raeburn2000-12-052-7/+22
| | | | | | | | | (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
* * cmds.c (globulize): Use correct address of globbed results whenKen Raeburn2000-11-212-2/+9
| | | | | | freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869 dc483132-0cff-0310-8789-dd5450dbe970
* make "make check" do somethingKen Raeburn2000-11-143-3/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12868 dc483132-0cff-0310-8789-dd5450dbe970
* * dyn_create.c (DynCopy): Arguments to memcpy were reversed. FoundEzra Peisach2000-11-092-1/+6
| | | | | | | | 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
* * Makefile.in (check-unix): Built and execture dyntestEzra Peisach2000-11-0910-12/+49
| | | | | | | | | | | | | | * 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
* * strnlen.c (krb_strnlen): Put The return type before the callingDanilo Almeida2000-11-092-1/+6
| | | | | | convention. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12865 dc483132-0cff-0310-8789-dd5450dbe970
* Fix common mis-spelling of my name. (There's only one "l" in Danilo. :-)Danilo Almeida2000-11-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12864 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change KRB4_DEJAGNU_TEST variable to KRBIV fromTom Yu2000-11-082-2/+7
| | | | | | 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
* * default.exp: Use $KRBIV rather than $KRB4 since dejagnu-1.3Tom Yu2000-11-082-3/+8
| | | | | | doesn't deal with digits in passed-in variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12861 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: Fix to handle some cases of krb4 failure prior toTom Yu2000-11-082-3/+10
| | | | | | timing out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12860 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (OBJS, SRCS): Add strnlen.o, strnlen.cTom Yu2000-11-0823-1021/+1555
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * des.h: Change to make KRB4_32 an int if it's at least 32 bitsTom Yu2000-11-083-22/+113
| | | | | | | | | | | | | | | 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
* problems found in auditingKen Raeburn2000-11-081-0/+34
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12857 dc483132-0cff-0310-8789-dd5450dbe970
* clarify a littleKen Raeburn2000-11-081-3/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12856 dc483132-0cff-0310-8789-dd5450dbe970
* Test out lclint and its4 on com_err library. One lclint error left on Solaris,Ken Raeburn2000-11-0812-83/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * aclocal.m4 (CONFIG_RULES): Quote AUTOCONFFLAGS properlyTom Yu2000-11-022-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12851 dc483132-0cff-0310-8789-dd5450dbe970
* Oops - checked in a newer version by accidentEzra Peisach2000-11-011-10/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12850 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: If the cache_file is /dev/null (autoconf 2.49),Ezra Peisach2000-11-012-0/+11
| | | | | | set it to config.cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12849 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Rework syntax to detect version numbers of newerEzra Peisach2000-11-012-7/+30
| | | | | | | 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
* * aclocal.m4 (V5_SET_TOPDIR): In newer versions of autoconfEzra Peisach2000-11-012-16/+45
| | | | | | | | | | | | | | | (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
* * configure.in: Update to autoconf 2 macro names:Ezra Peisach2000-11-012-5/+15
| | | | | | | | | 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
* * configure.in: Use AC_CHECK_FUNCS, AC_CHECK_HEADERS, AC_C_CONSTEzra Peisach2000-11-014-10/+35
| | | | | | | 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
* * configure.in: Use AC_CHECK_HEADER and AC_CHECK_FUNC instead ofEzra Peisach2000-11-012-3/+8
| | | | | | AC_HEADER_CHECK and AC_FUNC_CHECK. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12842 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_CHECK_HEADER and AC_FUNC_VFORK instead ofEzra Peisach2000-11-012-3/+8
| | | | | | AC_HEADER_CHECK and AC_VFORK. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12841 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST instead of AC_CONSTEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12840 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST instead of AC_CONSTEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12839 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST and AC_TYPE_SIGNAL instead ofEzra Peisach2000-11-012-2/+7
| | | | | | AC_RETSIGTYPE and AC_TYPE_SIGNAL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12838 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Get rid of test for termios.h. The kdc does not use itEzra Peisach2000-11-012-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12837 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_TYPE_SIZE_T instead of AC_SIZE_TEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12836 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_CHECK_HEADERS instead of AC_HAVE_HEADERSEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12835 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST and AC_CHECK_FUNCS instead ofEzra Peisach2000-11-012-2/+7
| | | | | | AC_CONST and AC_HAVE_FUNCS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12834 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST instead of AC_CONSTEzra Peisach2000-11-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12833 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use AC_C_CONST instead of AC_CONST andEzra Peisach2000-11-012-2/+7
| | | | | | AC_CHECK_HEADER instead of AC_HEADER_CHECK. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12832 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote macro use inside AC_CHECK_LIB. ChangeEzra Peisach2000-11-012-5/+11
| | | | | | | 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
* * configure.in (AC_COMPILE_TYPE): Declare with AC_DEFUN() insteadEzra Peisach2000-11-012-1/+7
| | | | | | | 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