summaryrefslogtreecommitdiffstats
path: root/src/kim/lib/kim_ui_plugin.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_plugin.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_plugin.c')
-rw-r--r--src/kim/lib/kim_ui_plugin.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/kim/lib/kim_ui_plugin.c b/src/kim/lib/kim_ui_plugin.c
index 2b20f34df..a19ae7535 100644
--- a/src/kim/lib/kim_ui_plugin.c
+++ b/src/kim/lib/kim_ui_plugin.c
@@ -158,20 +158,23 @@ kim_error kim_ui_plugin_init (kim_ui_context *io_context)
kim_error kim_ui_plugin_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 && !io_options ) { 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_options ) { 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) {
kim_ui_plugin_context context = (kim_ui_plugin_context) in_context->tcontext;
err = context->ftable->enter_identity (context->plugin_context,
io_options,
- out_identity);
+ out_identity,
+ out_change_password);
}
return check_error (err);
@@ -181,20 +184,23 @@ kim_error kim_ui_plugin_enter_identity (kim_ui_context *in_context,
kim_error kim_ui_plugin_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) {
kim_ui_plugin_context context = (kim_ui_plugin_context) in_context->tcontext;
err = context->ftable->select_identity (context->plugin_context,
io_hints,
- out_identity);
+ out_identity,
+ out_change_password);
}
return check_error (err);