00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _INCLUDE_XOS_CREDAGENT_H
00013 #define _INCLUDE_XOS_CREDAGENT_H
00014
00023
00024
00056 char *xos_credagent_getcred(char *configuration);
00057
00058
00075 int xos_setconfigenv(char *config_name,char *section);
00076
00091 char **xos_readconfigsections(char *config_name);
00092
00093
00094
00095 typedef void * CREDAGENT_HANDLE;
00096
00114 CREDAGENT_HANDLE xos_credagentso_instance(char *config_name,char **name);
00115
00126 void xos_credagentso_destroy(CREDAGENT_HANDLE handle);
00127
00140 char *xos_credagentso_getparameter(CREDAGENT_HANDLE handle,char *key);
00141
00142
00143
00144
00145 struct creduiagent_handle;
00146 typedef struct creduiagent_handle * CREDUIAGENT_HANDLE;
00164 CREDUIAGENT_HANDLE xos_creduiagent_instance(char *config_name,char **name);
00165
00181 void xos_creduiagent_destroy(CREDUIAGENT_HANDLE handle);
00182
00217 int xos_creduiagent_ask_login_password(CREDUIAGENT_HANDLE handle,char *message,
00218 char **login,char **password,int max_length,char retry) ;
00259 int xos_creduiagent_ask_login_pin(CREDUIAGENT_HANDLE handle,char *message,
00260 char **login,char **pin,int length,char retry);
00261
00287 int xos_creduiagent_ask_code(CREDUIAGENT_HANDLE handle,char *message,
00288 char **code, int max_length,char retry) ;
00289
00308 int xos_creduiagent_ask_confirmation(CREDUIAGENT_HANDLE handle,char *message) ;
00309
00310
00311
00312 int xos_creduiagent_ask_confirmation_pin(CREDUIAGENT_HANDLE handle,
00313 char *message, char *pin, char *puk,int max_length_pin,
00314 int max_length_puk, int allowed_retries) ;
00315
00331 int xos_creduiagent_show_error(CREDUIAGENT_HANDLE handle,char *message) ;
00332
00351 char *xos_creduiagent_getparameter(CREDUIAGENT_HANDLE handle,char *key);
00352
00368 void * xos_creduiagent_get_func(CREDUIAGENT_HANDLE handle, char *name);
00369
00370
00371 #endif