ui.h File Reference

API published in:
API deprecated in:


#include <openssl/crypto.h>
#include <openssl/safestack.h>
#include <openssl/ossl_typ.h>

Go to the source code of this file.


Defines

#define  UI_INPUT_FLAG_ECHO   0x01
#define  UI_INPUT_FLAG_DEFAULT_PWD   0x02
#define  UI_INPUT_FLAG_USER_BASE   16
#define  UI_CTRL_PRINT_ERRORS   1
#define  UI_CTRL_IS_REDOABLE   2
#define  UI_set_app_data(s, arg)   UI_set_ex_data(s,0,arg)
#define  UI_get_app_data(s)   UI_get_ex_data(s,0)
#define  UI_F_GENERAL_ALLOCATE_BOOLEAN   108
#define  UI_F_GENERAL_ALLOCATE_PROMPT   109
#define  UI_F_GENERAL_ALLOCATE_STRING   100
#define  UI_F_UI_CTRL   111
#define  UI_F_UI_DUP_ERROR_STRING   101
#define  UI_F_UI_DUP_INFO_STRING   102
#define  UI_F_UI_DUP_INPUT_BOOLEAN   110
#define  UI_F_UI_DUP_INPUT_STRING   103
#define  UI_F_UI_DUP_VERIFY_STRING   106
#define  UI_F_UI_GET0_RESULT   107
#define  UI_F_UI_NEW_METHOD   104
#define  UI_F_UI_SET_RESULT   105
#define  UI_R_COMMON_OK_AND_CANCEL_CHARACTERS   104
#define  UI_R_INDEX_TOO_LARGE   102
#define  UI_R_INDEX_TOO_SMALL   103
#define  UI_R_NO_RESULT_BUFFER   105
#define  UI_R_RESULT_TOO_LARGE   100
#define  UI_R_RESULT_TOO_SMALL   101
#define  UI_R_UNKNOWN_CONTROL_COMMAND   106

Enumerations

enum   UI_string_types {
  UIT_NONE = 0, UIT_PROMPT, UIT_VERIFY, UIT_BOOLEAN,
  UIT_INFO, UIT_ERROR
}

Functions

IMPORT_C UI UI_new (void)
IMPORT_C UI UI_new_method (const UI_METHOD *method)
IMPORT_C void  UI_free (UI *ui)
IMPORT_C int  UI_add_input_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize)
IMPORT_C int  UI_dup_input_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize)
IMPORT_C int  UI_add_verify_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize, const char *test_buf)
IMPORT_C int  UI_dup_verify_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize, const char *test_buf)
IMPORT_C int  UI_add_input_boolean (UI *ui, const char *prompt, const char *action_desc, const char *ok_chars, const char *cancel_chars, int flags, char *result_buf)
IMPORT_C int  UI_dup_input_boolean (UI *ui, const char *prompt, const char *action_desc, const char *ok_chars, const char *cancel_chars, int flags, char *result_buf)
IMPORT_C int  UI_add_info_string (UI *ui, const char *text)
IMPORT_C int  UI_dup_info_string (UI *ui, const char *text)
IMPORT_C int  UI_add_error_string (UI *ui, const char *text)
IMPORT_C int  UI_dup_error_string (UI *ui, const char *text)
IMPORT_C char *  UI_construct_prompt (UI *ui_method, const char *object_desc, const char *object_name)
IMPORT_C void *  UI_add_user_data (UI *ui, void *user_data)
IMPORT_C void *  UI_get0_user_data (UI *ui)
IMPORT_C const char *  UI_get0_result (UI *ui, int i)
IMPORT_C int  UI_process (UI *ui)
IMPORT_C int  UI_ctrl (UI *ui, int cmd, long i, void *p, void(*f)(void))
IMPORT_C int  UI_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
IMPORT_C int  UI_set_ex_data (UI *r, int idx, void *arg)
IMPORT_C void *  UI_get_ex_data (UI *r, int idx)
IMPORT_C void  UI_set_default_method (const UI_METHOD *meth)
IMPORT_C const UI_METHOD UI_get_default_method (void)
IMPORT_C const UI_METHOD UI_get_method (UI *ui)
IMPORT_C const UI_METHOD UI_set_method (UI *ui, const UI_METHOD *meth)
IMPORT_C UI_METHOD UI_OpenSSL (void)
  DECLARE_STACK_OF (UI_STRING) typedef struct ui_string_st UI_STRING
