summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge in data tree sharing, minus locking support, plus a bugfix or twoKen Raeburn2002-12-204-9/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | * prof_int.h (SHARE_TREE_DATA): Define. (struct _prf_file_t) [SHARE_TREE_DATA]: Make data field a pointer rather than an array. (struct global_shared_profile_data): New type, for profile library global data. (krb5int_profile_shared_data): Declare new variable. (g_shared_trees): New macro, refers to a field in the global data. (PROFILE_FILE_SHARED): New flag macro. * prof_file.c (krb5int_profile_shared_data): Initialize here. (profile_open_file) [SHARE_TREE_DATA]: Scan g_shared_trees for an entry with the same filename. If found, increment its reference count, update it, and return it; otherwise, allocate a new one, and add it to the list after filling it in. (profile_dereference_data): New function. Decrement reference count if SHARE_TREE_DATA, and free the data if appropriate. (profile_free_file): Call profile_dereference_data. (profile_free_file_data) [SHARE_TREE_DATA]: If the SHARED flag is set, remove it from the g_shared_trees list before freeing. Free up the allocated space. * prof_set.c (rw_setup) [SHARE_TREE_DATA]: If the object's data is shared, copy it into a new data structure not in the global shared list, and dereference the old one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15060 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore some new generated filesKen Raeburn2002-12-192-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15059 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up some broken uses of "const" in function interfacesKen Raeburn2002-12-196-40/+63
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15058 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check): Remove test_db before running testsKen Raeburn2002-12-192-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15057 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/init-v2.exp (test150, test151, test153): Don't try to set KRB5CCNAME;Ken Raeburn2002-12-193-3/+10
| | | | | | | | | | only the fact that it wasn't being done correctly prevented it from causing test failures. * lib/lib.t (kinit): If kinit reports a problem initializing the credentials cache, raise an error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15056 dc483132-0cff-0310-8789-dd5450dbe970
* * init_db (qualname): If "kdb5_util create" fails, exitKen Raeburn2002-12-192-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15055 dc483132-0cff-0310-8789-dd5450dbe970
* * env-setup.shin: Set KRB5CCNAME to something under $K5ROOTKen Raeburn2002-12-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15054 dc483132-0cff-0310-8789-dd5450dbe970
* * RealmsConfig-glue.c: Fix up KRB5_CALLCONVTom Yu2002-12-183-3/+9
| | | | | | * win_store.c (krb__get_srvtabname): Add const to parameter. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15053 dc483132-0cff-0310-8789-dd5450dbe970
* Fix some 64-bit problemsKen Raeburn2002-12-182-8/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15052 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_GETSOCKNAME_ARGS, KRB5_GETPEERANME_ARGS): Check forKen Raeburn2002-12-182-2/+7
| | | | | | socklen_t pointer as second argument. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15051 dc483132-0cff-0310-8789-dd5450dbe970
* * tkt_string.c (krb5_set_tkt_string): Add KRB5_CALLCONVTom Yu2002-12-163-2/+8
| | | | | | * win_glue.c (krb_set_tkt_string): Add KRB5_CALLCONV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15050 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to allow compilation --with-system-db and --enable-sharedEzra Peisach2002-12-164-6/+23
| | | | | | (Do not depend on lib/db.so being present) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15049 dc483132-0cff-0310-8789-dd5450dbe970
* * ad_print.c, g_in_tkt.c, g_pw_in_tkt.c, kadm_net.c, klog.c:Tom Yu2002-12-1415-78/+225
| | | | | | | | | | * kuserok.c, log.c, memcache.c, netread.c, netwrite.c: * password_to_key.c, recvauth.c, stime.c, tkt_string.c: Change _WINDOWS to _WIN32 in many places. Update copyright notices. Remove _WINDOWS handling completely in a few places where it's not needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15048 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-12-123-16/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15047 dc483132-0cff-0310-8789-dd5450dbe970
* More KfM merge workTom Yu2002-12-1227-931/+1772
| | | | | | | | | | | | | | | | | | | | | | | | Create new file FSp-glue.c including KfM functions that had previously been scattered through various other files. Port RealmsConfig-glue.c from KfM, including old Unix-ish krb4 configuration code as fallback. Remove other files containing old realm/config file support. Add KRB5_CALLCONV to krb_get_in_tkt_creds. Fix various functions to take const char* as arguments now that tkt_string() returns const. Assorted minor cleanup. Implement krb_get_err_text in terms of com_err. Implement gross kludge to force krb_err_txt to remain in sync with com_err. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15046 dc483132-0cff-0310-8789-dd5450dbe970
* Fix depend rules to keep state about whether verification of variousTom Yu2002-12-1211-57/+200
| | | | | | | | things succeeded. Change some double colons to single colons. Add a new depend-dependencies target to allow Makefile.in to specify things that must be built for depend to work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15045 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.hin: Update comment on krb5_kt_free_entry prototype toTom Yu2002-12-122-1/+6
| | | | | | point at the correct recommended function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15044 dc483132-0cff-0310-8789-dd5450dbe970
* * et_h.awk: It's "const struct error_table et_" in the c file, soTom Yu2002-12-122-1/+6
| | | | | | it's now const here too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15043 dc483132-0cff-0310-8789-dd5450dbe970
* * post.in: depfix2.sed -> .depfix2.sed to avoid a little clutterTom Yu2002-12-092-6/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15042 dc483132-0cff-0310-8789-dd5450dbe970
* Fix prototypes for *_wrapper_3Sam Hartman2002-12-092-7/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15041 dc483132-0cff-0310-8789-dd5450dbe970
* * misc.h: Rename prototypes from chpass_principal_wrapper andEzra Peisach2002-12-092-7/+13
| | | | | | | randkey_principal_wrapper to chpass_principal_wrapper_3 and randkey_principal_wrapper_3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15040 dc483132-0cff-0310-8789-dd5450dbe970
* * sendmsg.c (krb524_sendto_kdc): Update calls to locate_server()Tom Yu2002-12-072-2/+9
| | | | | | | | | and locate_kdc() to restrict protocol family to IPv4. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15039 dc483132-0cff-0310-8789-dd5450dbe970
* Fix some KRB5_CALLCONV botches that were causing trouble for Windows buildTom Yu2002-12-0714-297/+150
| | | | | | | | | | | | | | Update send_to_kdc() to use various krb5 internals to talk to the krb4 KDC. Add a new internal function to optionally return the local address used to talk to the KDC. Many changes to lib/krb5/os to support this. Fix bug in krb5int_sendto() that prevented correct UDP length from being returned. Update callers of internal locate_* and sendto_* functions. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15038 dc483132-0cff-0310-8789-dd5450dbe970
* Checkpoint first step of merge.Ken Raeburn2002-12-078-101/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved per-file data into a separate object from the profile handle. Dropped some old MacOS 9 code. * prof_int.h: Include Mac OS X versions of header files if appropriate. Only include prof_err.h if profile.h doesn't define ERROR_TABLE_BASE_prof. (struct _prf_data_t): Move most of contents of _prf_file_t here. Add reference count. (prf_data_t): New typedef. (struct _prf_file_t): Include an array of one _prf_data_t structure. * prof_file.c (profile_open_file): Fill in "data" field. Drop some old Mac specific code. (profile_flush_file_data): Renamed from profile_flush_file, now takes prf_data_t argument. (profile_flush_file_data): Likewise. (profile_free_file): Now calls profile_free_file_data. (profile_free_file_data): New function, with most of old profile_free_file code. * prof_init.c (profile_init_path): Removed old Mac version. (profile_ser_size, profile_ser_externalize): Get file data from new "data" field. * prof_set.c (rw_setup, profile_update_relation, profile_clear_relation, profile_rename_section, profile_add_relation): Likewise. * prof_tree.c (profile_node_iterator): Likewise. * test_profile.c (do_batchmode): Likewise. * prof_int.h (profile_flush_file): Now a macro. * prof_err.et (PROF_MAGIC_FILE_DATA): New error code value. ticket: 1237 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15037 dc483132-0cff-0310-8789-dd5450dbe970
* * prof_get.c (conf_yes, conf_no): Entries now point to const.Ken Raeburn2002-12-072-4/+10
| | | | | | (profile_parse_boolean): Updated type of 'p' correspondingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15036 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean-unix): Remove krb5-configEzra Peisach2002-12-062-1/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15035 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean): Clean up more test executables and objectEzra Peisach2002-12-063-3/+9
| | | | | | files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15034 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote the argument to AC_CHECK_HEADER. AutoconfEzra Peisach2002-12-064-2/+12
| | | | | | 2.57 was having problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15033 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Quote the argument to AC_CHECK_HEADER. AutoconfEzra Peisach2002-12-062-1/+6
| | | | | | 2.57 was having problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15032 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-12-061-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15031 dc483132-0cff-0310-8789-dd5450dbe970
* * kname_parse.c (kname_unparse): Add new function ported fromTom Yu2002-12-062-0/+141
| | | | | | KfM, including support functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15030 dc483132-0cff-0310-8789-dd5450dbe970
* 2002-12-05 Sam Hartman <hartmans@mit.edu>Sam Hartman2002-12-062-23/+28
| | | | | | | | | * util_token.c (g_verify_token_header g_make_token_header): Accept -1 to mean that no token type is expected; the token type is purely an RFC 1964 artifact and is not used in other mechanisms such as SPNEGO. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15029 dc483132-0cff-0310-8789-dd5450dbe970
* * decomp_tkt.c (decomp_ticket): Add KRB5_CALLCONVTom Yu2002-12-052-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15028 dc483132-0cff-0310-8789-dd5450dbe970
* * krb4int.h: Remove now conflicting prototype forTom Yu2002-12-052-3/+3
| | | | | | krb_set_lifetime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15027 dc483132-0cff-0310-8789-dd5450dbe970
* * des.h: Move explicit definition of _WINDOWS to precedeTom Yu2002-12-042-4/+6
| | | | | | conditionalized inclusion of win-mac.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15026 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm.h: Include port-sockets.h, not netinet/in.h, for WindowsTom Yu2002-12-042-1/+6
| | | | | | portability. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15025 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Fix up includes handling somewhatTom Yu2002-12-042-14/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15024 dc483132-0cff-0310-8789-dd5450dbe970
* Update Windows build for kadm_err.*Tom Yu2002-12-034-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15023 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (kadm_err.h): Build hereTom Yu2002-12-032-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15022 dc483132-0cff-0310-8789-dd5450dbe970
* * change_password.c: Remove netdb.h inclusionTom Yu2002-12-032-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15021 dc483132-0cff-0310-8789-dd5450dbe970
* * post.in (clean-unix): Clean depfix2.sed as wellTom Yu2002-11-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15020 dc483132-0cff-0310-8789-dd5450dbe970
* upde dependenciesTom Yu2002-11-271-17/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15019 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add kadm_err.c. It was missingTom Yu2002-11-272-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15018 dc483132-0cff-0310-8789-dd5450dbe970
* * depfix.sed: Remove tcl-specific headers from dependencies.Tom Yu2002-11-272-2/+10
| | | | | | Delete now obsolete comment about gcc-specific directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15017 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesTom Yu2002-11-279-52/+76
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15016 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Set SETENVSRC correctlyTom Yu2002-11-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15015 dc483132-0cff-0310-8789-dd5450dbe970
* Merge more KfM krb4 thingsTom Yu2002-11-2737-933/+1953
| | | | | | | | | | | | | | | | | | Implement *_in_tkt_creds, mk_req_creds, and rd_req_int functions. Implement KfM krb4 kadm password changing, mostly by pulling in the client side of the kadm library into the krb4 library. Do some more header file cleanup of des.h and krb.h. Remove some ancient krb4 dead weight. Some Mac-specific functionality still needs to be merged. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15014 dc483132-0cff-0310-8789-dd5450dbe970
* Remove references to kadm_err.et for now, since the requisite changesTom Yu2002-11-194-7/+10
| | | | | | have not yet been committed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15013 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test for speed_t being presentEzra Peisach2002-11-157-17/+52
| | | | | | | | | * sys_term.c (addarg): When reallocing memory, ensure in size of pointer. Use speed_t instead of int for termspeeds. * authenc.c, ext.h, state.c, utility.c: Unsigned/signed cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15012 dc483132-0cff-0310-8789-dd5450dbe970
* * sys_bsd.c: Moved declaration for susp() to type of file andEzra Peisach2002-11-159-53/+85
| | | | | | | | | | | | | provide prototype. * commands.c, externs.h, telnet.c, network.c: Add prototype declaration for command handler table dispatch functions. Make functions called consistant with prototype. Misc unsigned/signed cleanups. * authenc.c, main.c, utilities.c: Signed vs. unsigned cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15011 dc483132-0cff-0310-8789-dd5450dbe970