summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* krb5_change_set_password should free chpw_rep contentsAlexandra Ellwood2008-10-211-0/+2
| | | | | | ticket: 6214 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20902 dc483132-0cff-0310-8789-dd5450dbe970
* Use asprintf instead of malloc/strcpy/strcat in many placesGreg Hudson2008-10-2018-168/+53
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20901 dc483132-0cff-0310-8789-dd5450dbe970
* Apply adapted patch from http://bugs.debian.org/480434 to recurse intoTom Yu2008-10-201-0/+13
| | | | | | | | SPNEGO creds when attempting to retrieve a mechanism cred. ticket: 5807 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20900 dc483132-0cff-0310-8789-dd5450dbe970
* Apply (adapted) patch from Apple to check for SPNEGO mechanism inTom Yu2008-10-203-19/+48
| | | | | | | | export_lucid_sec_ctx. ticket: 6015 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20899 dc483132-0cff-0310-8789-dd5450dbe970
* Use strdup in place of malloc/strcpy in many placesGreg Hudson2008-10-2050-165/+70
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20898 dc483132-0cff-0310-8789-dd5450dbe970
* Include k5-platform.h for SIZE_MAXEzra Peisach2008-10-191-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20897 dc483132-0cff-0310-8789-dd5450dbe970
* In krb5_def_store_mkey(), mktemp was being invoked with a string WRFILE:....Ezra Peisach2008-10-191-9/+8
| | | | | | | | | | | | | | This returns an error - as it actually tries to open the file. Move some of the logic that points to the actual filename earlier - so mktemp works on the .... portion. Note that the netbsd linker gives a warning on using mktemp as it may be insecure - but there is no obvious way to avoid it. ticket: new subhect: netbsd mktemp actually tries to open file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20896 dc483132-0cff-0310-8789-dd5450dbe970
* Make all dialogs beyond the change password sheet also appear as sheetsJustin Anderson2008-10-174-89/+147
| | | | | | ticket:6145 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20894 dc483132-0cff-0310-8789-dd5450dbe970
* Adapted patch from Apple to work around SAMBA mech OID quirks and toTom Yu2008-10-171-39/+37
| | | | | | | | disable sending request flags. ticket: 6016 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20893 dc483132-0cff-0310-8789-dd5450dbe970
* Stop using -[NSWindow setIgnoresMouseEvents:] and manage enabled state of ↵Justin Anderson2008-10-173-16/+342
| | | | | | | | each control individually with bindings ticket:6198 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20890 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent continues to ignore mouse events after errorJustin Anderson2008-10-171-0/+1
| | | | | | | | Problem when trying to change password from behind a NAT. The ensuing error dialog ignores mouse events, making it impossible to dismiss. ticket:new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20889 dc483132-0cff-0310-8789-dd5450dbe970
* temporary testing codeAlexandra Ellwood2008-10-171-5/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20888 dc483132-0cff-0310-8789-dd5450dbe970
* KLCreatePrincipalFromTriplet should work with empty instanceAlexandra Ellwood2008-10-171-5/+12
| | | | | | | | | Fixed bug where shim layer was calling kim_identity_create_from_components incorrectly in this case. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20887 dc483132-0cff-0310-8789-dd5450dbe970
* Added back KLL test programsAlexandra Ellwood2008-10-172-0/+583
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20886 dc483132-0cff-0310-8789-dd5450dbe970
* Double free and leak in kim_os_library_get_application_pathAlexandra Ellwood2008-10-171-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20885 dc483132-0cff-0310-8789-dd5450dbe970
* Remap some of the more confusing krb5 errorsAlexandra Ellwood2008-10-172-23/+56
| | | | | | | | Also enlarged last error buffer for UTF8 strings with multibyte chars. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20884 dc483132-0cff-0310-8789-dd5450dbe970
* Treat unreadable terminal as user cancelled so regression tests workAlexandra Ellwood2008-10-171-3/+12
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20883 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure identity is set when using kim prompterAlexandra Ellwood2008-10-171-0/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20882 dc483132-0cff-0310-8789-dd5450dbe970
* Use a context to store error table infoAlexandra Ellwood2008-10-171-8/+18
| | | | | | | | | | Just sticking an einfo on the stack doesn't work because it's not initialized. Also the detailed error message doesn't end up propogated back to KIM. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20881 dc483132-0cff-0310-8789-dd5450dbe970
* When change password is called from the Select Identity dialog, it appears ↵Justin Anderson2008-10-163-14/+64
| | | | | | | | as a sheet on that dialog instead of popping up as a separate window ticket:6145 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20880 dc483132-0cff-0310-8789-dd5450dbe970
* Fix tests/misc/Makefile.in to use KRB5_BASE_LIBS instead of KRB5_LIB,Greg Hudson2008-10-161-2/+2
| | | | | | | making it consistent with other programs we build. KRB5_LIB by itself may not find dependent libraries if they haven't been installed yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20879 dc483132-0cff-0310-8789-dd5450dbe970
* Make it possible to make identities use default ticket optionsJustin Anderson2008-10-1610-293/+755
| | | | | | | | | | - Made KerberosAgent compatible with KIM's way of passing about NULL to mean "Use default options" - Added "Use default ticket options" checkbox to both ticket options dialogs. - Hid ticket options of select identity dialog by default, visible via the "Show Options" "Hide Options" toggle. ticket:6147 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20878 dc483132-0cff-0310-8789-dd5450dbe970
* remove unused variable in kim_ui_cli_ask_change_passwordAlexandra Ellwood2008-10-151-2/+0
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20877 dc483132-0cff-0310-8789-dd5450dbe970
* Untabify. Normalize whitespace. Reindent. Fix some of the mostTom Yu2008-10-1566-8076/+8163
| | | | | | | egregious formatting quirks. Add emacs mode settings to flag untabified source files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20876 dc483132-0cff-0310-8789-dd5450dbe970
* use KIM_BUILTIN_UI instead of LEAN_CLIENT for builtin UIAlexandra Ellwood2008-10-155-27/+26
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20875 dc483132-0cff-0310-8789-dd5450dbe970
* Move GUI/CLI detection from KerberosIPC into KIMAlexandra Ellwood2008-10-151-8/+39
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20874 dc483132-0cff-0310-8789-dd5450dbe970
* Merge KerberosIPC into k5_mig supportAlexandra Ellwood2008-10-155-117/+482
| | | | | | | | | Now that there are no servers using only kipc_* calls, merge them into the k5_mig_* calls. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20873 dc483132-0cff-0310-8789-dd5450dbe970
* handle stash file names with missing keytab type spec and colon in pathKen Raeburn2008-10-152-1/+8
| | | | | | | | | | | | | | | | | | | | Currently the keytab name resolution code will pass off any name with no colon to the default keytab type handler, which is the FILE handler. It will also check for Windows file names consisting of one letter followed by a colon, and treat them as FILE specs also. If a UNIX pathname contains a colon, however, and no type was explicitly specified, the leading part of the pathname gets treated as a type name and fails to match anything. It should instead treat type-less names starting with "/" as FILE specs also. Tweak the test suite to use such a name. Report and patch from Apple. rdar://problem/6179239 ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20872 dc483132-0cff-0310-8789-dd5450dbe970
* Now that we have support for conditionally exporting symbols from the supportKen Raeburn2008-10-154-75/+124
| | | | | | library, use that for the [v]asprintf replacement functions when needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20871 dc483132-0cff-0310-8789-dd5450dbe970
* makedependKen Raeburn2008-10-151-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20870 dc483132-0cff-0310-8789-dd5450dbe970
* Pre-populate new clients with default client identity if that is set, as ↵Justin Anderson2008-10-141-0/+22
| | | | | | | | found by kim_preferences_get_client_identity() ticket:6183 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20869 dc483132-0cff-0310-8789-dd5450dbe970
* Don't wipe out previously entered information with each new call from clientsJustin Anderson2008-10-141-6/+9
| | | | | | ticket: 6143 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20868 dc483132-0cff-0310-8789-dd5450dbe970
* kim test suite reports error messages incorrectlyAlexandra Ellwood2008-10-141-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20867 dc483132-0cff-0310-8789-dd5450dbe970
* Free error message returned by krb5_get_error_messageAlexandra Ellwood2008-10-141-0/+2
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20866 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_string_create_localized leaks CFStringRefAlexandra Ellwood2008-10-101-0/+2
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20865 dc483132-0cff-0310-8789-dd5450dbe970
* Test KIM pluginAlexandra Ellwood2008-10-101-0/+472
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20864 dc483132-0cff-0310-8789-dd5450dbe970
* always zero out authentication stringsAlexandra Ellwood2008-10-101-3/+6
| | | | | | | | | strings returned by the UI are usually passwords or pins and should not get dripped all over memory. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20863 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ui_plugin_fini sends pointer to context instead of contextAlexandra Ellwood2008-10-101-1/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20862 dc483132-0cff-0310-8789-dd5450dbe970
* allow kim ui plugins to have any nameAlexandra Ellwood2008-10-101-2/+1
| | | | | | | | | | Note that there can still only be one, it will just use the first one it finds. Just want to have different names for them so that we can distinguish between different plugins. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20861 dc483132-0cff-0310-8789-dd5450dbe970
* change password should always reprompt on errorAlexandra Ellwood2008-10-101-12/+8
| | | | | | | | | | Since it collects the password ahead of time, the prompt count won't get incremented. Checking whether it called auth_prompt is useless. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20860 dc483132-0cff-0310-8789-dd5450dbe970
* Missing keys in KerberosAgent Info.plistAlexandra Ellwood2008-10-091-0/+4
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20856 dc483132-0cff-0310-8789-dd5450dbe970
* prefs should not create empty dictionary for KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-091-6/+7
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20855 dc483132-0cff-0310-8789-dd5450dbe970
* preferences should handle KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-095-11/+9
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20854 dc483132-0cff-0310-8789-dd5450dbe970
* kim_options_create sometimes returns KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-091-1/+12
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20853 dc483132-0cff-0310-8789-dd5450dbe970
* KL APIs which take a NULL principal return klParameterErrAlexandra Ellwood2008-10-094-85/+105
| | | | | | | | | Fixed by making kim_ccache_create_from_client_identity take KIM_IDENTITY_ANY (at which point it returns the system default ccache). ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20850 dc483132-0cff-0310-8789-dd5450dbe970
* Crash in kim_credential_create_from_keytabAlexandra Ellwood2008-10-091-1/+1
| | | | | | | | Was dereferencing NULL freeing creds. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20849 dc483132-0cff-0310-8789-dd5450dbe970
* kim_options_copy should allow in_options to be KIM_OPTIONS_DEFAULTAlexandra Ellwood2008-10-091-1/+0
| | | | | | | | (Don't error on NULL in_options) ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20848 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent should log lessJustin Anderson2008-10-081-1/+0
| | | | | | | | Remove auto-quit log message, "No active clients. Terminating." ticket:new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20847 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unused header file include.Alexandra Ellwood2008-10-081-1/+0
| | | | | | | | (Not necessary for fix, just a cleanup) ticket: 6146 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20846 dc483132-0cff-0310-8789-dd5450dbe970
* Ignore user interaction while busy. Done by toggling ignoresMouseEvents on ↵Justin Anderson2008-10-082-9/+28
| | | | | | | | auth dialogs ticket:6144 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20845 dc483132-0cff-0310-8789-dd5450dbe970