IMPORT_C UI_METHOD UI_create_method (char *name)
IMPORT_C void  UI_destroy_method (UI_METHOD *ui_method)
IMPORT_C int  UI_method_set_opener (UI_METHOD *method, int(*opener)(UI *ui))
IMPORT_C int  UI_method_set_writer (UI_METHOD *method, int(*writer)(UI *ui, UI_STRING *uis))
IMPORT_C int  UI_method_set_flusher (UI_METHOD *method, int(*flusher)(UI *ui))
IMPORT_C int  UI_method_set_reader (UI_METHOD *method, int(*reader)(UI *ui, UI_STRING *uis))
IMPORT_C int  UI_method_set_closer (UI_METHOD *method, int(*closer)(UI *ui))
IMPORT_C enum UI_string_types  UI_get_string_type (UI_STRING *uis)
IMPORT_C int  UI_get_input_flags (UI_STRING *uis)
IMPORT_C const char *  UI_get0_output_string (UI_STRING *uis)
IMPORT_C const char *  UI_get0_action_string (UI_STRING *uis)
IMPORT_C const char *  UI_get0_result_string (UI_STRING *uis)
IMPORT_C const char *  UI_get0_test_string (UI_STRING *uis)
IMPORT_C int  UI_get_result_minsize (UI_STRING *uis)
IMPORT_C int  UI_get_result_maxsize (UI_STRING *uis)
IMPORT_C int  UI_set_result (UI *ui, UI_STRING *uis, const char *result)
IMPORT_C int  UI_UTIL_read_pw_string (char *buf, int length, const char *prompt, int verify)
IMPORT_C int  UI_UTIL_read_pw (char *buf, char *buff, int size, const char *prompt, int verify)
IMPORT_C void  ERR_load_UI_strings (void)

Variables

IMPORT_C int(*)(UI *)  UI_method_get_opener (UI_METHOD *method)
IMPORT_C int(*)(UI *, UI_STRING *)  UI_method_get_writer (UI_METHOD *method)
IMPORT_C int(*)(UI *)  UI_method_get_flusher (UI_METHOD *method)
IMPORT_C int(*)(UI *, UI_STRING *)  UI_method_get_reader (UI_METHOD *method)
IMPORT_C int(*)(UI *)  UI_method_get_closer (UI_METHOD *method)

Define Documentation

#define UI_CTRL_IS_REDOABLE   2
 
#define UI_CTRL_PRINT_ERRORS   1
 
#define UI_F_GENERAL_ALLOCATE_BOOLEAN   108
 
#define UI_F_GENERAL_ALLOCATE_PROMPT   109
 
#define UI_F_GENERAL_ALLOCATE_STRING   100
 
#define UI_F_UI_CTRL   111
 
#define UI_F_UI_DUP_ERROR_STRING   101
 
#define UI_F_UI_DUP_INFO_STRING   102
 
#define UI_F_UI_DUP_INPUT_BOOLEAN   110
 
#define UI_F_UI_DUP_INPUT_STRING   103
 
#define UI_F_UI_DUP_VERIFY_STRING   106
 
#define UI_F_UI_GET0_RESULT   107
 
#define UI_F_UI_NEW_METHOD   104
 
#define UI_F_UI_SET_RESULT   105
 
#define UI_get_app_data  )     UI_get_ex_data(s,0)
 
#define UI_INPUT_FLAG_DEFAULT_PWD   0x02
 
#define UI_INPUT_FLAG_ECHO   0x01
 
#define UI_INPUT_FLAG_USER_BASE   16
 
#define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS   104
 
#define UI_R_INDEX_TOO_LARGE   102
 
#define UI_R_INDEX_TOO_SMALL   103
 
#define UI_R_NO_RESULT_BUFFER   105
 
#define UI_R_RESULT_TOO_LARGE   100
 
#define UI_R_RESULT_TOO_SMALL   101
 
#define UI_R_UNKNOWN_CONTROL_COMMAND   106
 
#define UI_set_app_data s,
arg   )     UI_set_ex_data(s,0,arg)
 

Enumeration Type Documentation

enum UI_string_types
 
Enumerator:
UIT_NONE 
UIT_PROMPT 
UIT_VERIFY 
UIT_BOOLEAN 
UIT_INFO 
UIT_ERROR 

Function Documentation

DECLARE_STACK_OF UI_STRING   ) 
 
IMPORT_C void ERR_load_UI_strings void   ) 
 
IMPORT_C int UI_add_error_string UI ui,
const char *  text
 
IMPORT_C int UI_add_info_string UI ui,
const char *  text
 
IMPORT_C int UI_add_input_boolean UI ui,
const char *  prompt,
const char *  action_desc,
const char *  ok_chars,
const char *  cancel_chars,
int  flags,
char *  result_buf
 
