summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * pre.in: Set host to @krb5_cv_host@ instead of @host@. The wayEzra Peisach2002-08-262-1/+8
| | | | | | | | aclocal.m4 is setup, AC_CANONICAL_HOST may only be evaluated as a cached variable and autoconf 2.52 will only allow one inclusion of the code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14766 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_LIB_PARAMS): Substitute krb5_cv_host inEzra Peisach2002-08-262-7/+7
| | | | | | | Makefiles. Remove K5_OUTPUT_FILES as nothing depends on it anymore. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14765 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4: Require autoconf 2.52 or laterKen Raeburn2002-08-242-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14764 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile: DeletedKen Raeburn2002-08-242-23/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14763 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (merge_addrlists): Truncate source address list after copyingKen Raeburn2002-08-242-0/+4
| | | | | | its data into the destination list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14762 dc483132-0cff-0310-8789-dd5450dbe970
* Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2002-08-23212-138/+548
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (auth_data, reply_gss_code): Use OM_uint32 instead of intEzra Peisach2002-08-232-2/+7
| | | | | | to match arguments to gssapi functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14760 dc483132-0cff-0310-8789-dd5450dbe970
* * compat_recv.c: Include defines.h for prototypesEzra Peisach2002-08-232-2/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14759 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c (dump_db): Update usage comment. Add "-rev" andTom Yu2002-08-234-16/+80
| | | | | | | | | | | | | | | | | | "-recurse" flags to permit reverse and recursive dumping of the database, respectively. Check for dump filename beginning with "-" to avoid accidental dumps to such filenames. * kdb5_util.c (usage): Update to match reality, primarily by updating the "dump" usage, but also showing global options before the command, which is how they were being interpreted anyway. * kdb5_util.M: Update to match reality. Document "-mkey_convert", "-new_mkey_file", "-rev", and "-recurse" options to "dump". Document "dump to stdout" behavior. Show global options before the command. Make some formatting fixes. s/binary tree/btree/ since the btree back end is actually an n-ary tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14757 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.h: Add prototype and rename forTom Yu2002-08-234-5/+53
| | | | | | | | | | | | | krb5_db2_db_iterate_ext(). * kdb_db2.c (krb5_db2_db_iterate_ext): New function; allow optional backwards or recursive (if btree) traversal of the database. * Makefile.in (LIBMINOR): Bump due to addition of krb5_db_iterate_ext(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14755 dc483132-0cff-0310-8789-dd5450dbe970
* * dbtest.c: Include btree.h if we're compiled with -DSTATISTICSTom Yu2002-08-233-1/+21
| | | | | | * Makefile.in: Add rules for bttest; also add a clean rule. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14754 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Disable append(); we don't have R_APPEND in this releaseTom Yu2002-08-232-8/+88
| | | | | | | | | | | | | | of DB for some reason. Disable load() due to lack of fgetline(). Conditionalize lots of things on -DSTATISTICS or -DDEBUG as appropriate. (rlist): New function; does recursive listing of principals. (main): Fix up naming of *_ENDIAN macros. Default to read-only open, with new "-w" option for opening read/write. Actually call db->sync with the correct number of arguments. (show): Update call to __bt_dpage(). (usage): Update. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14753 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBMINOR): Bump due to addition of bt_rseq()Tom Yu2002-08-238-12/+474
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hash/hash_debug.c: Remove inclusion of compat.h, as we don't have it in our build system. * btree/extern.h: Add missing prototypes/renames for __bt_dmpage(). Add renames for bt_rseq() support functions. * btree/bt_seq.c (bt_rseq): New function; like __bt_seq() but does recursive descent rather than using the prev/next pointers. This will catch some pages that might be missed if the database is inconsistent. Added support functions for bt_rseq() as well. * btree/bt_page.c (__bt_free): Set B_METADIRTY when updating free list. (__bt_new): Set B_METADIRTY when updating free list. [patch from www.sleepycat.com] * btree/bt_debug.c (__bt_dump): Bound loop by number of pages actually in file to avoid getting a nigh-infinite number of all-zeroes pages. (__bt_dmpage): Print a newline after dumping the meta page. (__bt_dpage): Add DB* parameter; use this to get pagesize in order to limit dumping of page contents, in case NEXTINDEX(h) happens to be bogus. (__bt_stat): Bound loop by number of pages actually in file so as to stop counting pages after the actual end of file. * btree/bt_close.c (__bt_sync): Apply a Kerbnet fix from long ago; don't return prematurely when B_METADIRTY is set but B_MODIFIED is clear. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14752 dc483132-0cff-0310-8789-dd5450dbe970
* * db.h: Add rename and prototype for bt_rseq(); this is a kludgeTom Yu2002-08-232-0/+7
| | | | | | to avoid stuffing more things into the DB handle. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14751 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SUBDIROBJLISTS): New variableKen Raeburn2002-08-232-0/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14749 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (krb5_locate_kdc): Don't look up kerberos-sec for TCP serviceKen Raeburn2002-08-232-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14748 dc483132-0cff-0310-8789-dd5450dbe970
* turn off debug codeKen Raeburn2002-08-231-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14747 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (init_common): Initialize udp_pref_limit fieldKen Raeburn2002-08-232-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14746 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(HDRS)): Depend on "includes"Ken Raeburn2002-08-222-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14745 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SUBDIROBJLISTS): New variableKen Raeburn2002-08-224-1/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14744 dc483132-0cff-0310-8789-dd5450dbe970
* * accessor.c (krb5int_accessor): Use krb5int_sendto instead ofKen Raeburn2002-08-222-1/+3
| | | | | | krb5int_sendto_udp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14743 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (MAX_PASS, dprint): New macros.Ken Raeburn2002-08-222-402/+539
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (krb5int_debug_fprint, merge_addrlists): New function. (krb5int_debug_sendto_kdc): New variable. (krb5_sendto_kdc): Use dprint. Call krb5int_locate_kdc in two places, with socket type selection done separately. (debug_log_connect): Function deleted; use dprint instead. (dperror): Use dprint. (print_fdsets): Function deleted; use dprint instead. (struct conn_state): Use struct instead of union so incoming and outgoing buffer pointers can co-exist. Add INITIALIZING state. (state_strings): Add INITIALIZING. (krb5int_sendto_udp, krb5int_sendto_tcp): Functions integrated into krb5int_sendto. (call_select): Use dprint. (setup_connection): New function, handles data structure initialization. (start_connection): Renamed from start_tcp_connection. Don't do data structure initialization, just start connection, and transmit UDP datagrams. Use dprint. (maybe_send): Create socket for "INITIALIZING" connections; transmit datagrams. (kill_conn): New function split out from service_tcp_fd. (SSF_READ, SSF_WRITE, SSF_EXCEPTION): New macros. (service_tcp_fd): Accept a flag word rather than separate int arguments for read, write, exception. Use dprint. (service_udp_fd): New function. (service_fd): New function, calls one of the above two. (service_fds): Call it. Use a flag word instead of separate r/w/x values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14742 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (krb5int_grow_addrlist): Renamed from grow_list, now external.Ken Raeburn2002-08-222-2/+9
| | | | | | (grow_list): New macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14741 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h (krb5int_sendto_udp, krb5int_sendto_tcp): Declarations deleted.Ken Raeburn2002-08-212-5/+8
| | | | | | (krb5int_sendto, krb5int_grow_addrlist): New decls. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14740 dc483132-0cff-0310-8789-dd5450dbe970
* * port-sockets.h (SG_BUF): New macroKen Raeburn2002-08-212-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14739 dc483132-0cff-0310-8789-dd5450dbe970
* * string2key.c: Work around possible bug with AFS salts;Tom Yu2002-08-162-0/+8
| | | | | | [krb5-clients/1146] from <Wolfgang.Friebel@cern.ch>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14734 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h (struct _krb5_context): Add new member udp_pref_limitKen Raeburn2002-08-162-8/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14733 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (DEFAULT_UDP_PREF_LIMIT, HARD_UDP_LIMIT): New macros.Ken Raeburn2002-08-152-3/+47
| | | | | | | | (debug_log_connect): Look up "udp_preference_limit" in libdefaults part of profile; try TCP before UDP if the packet size is larger than specified. Don't try UDP at all if the packet is over about 32K. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14732 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (kdc_get_server_key): Check for DISALLOW_ALL_TIX andTom Yu2002-08-152-1/+12
| | | | | | DISALLOW_SVR when looking up server key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14728 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c (krb5_ktkdb_get_entry): For consistency, check forTom Yu2002-08-152-0/+11
| | | | | | DISALLOW_ALL_TIX and DISALLOW_SVR when looking up keys. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14727 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos_v4.c: For consistency, check for both DISALLOW_ALL_TIXTom Yu2002-08-152-1/+29
| | | | | | and DISALLOW_SVR when looking up services. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14726 dc483132-0cff-0310-8789-dd5450dbe970
* * kvno.c (do_v4_kvno): Initialize name, inst, realm to emptyTom Yu2002-08-152-0/+6
| | | | | | strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14725 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_file.c (ALLOC): Use calloc, not malloc.Ken Raeburn2002-08-152-2/+15
| | | | | | | (krb5_fcc_read_principal): Check bounds on number of components before calling ALLOC. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14724 dc483132-0cff-0310-8789-dd5450dbe970
* * t_cc.c: Remove references to STDIO ccacheTom Yu2002-08-152-7/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14723 dc483132-0cff-0310-8789-dd5450dbe970
* * t_ser.c (ser_ccache_test): Remove references to STDIO ccachesTom Yu2002-08-152-19/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14722 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (EXTRADEPSRCS): New variable.Ken Raeburn2002-08-152-0/+14
| | | | | | (.d): Depend on includes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14721 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SUBDIROBJLISTS): New variableKen Raeburn2002-08-152-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14720 dc483132-0cff-0310-8789-dd5450dbe970
* * lib.in ($(SUBDIROBJLISTS) and .SH/.PF variants): Depend on recursion. UseKen Raeburn2002-08-154-5/+23
| | | | | | | | | | extra dummy target in case the variable is empty. * post.in (ALL_DEP_SRCS): New variable, includes SRCS and EXTRADEPSRCS. (.d): Depend on and use $(ALL_DEP_SRCS). * pre.in (all-unix, all-recurse, all-postrecurse): Make each stage depend on the previous, rather than having all-unix depend on each. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14719 dc483132-0cff-0310-8789-dd5450dbe970
* missed an entryKen Raeburn2002-08-151-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14718 dc483132-0cff-0310-8789-dd5450dbe970
* (NO_FILE): New macro. All functions changed to test or assign it rather thanKen Raeburn2002-08-152-96/+89
| | | | | | | | | | | | -1 or (FILE*)NULL. (krb5_fcc_read_keyblock, krb5_fcc_read_data): Rewrite bounds check. (BINARY_MODE): Always define. (setvbuf) [!HAVE_SETVBUF]: Define as macro using setbuf. (krb5_fcc_open_file): Change file descriptor variable to "f" and combine newly matching stdio and file sections. Use setvbuf instead of checking whether to use setbuf. Fix bug in merge. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14717 dc483132-0cff-0310-8789-dd5450dbe970
* update depsKen Raeburn2002-08-154-23/+45
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14716 dc483132-0cff-0310-8789-dd5450dbe970
* Combine file and stdio ccache implementations into one source file; selectionKen Raeburn2002-08-155-2165/+650
| | | | | | is now at compile time, rather than FILE: vs STDIO: prefix. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14715 dc483132-0cff-0310-8789-dd5450dbe970
* * cc_stdio.c (krb5_fcc_next_cred): Use a krb5_error_code to hol the returnKen Raeburn2002-08-142-17/+26
| | | | | | | | | | value from krb5_fcc_interpret. (krb5_fcc_get_principal): Initialize return-value variable. (krb5_fcc_initialize): Likewise. (krb5_fcc_interpret): Change retval to a krb5_error_code. Reorder cases for consistency with cc_file.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14714 dc483132-0cff-0310-8789-dd5450dbe970
* tweak commentsKen Raeburn2002-08-141-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14713 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: updated the usage functionJen Selby2002-08-144-2/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14712 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Unused file deletedKen Raeburn2002-08-142-1494/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14711 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(HDRS)): Depend on 'includes'.Ken Raeburn2002-08-142-1/+8
| | | | | | (std_rqs.c): Depend on mk_cmds. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14710 dc483132-0cff-0310-8789-dd5450dbe970
* * acl_files.c (canon;): Properly handle appending of the localTom Yu2002-08-142-1/+13
| | | | | | realm, which was botched due to a buffer-overflow patch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14708 dc483132-0cff-0310-8789-dd5450dbe970
* * xdr.c (xdr_string): Fix off-by-one error; we're not vulnerable,Tom Yu2002-08-122-1/+6
| | | | | | since we don't call it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14701 dc483132-0cff-0310-8789-dd5450dbe970
* Miscellaneous additional shuffling (variable renaming or reordering, whitespaceKen Raeburn2002-08-103-152/+80
| | | | | | | changes, deleting unused code, adding or removing braces) to make cc_file.c and cc_stdio.c more similar. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14700 dc483132-0cff-0310-8789-dd5450dbe970