use KIM_BUILTIN_UI instead of LEAN_CLIENT for builtin UI
authorAlexandra Ellwood <lxs@mit.edu>
Wed, 15 Oct 2008 21:50:26 +0000 (21:50 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Wed, 15 Oct 2008 21:50:26 +0000 (21:50 +0000)
ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20875 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/lib/kim_ui.c
src/kim/lib/kim_ui_cli.c
src/kim/lib/kim_ui_cli_private.h
src/kim/lib/kim_ui_gui_private.h
src/kim/lib/mac/kim_os_ui_gui.c

index e52cd9bb22085c27df043a40fba0dc14fd3e4187..0bac3d8190b4234898e71d7f04af83786b2245fc 100644 (file)
@@ -51,15 +51,15 @@ static kim_error kim_ui_init_lazy (kim_ui_context *io_context)
     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;
                 
@@ -76,7 +76,7 @@ static kim_error kim_ui_init_lazy (kim_ui_context *io_context)
             
             err = check_error (KIM_NO_UI_ERR);
         }
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
 
         if (!err) {
             io_context->initialized = 1;
@@ -133,7 +133,7 @@ kim_error kim_ui_enter_identity (kim_ui_context      *in_context,
                                                 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,
@@ -146,7 +146,7 @@ kim_error kim_ui_enter_identity (kim_ui_context      *in_context,
                                              out_identity,
                                              out_change_password);
             
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
             
         } else {
             err = check_error (KIM_NO_UI_ERR);
@@ -181,7 +181,7 @@ kim_error kim_ui_select_identity (kim_ui_context      *in_context,
                                                  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,
@@ -194,7 +194,7 @@ kim_error kim_ui_select_identity (kim_ui_context      *in_context,
                                               out_identity,
                                               out_change_password);
             
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
             
         } else {
             err = check_error (KIM_NO_UI_ERR);
@@ -263,7 +263,7 @@ krb5_error_code kim_ui_prompter (krb5_context  in_krb5_context,
                                                      &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, 
@@ -287,7 +287,7 @@ krb5_error_code kim_ui_prompter (krb5_context  in_krb5_context,
                                                   in_prompts[i].prompt,
                                                   &reply,
                                                   &save_reply);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
                     
                 } else {
                     err = check_error (KIM_NO_UI_ERR);
@@ -361,7 +361,7 @@ kim_error kim_ui_change_password (kim_ui_context  *in_context,
                                                  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, 
@@ -377,7 +377,7 @@ kim_error kim_ui_change_password (kim_ui_context  *in_context,
                                               out_old_password,
                                               out_new_password,
                                               out_verify_password);
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
             
         } else {
             err = check_error (KIM_NO_UI_ERR);
@@ -413,7 +413,7 @@ kim_error kim_ui_handle_error (kim_ui_context *in_context,
                                               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, 
@@ -427,7 +427,7 @@ kim_error kim_ui_handle_error (kim_ui_context *in_context,
                                            in_error,
                                            in_error_message,
                                            in_error_description);
-#endif /* LEAN_CLIENT */  
+#endif /* KIM_BUILTIN_UI */  
             
         } else {
             err = check_error (KIM_NO_UI_ERR);
@@ -452,7 +452,7 @@ void kim_ui_free_string (kim_ui_context  *in_context,
             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);
@@ -460,7 +460,7 @@ void kim_ui_free_string (kim_ui_context  *in_context,
         } 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 */    
         }
     }
 }
@@ -477,13 +477,13 @@ kim_error kim_ui_fini (kim_ui_context *io_context)
         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);
index a595a3f4df38c53e60eb371bd3f2ec378ae0cab6..173a7eb6e4cae82b3d24720003eb249eda197b4b 100644 (file)
@@ -24,7 +24,7 @@
  * or implied warranty.
  */
 
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
 
 #include "kim_private.h"
 
@@ -468,4 +468,4 @@ kim_error kim_ui_cli_fini (kim_ui_context *io_context)
     return KIM_NO_ERROR;
 }
 
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
index f11a665b90222365e347984249dbdb911ac39e5f..26970cf79307d68e4496021aa153b2f0f10e1438 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef KIM_UI_CLI_PRIVATE_H
 #define KIM_UI_CLI_PRIVATE_H
 
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
 
 #include <kim/kim.h>
 
@@ -75,6 +75,6 @@ void kim_ui_cli_free_string (kim_ui_context  *in_context,
 
 kim_error kim_ui_cli_fini (kim_ui_context *in_context);
 
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
 
 #endif /* KIM_UI_CLI_PRIVATE_H */
index faf4e1596f2f4a20bd51207c150c95707c194913..ecb324339e54dac196df801d38872daf4da01d97 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef KIM_UI_GUI_PRIVATE_H
 #define KIM_UI_GUI_PRIVATE_H
 
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
 
 #include <kim/kim.h>
 
@@ -75,6 +75,6 @@ void kim_os_ui_gui_free_string (kim_ui_context  *in_context,
 
 kim_error kim_os_ui_gui_fini (kim_ui_context *in_context);
 
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */
 
 #endif /* KIM_UI_GUI_PRIVATE_H */
index 0b8096fcbb2f073b05d81ea03fbd786e5757b5f4..6e1c5cef1e0e45fd509cb0a734199b19afc30e00 100644 (file)
  * or implied warranty.
  */
 
-#ifndef LEAN_CLIENT
+#ifdef KIM_BUILTIN_UI
 
 #include "kim_os_private.h"
 
 #include "k5_mig_client.h"
 
-#include <Kerberos/kipc_client.h>
 #include <mach/mach.h>
 #include <mach/mach_error.h>
 #include <unistd.h>
@@ -561,4 +560,4 @@ kim_error kim_os_ui_gui_fini (kim_ui_context *io_context)
     return check_error (err);
 }
 
-#endif /* LEAN_CLIENT */
+#endif /* KIM_BUILTIN_UI */