summaryrefslogtreecommitdiffstats
path: root/src/kim/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Support for change password checkbox in enter and selectAlexandra Ellwood2008-10-0210-50/+146
| | | | | | | | identity ui elements. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20812 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a bug in kim_identity_get_components string where itAlexandra Ellwood2008-10-011-1/+1
| | | | | | | | would return the first component multiple times. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20805 dc483132-0cff-0310-8789-dd5450dbe970
* Make unset strings in kim_options and kim_selection_hintsAlexandra Ellwood2008-10-015-113/+90
| | | | | | | | | | | | be empty strings rather than NULL. This simplifies the stream code (and makes it easier to read and debug). In order to prevent copying tons of NUL bytes around, special case kim_string functions to use a special constant kim_empty_string. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20804 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed crash in kim_options_write_to_streamAlexandra Ellwood2008-10-011-14/+12
| | | | | | | | when in_options is KIM_OPTIONS_DEFAULT. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20803 dc483132-0cff-0310-8789-dd5450dbe970
* Reversed sense of checks for NUL character in empty string. FixedAlexandra Ellwood2008-10-011-7/+7
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20802 dc483132-0cff-0310-8789-dd5450dbe970
* Loop on enter identity if auth failsAlexandra Ellwood2008-10-011-81/+103
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20800 dc483132-0cff-0310-8789-dd5450dbe970
* Correctly translate NULL hints when reading from a streamAlexandra Ellwood2008-10-011-11/+53
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20799 dc483132-0cff-0310-8789-dd5450dbe970
* Finished KLL to KIM shim.Alexandra Ellwood2008-10-014-9/+516
| | | | | | | | Switched krb5 code to using it. ticket: 6134 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20796 dc483132-0cff-0310-8789-dd5450dbe970
* Fill out credentials when getting tickets with changed passwordAlexandra Ellwood2008-10-011-0/+7
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20795 dc483132-0cff-0310-8789-dd5450dbe970
* Support for passing options back and forth for enter_identity and Alexandra Ellwood2008-10-0114-57/+154
| | | | | | | | hints back for select_identity. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20794 dc483132-0cff-0310-8789-dd5450dbe970
* When kim_options_write_to_stream is given NULL options, create default ↵Justin Anderson2008-10-011-3/+9
| | | | | | | | options in its place instead of erroring out ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20792 dc483132-0cff-0310-8789-dd5450dbe970
* kim_selection_hints_get_identity should call kim_ui_fini even when ↵Justin Anderson2008-10-011-2/+4
| | | | | | | | kim_ui_select_identity returns an error, e.g. KIM_USER_CANCELED_ERR ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20791 dc483132-0cff-0310-8789-dd5450dbe970
* Check for NULL hints_array passed back from ↵Justin Anderson2008-10-011-1/+1
| | | | | | | | kim_os_selection_hints_get_selection_hints_array in kim_os_selection_hints_lookup_identity ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20790 dc483132-0cff-0310-8789-dd5450dbe970
* First pass at KLL shim layer. (no private apis)Alexandra Ellwood2008-10-018-9/+2072
| | | | | | | | | | | KIM support for KLL shim layer. Fixed a bug where the cli support was double freeing a credential in the change password case. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20789 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed typo where kpasswd was prompting for the new passwordAlexandra Ellwood2008-10-011-1/+1
| | | | | | | | twice rather than once for new and once for verify. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20788 dc483132-0cff-0310-8789-dd5450dbe970
* krb5 library-side changes for com_err based error stringsAlexandra Ellwood2008-09-3011-143/+79
| | | | | | ticket: 6138 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20786 dc483132-0cff-0310-8789-dd5450dbe970
* kim_os_identity_get_saved_password should always return an error whenAlexandra Ellwood2008-09-301-1/+5
| | | | | | | | no password is returned. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20785 dc483132-0cff-0310-8789-dd5450dbe970
* Check for null saved password in kim_ui_prompter. Just because ↵Justin Anderson2008-09-301-1/+1
| | | | | | | | kim_os_get_saved_password didn't return an error doesn't mean it successfully got a password ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20784 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a bug where getting addressless tickets would cause kimAlexandra Ellwood2008-09-301-5/+5
| | | | | | | | to pass a NULL krb5_context into krb5_os_localaddr ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20783 dc483132-0cff-0310-8789-dd5450dbe970
* Support legacy KerberosAgent preference for save passwordsAlexandra Ellwood2008-09-293-5/+20
| | | | | | | | | and a new preference in the KIM preferences. Updated test harness for save password arguments. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20782 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for disabling password saving, both globallyAlexandra Ellwood2008-09-2912-27/+154
| | | | | | | | and also per prompt via the UI. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20781 dc483132-0cff-0310-8789-dd5450dbe970
* UI should lazy init so that init and fini are only called if oneAlexandra Ellwood2008-09-293-92/+138
| | | | | | | | | | | of the UI calls is called. The problem is that when you call krb5_get_init_creds_* you don't know if it will call the prompter or not. (It won't if the password is saved in the keychain or if pkinit succeeds.) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20780 dc483132-0cff-0310-8789-dd5450dbe970
* If in_identity is NULL, use the identity the user entered.Alexandra Ellwood2008-09-291-3/+3
| | | | | | | | (Fixed typo) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20777 dc483132-0cff-0310-8789-dd5450dbe970
* kim_credential_create_new should support NULL in_identity.Alexandra Ellwood2008-09-291-5/+13
| | | | | | | | Prompt for it. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20775 dc483132-0cff-0310-8789-dd5450dbe970
* Place structure in thread specific data to store client connectionAlexandra Ellwood2008-09-281-21/+33
| | | | | | | | port so that multiple services can be supported simultaneously. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20773 dc483132-0cff-0310-8789-dd5450dbe970
* Added kim_selection_hints_create_from_stream andAlexandra Ellwood2008-09-286-4/+326
| | | | | | | | | kim_selection_hints_write_to_stream for client/server communication. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20770 dc483132-0cff-0310-8789-dd5450dbe970
* Create common stream and ipc layer for CCAPI and KIM. Alexandra Ellwood2008-09-281-309/+234
| | | | | | | | | Will switch CCAPI to this new code later though, so as not to destabilize KfM and the Windows builds. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20769 dc483132-0cff-0310-8789-dd5450dbe970
* Make kim_credential_get_options set correct renewal lifetimeJustin Anderson2008-09-281-1/+4
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20768 dc483132-0cff-0310-8789-dd5450dbe970
* Renamed kim_identity_get_components to kim_identity_get_components_stringAlexandra Ellwood2008-09-279-181/+208
| | | | | | | | | | | | to better reflect what it does (a string of everything but the realm, not an array of components like the old name might imply). Added private functions which will be used by KLL to shim on top of KIM. Private functions also reduce memory allocations inside of KIM. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20766 dc483132-0cff-0310-8789-dd5450dbe970
* Add kim_preferences_get/set_minimum/maximum_lifetime functions to export listsJustin Anderson2008-09-272-0/+16
| | | | | | ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20765 dc483132-0cff-0310-8789-dd5450dbe970
* kim_credential_get_options was setting the lifetime a second time instead of ↵Justin Anderson2008-09-271-1/+1
| | | | | | | | setting the renewal lifetime ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20764 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosAgent MachIPC supportAlexandra Ellwood2008-09-2710-44/+356
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20763 dc483132-0cff-0310-8789-dd5450dbe970
* kim_options_set_service_name should be able to take a service name of NULLAlexandra Ellwood2008-09-261-2/+1
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20761 dc483132-0cff-0310-8789-dd5450dbe970
* Added kim_credential_get_options and kim_ccache_get_optionsAlexandra Ellwood2008-09-264-0/+126
| | | | | | | | for KerberosAgent to use to create new favorite identities ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20760 dc483132-0cff-0310-8789-dd5450dbe970
* Initial checkin of Mac OS X ipc support. Alexandra Ellwood2008-09-2610-56/+287
| | | | | | | | | | | | Also moved "set application name" functionality to kim_library_ because most applications do not need to call it and their name doesn't usually change over time or per thread By putting it in a global setting apps that do need to call it only have to call it once instead of every time they want to authenticate. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20757 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a typo in kim_preferences.c which preventedAlexandra Ellwood2008-09-251-1/+1
| | | | | | | | | | | | the fix to kim_preferences_remove_favorite_identity from working. (Accidentally tested in one source tree and committed from another. whoops.) ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20754 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed a bug where kim_preferences_remove_favorite_identityAlexandra Ellwood2008-09-251-7/+10
| | | | | | | | | was removing the first identity which did not match the one being passed in. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20753 dc483132-0cff-0310-8789-dd5450dbe970
* Added support to track number of prompts so UIs do not try again unlessAlexandra Ellwood2008-09-257-39/+121
| | | | | | | | there is something the user can do differently the next time. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20752 dc483132-0cff-0310-8789-dd5450dbe970
* Modified kim_ccache_compare to match the behavior of other kim compareAlexandra Ellwood2008-09-251-49/+40
| | | | | | | | functions. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20751 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed bugs in command line change password support.Alexandra Ellwood2008-09-2414-418/+459
| | | | | | | | | | Removed low level change password functions from export list because they require a UI context. Added kim_ccache functions needed by klist to export list. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20749 dc483132-0cff-0310-8789-dd5450dbe970
* Renamed error handling files to reflect what they do now.Alexandra Ellwood2008-09-2311-246/+275
| | | | | | | | | | Moved GUI code into OS-specific directory. Fixed bugs in cache collection iterator routines where it was mishandling the magic empty ccache created when the cache collection is empty. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20747 dc483132-0cff-0310-8789-dd5450dbe970
* kim_ccache_get_display_name was calling kim_ccache_create_resolve_name with ↵Justin Anderson2008-09-231-5/+5
| | | | | | | | | | its parameters in the wrong order kim_ccache_iterator_next wasn't handling the end of iteration correctly. ticket:6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20746 dc483132-0cff-0310-8789-dd5450dbe970
* Added command line UI support.Alexandra Ellwood2008-09-2218-303/+1134
| | | | | | | | | | | Added change password and acquire credentials UI harness support. API changes to the change password support to reflect these changes. Removed callback prompter interfaces since there is now plugin support. Updated documentation. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20745 dc483132-0cff-0310-8789-dd5450dbe970
* KIM ui plugin support and gui selection harnessAlexandra Ellwood2008-09-1914-4/+1329
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20740 dc483132-0cff-0310-8789-dd5450dbe970
* Remove kim_identity_get_gss_name from the export listsAlexandra Ellwood2008-09-192-2/+0
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20739 dc483132-0cff-0310-8789-dd5450dbe970
* Added functions to save and get password from keychainAlexandra Ellwood2008-09-183-27/+222
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20732 dc483132-0cff-0310-8789-dd5450dbe970
* Removed kim_identity_get_gss_name and updated documentationAlexandra Ellwood2008-09-181-2/+11
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20729 dc483132-0cff-0310-8789-dd5450dbe970
* Added support for options in favorite identities.Alexandra Ellwood2008-09-176-462/+819
| | | | | | | | | | | | Fixed KLL preference reading support to not read keys from the wrong locations. Updated prompter function prototype. Updated tests to reflect these changes. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20727 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed KIM export list for KerberosLite (forgot there were two)Alexandra Ellwood2008-09-121-11/+5
| | | | | | ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20713 dc483132-0cff-0310-8789-dd5450dbe970
* Removed favorite identities object from public API and merged functionalityAlexandra Ellwood2008-09-115-265/+340
| | | | | | | | | | | into the preferences API to reduce function calls. Added options parameter to favorite identities (Mac OS X support still needed for options though). Updated test cases to reflect these changes. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20712 dc483132-0cff-0310-8789-dd5450dbe970