OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
ui_lib.c File Reference
#include <string.h>
#include "cryptlib.h"
#include <openssl/e_os2.h>
#include <openssl/buffer.h>
#include <openssl/ui.h>
#include <openssl/err.h>
#include "ui_locl.h"

Go to the source code of this file.

Functions

UIUI_new (void)
 
UIUI_new_method (const UI_METHOD *method)
 
void UI_free (UI *ui)
 
int UI_add_input_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize)
 
int UI_dup_input_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize)
 
int UI_add_verify_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize, const char *test_buf)
 
int UI_dup_verify_string (UI *ui, const char *prompt, int flags, char *result_buf, int minsize, int maxsize, const char *test_buf)
 
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)
 
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)
 
int UI_add_info_string (UI *ui, const char *text)
 
int UI_dup_info_string (UI *ui, const char *text)
 
int UI_add_error_string (UI *ui, const char *text)
 
int UI_dup_error_string (UI *ui, const char *text)
 
char * UI_construct_prompt (UI *ui, const char *object_desc, const char *object_name)
 
voidUI_add_user_data (UI *ui, void *user_data)
 
voidUI_get0_user_data (UI *ui)
 
const char * UI_get0_result (UI *ui, int i)
 
int UI_process (UI *ui)
 
int UI_ctrl (UI *ui, int cmd, long i, void *p, void(*f)(void))
 
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)
 
int UI_set_ex_data (UI *r, int idx, void *arg)
 
voidUI_get_ex_data (UI *r, int idx)
 
void UI_set_default_method (const UI_METHOD *meth)
 
const UI_METHODUI_get_default_method (void)
 
const UI_METHODUI_get_method (UI *ui)
 
const UI_METHODUI_set_method (UI *ui, const UI_METHOD *meth)
 
UI_METHODUI_create_method (char *name)
 
void UI_destroy_method (UI_METHOD *ui_method)
 
int UI_method_set_opener (UI_METHOD *method, int(*opener)(UI *ui))
 
int UI_method_set_writer (UI_METHOD *method, int(*writer)(UI *ui, UI_STRING *uis))
 
int UI_method_set_flusher (UI_METHOD *method, int(*flusher)(UI *ui))
 
int UI_method_set_reader (UI_METHOD *method, int(*reader)(UI *ui, UI_STRING *uis))
 
int UI_method_set_closer (UI_METHOD *method, int(*closer)(UI *ui))
 
int UI_method_set_prompt_constructor (UI_METHOD *method, char *(*prompt_constructor)(UI *ui, const char *object_desc, const char *object_name))
 
enum UI_string_types UI_get_string_type (UI_STRING *uis)
 
int UI_get_input_flags (UI_STRING *uis)
 
const char * UI_get0_output_string (UI_STRING *uis)
 
const char * UI_get0_action_string (UI_STRING *uis)
 
const char * UI_get0_result_string (UI_STRING *uis)
 
const char * UI_get0_test_string (UI_STRING *uis)
 
int UI_get_result_minsize (UI_STRING *uis)
 
int UI_get_result_maxsize (UI_STRING *uis)
 
int UI_set_result (UI *ui, UI_STRING *uis, const char *result)
 

Variables

int(*)(UI *) UI_method_get_opener (UI_METHOD *method)
 
int(*)(UI *, UI_STRING *) UI_method_get_writer (UI_METHOD *method)
 
int(*)(UI *) UI_method_get_flusher (UI_METHOD *method)
 
int(*)(UI *, UI_STRING *) UI_method_get_reader (UI_METHOD *method)
 
int(*)(UI *) UI_method_get_closer (UI_METHOD *method)
 
char *(*)(UI *, const char
*, const char *) 
UI_method_get_prompt_constructor (UI_METHOD *method)
 

Function Documentation

int UI_add_error_string ( UI ui,
const char *  text 
)

Definition at line 388 of file ui_lib.c.

int UI_add_info_string ( UI ui,
const char *  text 
)

Definition at line 364 of file ui_lib.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 
)

Definition at line 296 of file ui_lib.c.

int UI_add_input_string ( UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize 
)

Definition at line 243 of file ui_lib.c.

void* UI_add_user_data ( UI ui,
void user_data 
)

Definition at line 446 of file ui_lib.c.

int UI_add_verify_string ( UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize,
const char *  test_buf 
)

Definition at line 270 of file ui_lib.c.

char* UI_construct_prompt ( UI ui,
const char *  object_desc,
const char *  object_name 
)

Definition at line 411 of file ui_lib.c.

UI_METHOD* UI_create_method ( char *  name)

Definition at line 619 of file ui_lib.c.

