if (!err && !io_context) { err = check_error (KIM_NULL_PARAMETER_ERR); }
if (!err && !io_context->initialized) {
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
kim_ui_environment environment = kim_library_ui_environment ();
if (environment == KIM_UI_ENVIRONMENT_GUI) {
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
io_context->type = kim_ui_type_gui_plugin;
err = kim_ui_plugin_init (io_context);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
if (err) {
io_context->type = kim_ui_type_gui_builtin;
err = check_error (KIM_NO_UI_ERR);
}
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
if (!err) {
io_context->initialized = 1;
out_identity,
out_change_password);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_enter_identity (in_context,
io_options,
out_identity,
out_change_password);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);
out_identity,
out_change_password);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_select_identity (in_context,
io_hints,
out_identity,
out_change_password);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);
&reply,
&save_reply);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_auth_prompt (context,
context->identity,
in_prompts[i].prompt,
&reply,
&save_reply);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);
out_new_password,
out_verify_password);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_change_password (in_context,
in_identity,
out_old_password,
out_new_password,
out_verify_password);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);
in_error_message,
in_error_description);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (in_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_handle_error (in_context,
in_identity,
in_error,
in_error_message,
in_error_description);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);
kim_ui_plugin_free_string (in_context,
io_string);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (in_context->type == kim_ui_type_gui_builtin) {
kim_os_ui_gui_free_string (in_context,
io_string);
} else if (in_context->type == kim_ui_type_cli) {
kim_ui_cli_free_string (in_context,
io_string);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
}
}
}
if (io_context->type == kim_ui_type_gui_plugin) {
err = kim_ui_plugin_fini (io_context);
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
} else if (io_context->type == kim_ui_type_gui_builtin) {
err = kim_os_ui_gui_fini (io_context);
} else if (io_context->type == kim_ui_type_cli) {
err = kim_ui_cli_fini (io_context);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
} else {
err = check_error (KIM_NO_UI_ERR);