diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2008-10-02 17:38:36 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2008-10-02 17:38:36 +0000 |
commit | a9b51cea161acb118428631eb5a3828bb1f8047a (patch) | |
tree | dc94ace3783a9b0ba4211df601eb1d29b0b55703 /src/kim/lib/kim_ui_cli.c | |
parent | 347cfa63fa8d3097d540fa84146e020e06c9a91c (diff) | |
download | krb5-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_cli.c')
-rw-r--r-- | src/kim/lib/kim_ui_cli.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/kim/lib/kim_ui_cli.c b/src/kim/lib/kim_ui_cli.c index 3301f322c..a595a3f4d 100644 --- a/src/kim/lib/kim_ui_cli.c +++ b/src/kim/lib/kim_ui_cli.c @@ -102,14 +102,16 @@ kim_error kim_ui_cli_init (kim_ui_context *io_context) kim_error kim_ui_cli_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; kim_string enter_identity_string = NULL; kim_string identity_string = NULL; - if (!err && !io_options ) { err = check_error (KIM_NULL_PARAMETER_ERR); } - if (!err && !out_identity) { 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) { err = kim_os_string_create_localized (&enter_identity_string, @@ -125,6 +127,10 @@ kim_error kim_ui_cli_enter_identity (kim_ui_context *in_context, err = kim_identity_create_from_string (out_identity, identity_string); } + if (!err) { + *out_change_password = 0; + } + kim_string_free (&identity_string); kim_string_free (&enter_identity_string); @@ -135,20 +141,24 @@ kim_error kim_ui_cli_enter_identity (kim_ui_context *in_context, kim_error kim_ui_cli_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; kim_options options = NULL; - if (!err && !io_hints ) { err = check_error (KIM_NULL_PARAMETER_ERR); } - if (!err && !out_identity) { 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_selection_hints_get_options (io_hints, &options); } if (!err) { - err = kim_ui_cli_enter_identity (in_context, options, out_identity); + err = kim_ui_cli_enter_identity (in_context, options, + out_identity, + out_change_password); } if (!err) { |