int UI_ctrl ( UI ui,
int  cmd,
long  i,
void p,
void(*)(void f 
)

Definition at line 549 of file ui_lib.c.

void UI_destroy_method ( UI_METHOD ui_method)

Definition at line 634 of file ui_lib.c.

int UI_dup_error_string ( UI ui,
const char *  text 
)

Definition at line 394 of file ui_lib.c.

int UI_dup_info_string ( UI ui,
const char *  text 
)

Definition at line 370 of file ui_lib.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 
)

Definition at line 304 of file ui_lib.c.

int UI_dup_input_string ( UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize 
)

Definition at line 251 of file ui_lib.c.

int UI_dup_verify_string ( UI ui,
const char *  prompt,
int  flags,
char *  result_buf,
int  minsize,
int  maxsize,
const char *  test_buf 
)

Definition at line 277 of file ui_lib.c.

void UI_free ( UI ui)

Definition at line 117 of file ui_lib.c.

const char* UI_get0_action_string ( UI_STRING uis)

Definition at line 776 of file ui_lib.c.

const char* UI_get0_output_string ( UI_STRING uis)

Definition at line 769 of file ui_lib.c.

const char* UI_get0_result ( UI ui,
int  i 
)

Definition at line 458 of file ui_lib.c.

const char* UI_get0_result_string ( UI_STRING uis)

Definition at line 790 of file ui_lib.c.

const char* UI_get0_test_string ( UI_STRING uis)

Definition at line 804 of file ui_lib.c.

void* UI_get0_user_data ( UI ui)

Definition at line 453 of file ui_lib.c.

const UI_METHOD* UI_get_default_method ( void  )

Definition at line 598 of file ui_lib.c.

void* UI_get_ex_data ( UI r,
int  idx 
)

Definition at line 588 of file ui_lib.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 
)

Definition at line 576 of file ui_lib.c.

int UI_get_input_flags ( UI_STRING uis)

Definition at line 762 of file ui_lib.c.

const UI_METHOD* UI_get_method ( UI ui)

Definition at line 607 of file ui_lib.c.

int UI_get_result_maxsize ( UI_STRING uis)

Definition at line 831 of file ui_lib.c.

int UI_get_result_minsize ( UI_STRING uis)

Definition at line 817 of file ui_lib.c.

enum UI_string_types UI_get_string_type ( UI_STRING uis)

Definition at line 755 of file ui_lib.c.

int UI_method_set_closer ( UI_METHOD method,
int(*)(UI *ui)  closer 
)

Definition at line 685 of file ui_lib.c.

int UI_method_set_flusher ( UI_METHOD method,
int(*)(UI *ui)  flusher 
)

Definition at line 663 of file ui_lib.c.

int UI_method_set_opener ( UI_METHOD method,
int(*)(UI *ui)  opener 
)

Definition at line 641 of file ui_lib.c.

int UI_method_set_prompt_constructor ( UI_METHOD method,
char *(*)(UI *ui, const char *object_desc, const char *object_name)  prompt_constructor 
)

Definition at line 696 of file ui_lib.c.

int UI_method_set_reader ( UI_METHOD method,
int(*)(UI *ui, UI_STRING *uis)  reader 
)

Definition at line 674 of file ui_lib.c.

int UI_method_set_writer ( UI_METHOD method,
int(*)(UI *ui, UI_STRING *uis)  writer 
)

Definition at line 652 of file ui_lib.c.

UI* UI_new ( void  )

Definition at line 71 of file ui_lib.c.

UI* UI_new_method ( const UI_METHOD method)

Definition at line 76 of file ui_lib.c.

int UI_process ( UI ui)

Definition at line 487 of file ui_lib.c.

void UI_set_default_method ( const UI_METHOD meth)

Definition at line 593 of file ui_lib.c.

int UI_set_ex_data ( UI r,
int  idx,
void arg 
)

Definition at line 583 of file ui_lib.c.

const UI_METHOD* UI_set_method ( UI ui,
const UI_METHOD meth 
)

Definition at line 612 of file ui_lib.c.

int UI_set_result ( UI ui,
UI_STRING uis,
const char *  result 
)

Definition at line 845 of file ui_lib.c.

Variable Documentation

int(*)(UI*) UI_method_get_closer(UI_METHOD *method)

Definition at line 739 of file ui_lib.c.

int(*)(UI*) UI_method_get_flusher(UI_METHOD *method)

Definition at line 723 of file ui_lib.c.

int(*)(UI*) UI_method_get_opener(UI_METHOD *method)

Definition at line 707 of file ui_lib.c.

char*(*)(UI*, const char*, const char*) UI_method_get_prompt_constructor(UI_METHOD *method)

Definition at line 747 of file ui_lib.c.

int(*)(UI*, UI_STRING*) UI_method_get_reader(UI_METHOD *method)

Definition at line 731 of file ui_lib.c.

int(*)(UI*, UI_STRING*) UI_method_get_writer(UI_METHOD *method)

Definition at line 715 of file ui_lib.c.