IMPORT_C int UI_add_input_string UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize
 
IMPORT_C void* UI_add_user_data UI ui,
void *  user_data
 
IMPORT_C int UI_add_verify_string UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize,
const char *  test_buf
 
IMPORT_C char* UI_construct_prompt UI ui_method,
const char *  object_desc,
const char *  object_name
 
IMPORT_C UI_METHOD* UI_create_method char *  name  ) 
 
IMPORT_C int UI_ctrl UI ui,
int  cmd,
long  i,
void *  p,
void(*)(void)  f
 
IMPORT_C void UI_destroy_method UI_METHOD ui_method  ) 
 
IMPORT_C int UI_dup_error_string UI ui,
const char *  text
 
IMPORT_C int UI_dup_info_string UI ui,
const char *  text
 
IMPORT_C int UI_dup_input_boolean UI ui,
const char *  prompt,
const char *  action_desc,
const char *  ok_chars,
const char *  cancel_chars,
int  flags,
char *  result_buf
 
IMPORT_C int UI_dup_input_string UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize
 
IMPORT_C int UI_dup_verify_string UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize,
const char *  test_buf
 
IMPORT_C void UI_free UI ui  ) 
 
IMPORT_C const char* UI_get0_action_string UI_STRING *  uis  ) 
 
IMPORT_C const char* UI_get0_output_string UI_STRING *  uis  ) 
 
IMPORT_C const char* UI_get0_result UI ui,
int  i
 
IMPORT_C const char* UI_get0_result_string UI_STRING *  uis  ) 
 
IMPORT_C const char* UI_get0_test_string UI_STRING *  uis  ) 
 
IMPORT_C void* UI_get0_user_data UI ui  ) 
 
IMPORT_C const UI_METHOD* UI_get_default_method void   ) 
 
IMPORT_C void* UI_get_ex_data UI r,
int  idx
 
IMPORT_C int UI_get_ex_new_index long  argl,
void *  argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func
 
IMPORT_C int UI_get_input_flags UI_STRING *  uis  ) 
 
IMPORT_C const UI_METHOD* UI_get_method UI ui  ) 
 
IMPORT_C int UI_get_result_maxsize UI_STRING *  uis  ) 
 
IMPORT_C int UI_get_result_minsize UI_STRING *  uis  ) 
 
IMPORT_C enum UI_string_types UI_get_string_type UI_STRING *  uis  ) 
 
IMPORT_C int UI_method_set_closer UI_METHOD method,
int(*)(UI *ui)  closer
 
IMPORT_C int UI_method_set_flusher UI_METHOD method,
int(*)(UI *ui)  flusher
 
IMPORT_C int UI_method_set_opener UI_METHOD method,
int(*)(UI *ui)  opener
 
IMPORT_C int UI_method_set_reader UI_METHOD method,
int(*)(UI *ui, UI_STRING *uis)  reader
 
IMPORT_C int UI_method_set_writer UI_METHOD method,
int(*)(UI *ui, UI_STRING *uis)  writer
 
IMPORT_C UI* UI_new void   ) 
 
IMPORT_C UI* UI_new_method const UI_METHOD method  ) 
 
IMPORT_C UI_METHOD* UI_OpenSSL void   ) 
 
IMPORT_C int UI_process UI ui  ) 
 
IMPORT_C void UI_set_default_method const UI_METHOD meth  ) 
 
IMPORT_C int UI_set_ex_data UI r,
int  idx,
void *  arg
 
IMPORT_C const UI_METHOD* UI_set_method UI ui,
const UI_METHOD meth
 
IMPORT_C int UI_set_result UI ui,
UI_STRING *  uis,
const char *  result
 
IMPORT_C int UI_UTIL_read_pw char *  buf,
char *  buff,
int  size,
const char *  prompt,
int  verify
 
IMPORT_C int UI_UTIL_read_pw_string char *  buf,
int  length,
const char *  prompt,
int  verify
 

Variable Documentation

IMPORT_C int(*)(UI*) UI_method_get_closer(UI_METHOD *method)
 
IMPORT_C int(*)(UI*) UI_method_get_flusher(UI_METHOD *method)
 
IMPORT_C int(*)(UI*) UI_method_get_opener(UI_METHOD *method)
 
IMPORT_C int(*)(UI*, UI_STRING*) UI_method_get_reader(UI_METHOD *method)
 
IMPORT_C int(*)(UI*, UI_STRING*) UI_method_get_writer(UI_METHOD *method)
 

Copyright © Nokia Corporation 2001-2008
Back to top