summaryrefslogtreecommitdiffstats
path: root/src/kim/lib/kim_ui.c
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-10-02 17:38:36 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-10-02 17:38:36 +0000
commita9b51cea161acb118428631eb5a3828bb1f8047a (patch)
treedc94ace3783a9b0ba4211df601eb1d29b0b55703 /src/kim/lib/kim_ui.c
parent347cfa63fa8d3097d540fa84146e020e06c9a91c (diff)
downloadkrb5-a9b51cea161acb118428631eb5a3828bb1f8047a.tar.gz
krb5-a9b51cea161acb118428631eb5a3828bb1f8047a.tar.xz
krb5-a9b51cea161acb118428631eb5a3828bb1f8047a.zip
Support for change password checkbox in enter and select
identity ui elements. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20812 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim/lib/kim_ui.c')
-rw-r--r--src/kim/lib/kim_ui.c36
1 files changed, 23 insertions, 13 deletions
diff --git a/src/kim/lib/kim_ui.c b/src/kim/lib/kim_ui.c
index cd119c8d3..ccc59f440 100644
--- a/src/kim/lib/kim_ui.c
+++ b/src/kim/lib/kim_ui.c
@@ -113,12 +113,14 @@ kim_error kim_ui_init (kim_ui_context *io_context)
kim_error kim_ui_enter_identity (kim_ui_context *in_context,
kim_options io_options,
- kim_identity *out_identity)
+ kim_identity *out_identity,
+ kim_boolean *out_change_password)
{
kim_error err = KIM_NO_ERROR;
- if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !out_identity) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_identity ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_change_password) { err = check_error (KIM_NULL_PARAMETER_ERR); }
if (!err) {
err = kim_ui_init_lazy (in_context);
@@ -128,18 +130,21 @@ kim_error kim_ui_enter_identity (kim_ui_context *in_context,
if (in_context->type == kim_ui_type_gui_plugin) {
err = kim_ui_plugin_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
#ifndef LEAN_CLIENT
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
} else if (in_context->type == kim_ui_type_cli) {
err = kim_ui_cli_enter_identity (in_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
#endif /* LEAN_CLIENT */
@@ -155,13 +160,15 @@ kim_error kim_ui_enter_identity (kim_ui_context *in_context,
kim_error kim_ui_select_identity (kim_ui_context *in_context,
kim_selection_hints io_hints,
- kim_identity *out_identity)
+ kim_identity *out_identity,
+ kim_boolean *out_change_password)
{
kim_error err = KIM_NO_ERROR;
- if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !io_hints ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
- if (!err && !out_identity) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !in_context ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !io_hints ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_identity ) { err = check_error (KIM_NULL_PARAMETER_ERR); }
+ if (!err && !out_change_password) { err = check_error (KIM_NULL_PARAMETER_ERR); }
if (!err) {
err = kim_ui_init_lazy (in_context);
@@ -171,18 +178,21 @@ kim_error kim_ui_select_identity (kim_ui_context *in_context,
if (in_context->type == kim_ui_type_gui_plugin) {
err = kim_ui_plugin_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
#ifndef LEAN_CLIENT
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
} else if (in_context->type == kim_ui_type_cli) {
err = kim_ui_cli_select_identity (in_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
#endif /* LEAN_CLIENT */