summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Make compile_et script installable, and install it.Ken Raeburn2001-01-184-21/+47
| | | | | | Use it when building test programs too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12910 dc483132-0cff-0310-8789-dd5450dbe970
* Make prototypes unconditionalKen Raeburn2001-01-176-374/+293
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12908 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c (krb5_keysalt_iterate): Always use the prototype forKen Raeburn2001-01-172-2/+6
| | | | | | function-pointer argument ITERATOR. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12907 dc483132-0cff-0310-8789-dd5450dbe970
* * krcp.c (error): Always declare with ellipsisKen Raeburn2001-01-172-6/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12906 dc483132-0cff-0310-8789-dd5450dbe970
* * acconfig.h (HAVE_SA_LEN): UndefKen Raeburn2001-01-161-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12905 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Call AC_REQUIRE_CPP before checking for GCC, to ensure that weKen Raeburn2001-01-162-0/+10
| | | | | | always set $CPP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12904 dc483132-0cff-0310-8789-dd5450dbe970
* Document configure.in changeSam Hartman2001-01-141-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12903 dc483132-0cff-0310-8789-dd5450dbe970
* 2001-01-12 Sam Hartman <hartmans@mit.edu>Sam Hartman2001-01-143-45/+28
| | | | | | | | | | | * 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
* * sane_hostname.c: Switch off of KRB5_USE_INET6 instead ofTom Yu2001-01-132-2/+9
| | | | | | | 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
* * configure.in: Look for socklen_t, define HAVE_SOCKLEN_T if foundKen Raeburn2000-12-182-0/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12897 dc483132-0cff-0310-8789-dd5450dbe970
* localaddr.c: Add getnameinfo support. Annotate for lclint.Ken Raeburn2000-12-183-203/+304
| | | | | | 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
* * ktutil.c (ktutil_list): Provide a real usage messageKen Raeburn2000-12-152-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12895 dc483132-0cff-0310-8789-dd5450dbe970
* add "-4" option to rlogin to not try krb5 authKen Raeburn2000-12-153-2/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12894 dc483132-0cff-0310-8789-dd5450dbe970
* fix multiple-include problem on OpenBSDKen Raeburn2000-12-132-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12893 dc483132-0cff-0310-8789-dd5450dbe970
* update network.c with getifaddrs support from lib/krb5/os/localaddr.cKen Raeburn2000-12-132-11/+182
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12892 dc483132-0cff-0310-8789-dd5450dbe970
* 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
* * 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