summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Add test for kim_identity_create_from_componentsAlexandra Ellwood2008-10-243-0/+54
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20917 dc483132-0cff-0310-8789-dd5450dbe970
* Add build system support for strlcpy and strlcat on platforms which doGreg Hudson2008-10-244-0/+114
| | | | | | | | | not provide it natively. ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20916 dc483132-0cff-0310-8789-dd5450dbe970
* Use CFStringGetCStringPtr if possible to avoid wasting memoryAlexandra Ellwood2008-10-241-12/+25
| | | | | | | | since CFStringGetMaximumSizeForEncoding is wasteful for UTF8. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20914 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for localizing krb5 errors on Mac OS X.Alexandra Ellwood2008-10-241-2/+67
| | | | | | | | | Split into a separate function to make it easier to add support for other localization techniques. ticket: 6245 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20913 dc483132-0cff-0310-8789-dd5450dbe970
* Use snprintf instead of strcpy/strcat in many placesGreg Hudson2008-10-2315-108/+80
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20912 dc483132-0cff-0310-8789-dd5450dbe970
* Free global mach ports on library unloadAlexandra Ellwood2008-10-231-2/+19
| | | | | | ticket: 6248 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20911 dc483132-0cff-0310-8789-dd5450dbe970
* Fix previous commit by adding "extern" to header declarations forTom Yu2008-10-221-2/+2
| | | | | | | | | | SPNEGO mechanism OID stuff. It was causing tentative definition issues on the Mac. (where there are constraints about common-block symbols) ticket: 6015 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20910 dc483132-0cff-0310-8789-dd5450dbe970
* KIM should only display error dialogs if it has displayed UI alreadyAlexandra Ellwood2008-10-221-21/+11
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20909 dc483132-0cff-0310-8789-dd5450dbe970
* Remove ipc message sent on cc_context_releaseAlexandra Ellwood2008-10-224-34/+17
| | | | | | | | | IPC message was causing problems when called from thread fini function (via krb5_stdcc_shutdown). ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20908 dc483132-0cff-0310-8789-dd5450dbe970
* kim_identity_change_password_with_credential leaks krb5_credsAlexandra Ellwood2008-10-211-0/+3
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20907 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_library_get_caller_name leaks file pathAlexandra Ellwood2008-10-211-0/+1
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20906 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ccache_iterator_next leaks principalAlexandra Ellwood2008-10-211-0/+3
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20905 dc483132-0cff-0310-8789-dd5450dbe970
* kim_preferences should free old identity before overwritingAlexandra Ellwood2008-10-211-1/+9
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20904 dc483132-0cff-0310-8789-dd5450dbe970
* Free data in tests so leaks checking is easierAlexandra Ellwood2008-10-212-3/+21
| | | | | | ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20903 dc483132-0cff-0310-8789-dd5450dbe970
* 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