summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Initial enhanced error message support, similar to what I sent toKen Raeburn2006-03-267-1/+103
| | | | | | | | | | | | | | | | krbdev except for some function renaming (krb5_free_error was already in use, so added _message to everything), and the context is allowed to be NULL (in which case we fall back to error_message() and storing no strings) to simplify some code. Low-level routines in the support library, using a private data structure; higher-level routines in libkrb5, using a krb5_context. Added error info strings to the KRB_ERR_GENERIC case in gc_via_tkt.c and the python sample service location plugin. Added code to kinit and kvno to look up and display the strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17776 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Use RUN_SETUP for t_deltatKen Raeburn2006-03-132-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17737 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Use RUN_SETUPKen Raeburn2006-03-132-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17736 dc483132-0cff-0310-8789-dd5450dbe970
* Instead of arbitrary division of headers into include and include/krb5, withKen Raeburn2006-03-1163-1120/+1116
| | | | | | | | | | | | include directives sometimes using krb5/foo.h and sometimes using foo.h, and -I options always given for both directories in both source and build trees, push include/krb5/* up a level and drop the krb5 directory (except, for the moment, the change log). Updated #include directives, -I options, and dependencies accordingly, and deleted one or two bits of old, unused code that was noticed in the process. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17730 dc483132-0cff-0310-8789-dd5450dbe970
* Add a new recursive target "generated-files-mac", for producing theKen Raeburn2006-03-114-0/+12
| | | | | | | generated files that lxs wants to feed into the Mac build system. (First approximation, may want some fine tuning later.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17728 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (module_locate_server): Don't set cbdata.lp at initialization ↵Ken Raeburn2006-03-092-1/+7
| | | | | | time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17724 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-084-91/+142
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17716 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5.c: Don't include pthread.hKen Raeburn2006-03-082-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17711 dc483132-0cff-0310-8789-dd5450dbe970
* make dependKen Raeburn2006-03-0831-336/+671
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17708 dc483132-0cff-0310-8789-dd5450dbe970
* krb5.h, which is built after util/et, which is built after the supportKen Raeburn2006-03-082-1/+5
| | | | | | | | | | | | | code. Fix: Put service location decls in k5-locate.h, pull plugin support decls out of k5-int.h into k5-plugin.h, and make it stand on its own, which includes changing the return type from krb5_error_code to int32_t. Oops: The plugin support code included k5-int.h, which includes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17707 dc483132-0cff-0310-8789-dd5450dbe970
* Merge from plugin branchKen Raeburn2006-03-0712-177/+442
| | | | | | | | | | | | | | | | | | | | | | | | | Add plugin support: - plugin routines in support library (may break windows build!) - plugin support in KDC location code - sample Python-based plugin for KDC location, not built without tweaking sources - changed service location interface to use an enum instead of passing profile string and DNS strings and port numbers - changed pathnames for plugin locations, including kdb back end - remove locate_service from accessor API Also, do build shared libraries for Darwin just like any other UNIX box. Not present yet: - use new plugin interface for kdb back end - Windows support - Mac bundle support (but dlopen support works) - search path for libkrb5 plugins (only one hard-coded directory for now) - sorting of plugin collections for predictable ordering See the various ChangeLogs for specifics. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17706 dc483132-0cff-0310-8789-dd5450dbe970
* 2006-03-07 Jeffrey Altman <jaltman@mit.edu>Jeffrey Altman2006-03-072-0/+14
| | | | | | | | | | | | * acquire_cred.c: (acquire_init_cred) If the leash32.dll is not available, fallback to opening the default credential cache even when the desired_name is provided. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17704 dc483132-0cff-0310-8789-dd5450dbe970
* Qing Dong <dongq@mit.edu> provided a set of changes to allowJeffrey Altman2006-02-274-112/+130
| | | | | | | | | | | | | krb5 to build under the Microsoft Visual Studio 8 compiler in 64-bit mode and produce file names that do not conflict with the names produced by the 32-bit build. That patch was modified to work on Unix and also include processor dependent pre-processor definitions to remove warnings. ticket: 3415 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17680 dc483132-0cff-0310-8789-dd5450dbe970
* Mark #else of KDB5_STATIC_LINK with ifdef nameSam Hartman2006-01-271-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17631 dc483132-0cff-0310-8789-dd5450dbe970
* Note that caller must free result of conf_get_sectionSam Hartman2006-01-272-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17630 dc483132-0cff-0310-8789-dd5450dbe970
* Define new error codes for errors loading dal plugins.Sam Hartman2006-01-274-5/+19
| | | | | | Use these error codes to report plugin load errors. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17629 dc483132-0cff-0310-8789-dd5450dbe970
* update copyright datesKen Raeburn2006-01-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17622 dc483132-0cff-0310-8789-dd5450dbe970
* add/update copyright notices for non-trivial code additions/changes in 2006Ken Raeburn2006-01-261-0/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17621 dc483132-0cff-0310-8789-dd5450dbe970
* Delete the rest of the support in the kdb library for doing locking onKen Raeburn2006-01-254-94/+28
| | | | | | | | | | behalf of the plugin library. Convert the remaining locking code (for protecting the list of plugins loaded) to use the k5_ macros. ticket: 3416 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17612 dc483132-0cff-0310-8789-dd5450dbe970
* Remove the thread-safety flag from the kdb plugin interface. Instead,Ken Raeburn2006-01-253-22/+11
| | | | | | | | | | | | | | have the kdb code assume the plugin is thread safe, and implement some quick and dirty wrapper functions in the db2 plugin to make it use a local mutex. There's still some mutex code in the kdb library that should be reviewed, and simplified or removed. ticket: 3416 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17611 dc483132-0cff-0310-8789-dd5450dbe970
* Include the support library when linking various test programs, because onKen Raeburn2006-01-1814-23/+54
| | | | | | | | | Solaris, with the vendor compiler, we'll always get references to krb5int_pthread_loaded due to unused inline functions not being eliminated. (Also inclued it in dependencies, and use CC_LINK when it wasn't used before.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17592 dc483132-0cff-0310-8789-dd5450dbe970
* Remove krb5_callconv from non-exported internal functionSam Hartman2006-01-112-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17585 dc483132-0cff-0310-8789-dd5450dbe970
* * gc_frm_kdc.c: Rewrite to modularize significantly. (~400-lineTom Yu2005-12-302-381/+752
| | | | | | | | | | | functions do not deserve to live.) The outer loop no longer explicitly attempts the direct path to the target; that attempt has been folded into the inner loop. Remove some redundant credential lookups present in the old code. Treat unexpected realm referrals as soft errors, in case some intermediate KDC disagrees with client regarding a transit path. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17579 dc483132-0cff-0310-8789-dd5450dbe970
* * gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Cause free_tgt andTom Yu2005-12-282-12/+19
| | | | | | | | | | | | free_otgt to track the states of tgt and otgt correctly, to avoid a double-free condition which previously happened when this function returned to krb5_get_credentials(), which proceeded to free a previously freed TGT in the returned TGT list. ticket: 3313 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17578 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_crc): Build against support library.Ken Raeburn2005-12-022-3/+8
| | | | | | (check-unix): Use $(RUN_SETUP). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17543 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5.c (kdb_load_library): Make dbpath_names static, to keep Solaris nativeKen Raeburn2005-12-022-1/+11
| | | | | | compiler happier. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17537 dc483132-0cff-0310-8789-dd5450dbe970
* Increase size of PurgeRequest buffers for MSLSAJeffrey Altman2005-12-022-2/+6
| | | | | | | | | | | | | | Increase the size of the PurgeRequest buffers for MSLSA. Windows 2003 SP1 is writing beyond the end of the buffer during the Lsa call. ticket: new status: resolved component: krb5-libs target_version: 1.4.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17531 dc483132-0cff-0310-8789-dd5450dbe970
* make dependTom Yu2005-11-2932-1505/+1115
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17505 dc483132-0cff-0310-8789-dd5450dbe970
* don't break make depend in lib/crypto on k5-int.h orderingTom Yu2005-11-293-6/+6
| | | | | | | | | | * t_cts.c, vectors.c: Don't include krb5.h. ticket: new tags: pullup target_version: 1.4.4 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17504 dc483132-0cff-0310-8789-dd5450dbe970
* * t_hmac.c, t_pkcs5.c: Don't include krb5.hKen Raeburn2005-11-183-2/+4
| | | | | | ticket: 3236 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17499 dc483132-0cff-0310-8789-dd5450dbe970
* Fix additional cases where krb5.h is included before k5-int.h. In most cases,Ken Raeburn2005-11-1815-8/+34
| | | | | | | | | | | it suffices to remove the inclusion of k5-int.h, sometimes including errno.h or another header. In a couple cases, include order has been changed, or k5-int.h has been included instead of krb5.h. ticket: 3236 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17494 dc483132-0cff-0310-8789-dd5450dbe970
* This commit ensures that all files in the library includeJeffrey Altman2005-11-1512-7/+27
| | | | | | | | | | | k5-int.h before krb5.h is included either directly or indirectly. This is to allow Kerberos to use pre-processor symbols to choose configurations of C run time library headers without affecting third party applications. ticket: 3236 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17489 dc483132-0cff-0310-8789-dd5450dbe970
* * Correct function prototypes that should have been using Jeffrey Altman2005-11-154-6/+18
| | | | | | | | | | | | | | krb5_timestamp in order to prevent type conflicts if krb5_timestamp ever becomes a 64-bit value * Force the use of 32-bit time_t with Microsoft's VS 2005 compiler on 32-bit platforms * Test for inclusion of krb5.h before k5-int.h ticket: 2883 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17488 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi32.def: export missing functionsJeffrey Altman2005-10-311-0/+7
| | | | | | | | | | | gss_krb5_set_allowable_enctypes gss_krb5_export_lucid_sec_context gss_krb5_free_lucid_sec_context ticket: 3219 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17470 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi32.def: export missing functionsJeffrey Altman2005-10-311-0/+3
| | | | | | | | | | gss_krb5_set_allowable_enctypes gss_krb5_export_lucid_sec_context gss_krb5_free_lucid_sec_context ticket: 3219 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17469 dc483132-0cff-0310-8789-dd5450dbe970
* * acquire_cred.c (acquire_init_cred):Jeffrey Altman2005-10-314-20/+58
| | | | | | | | | | | | | | If a specific principal has been requested, attempt to acquire tickets and set the ccache name in the context to the ccache containing the tickets if obtained. (KFM/KFW) * ccdefault.c: (krb5int_cc_default) - add KFW support for multiple ccaches ticket: 3223 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17468 dc483132-0cff-0310-8789-dd5450dbe970
* When passed GSS_C_INITIATE and a non-NULL desired name, gss_acquire_cred Alexandra Ellwood2005-10-271-0/+36
| | | | | | | | | | | | should search the available credentials caches rather than simply failing if tickets for the desired client principal are not in the default ccache. (this is the KfM-specific portion of the patch -- still need KfW portion) ticket: 3223 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17466 dc483132-0cff-0310-8789-dd5450dbe970
* cc_mslsa.c: Jeffrey Altman2005-10-202-9/+16
| | | | | | | | | | | - provide defaults for client and server names in purge ticket routines - properly size the buffers used to store the names. ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17440 dc483132-0cff-0310-8789-dd5450dbe970
* gssapi_krb5.hin: Add missing GSS_DLLIMP modifiers to all exportedJeffrey Altman2005-10-202-8/+12
| | | | | | | | | | data objects exported from the gssapi32.lib so that the applications that link to it know that it is there. ticket: 3189 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17439 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_ser): Add dl library and thread link options, since kdb5Ken Raeburn2005-10-192-1/+6
| | | | | | library is linked in and needs them. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17436 dc483132-0cff-0310-8789-dd5450dbe970
* * arcfour_s2k.c (asctouni): Counter should be size_t, like lenKen Raeburn2005-10-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17435 dc483132-0cff-0310-8789-dd5450dbe970
* * libkadm5srv.exports: Don't export internal error-table symbols, or osa*Ken Raeburn2005-10-142-27/+5
| | | | | | symbols that no longer exist in this library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17428 dc483132-0cff-0310-8789-dd5450dbe970
* * libkadm5clnt.exports: Don't export internal error-table symbolsKen Raeburn2005-10-142-4/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17427 dc483132-0cff-0310-8789-dd5450dbe970
* * lock-test.c (main): Don't call error table initialization routines;Ken Raeburn2005-10-142-4/+5
| | | | | | kadm5_init* routines will do that. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17426 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Include support library. Don't include systemKen Raeburn2005-10-112-1/+4
| | | | | | db library (if in use). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17416 dc483132-0cff-0310-8789-dd5450dbe970
* * libkdb5.exports: Delete __kdb2_*, kdb2_*, and a bunch of other symbols thatKen Raeburn2005-10-112-115/+5
| | | | | | no longer exist in this library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17415 dc483132-0cff-0310-8789-dd5450dbe970
* partial doc on Novell changesKen Raeburn2005-10-111-17/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17414 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Don't pull in libdb on AIX any moreKen Raeburn2005-10-102-8/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17413 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (DBDIR, DBOBJLISTS, DBOBJLISTS-sys, DBOBJLISTS-k5): VariablesKen Raeburn2005-10-042-8/+5
| | | | | | | deleted. (STOBJLISTS): Don't include DBOBJLISTS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17406 dc483132-0cff-0310-8789-dd5450dbe970
* * api.2/init-v2.exp: Temporarily disabled test103Ken Raeburn2005-10-042-1/+8
| | | | | | | ticket: 3202 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17404 dc483132-0cff-0310-8789-dd5450dbe970