libressl_d.openssl.ui

Undocumented in source.

Public Imports

libressl_d.openssl.crypto
public import libressl_d.openssl.crypto;
Undocumented in source.
libressl_d.openssl.opensslconf
public import libressl_d.openssl.opensslconf;
Undocumented in source.
libressl_d.openssl.ossl_typ
public import libressl_d.openssl.ossl_typ;
Undocumented in source.
libressl_d.openssl.safestack
public import libressl_d.openssl.safestack;
Undocumented in source.
libressl_d.openssl.crypto
public import libressl_d.openssl.crypto;
Undocumented in source.

Members

Aliases

UI_STRING
alias UI_STRING = .ui_string_st
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

UIT_NONE
anonymousenum UIT_NONE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_string_types
enum UI_string_types

The different types of strings that are currently supported. This is only needed by method authors.

Functions

ERR_load_UI_strings
void ERR_load_UI_strings()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_OpenSSL
libressl_d.openssl.ossl_typ.UI_METHOD* UI_OpenSSL()

The method with all the built-in thingies

UI_UTIL_read_pw
int UI_UTIL_read_pw(char* buf, char* buff, int size, const(char)* prompt, int verify)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_UTIL_read_pw_string
int UI_UTIL_read_pw_string(char* buf, int length_, const(char)* prompt, int verify)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_add_error_string
int UI_add_error_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* text)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_add_info_string
int UI_add_info_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* text)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_add_input_boolean
int UI_add_input_boolean(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, const(char)* action_desc, const(char)* ok_chars, const(char)* cancel_chars, int flags, char* result_buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_add_input_string
int UI_add_input_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, int flags, char* result_buf, int minsize, int maxsize)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_add_user_data
void* UI_add_user_data(libressl_d.openssl.ossl_typ.UI* ui, void* user_data)

The following function is used to store a pointer to user-specific data. Any previous such pointer will be returned and replaced.

UI_add_verify_string
int UI_add_verify_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, int flags, char* result_buf, int minsize, int maxsize, const(char)* test_buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_construct_prompt
char* UI_construct_prompt(libressl_d.openssl.ossl_typ.UI* ui_method, const(char)* object_desc, const(char)* object_name)

The following function helps construct a prompt. object_desc is a textual short description of the object, for example "pass phrase", and object_name is the name of the object \(might be a card name or a file name. The returned string shall always be allocated on the heap with malloc(), and need to be free'd with free().

UI_create_method
libressl_d.openssl.ossl_typ.UI_METHOD* UI_create_method(const(char)* name)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_ctrl
int UI_ctrl(libressl_d.openssl.ossl_typ.UI* ui, int cmd, core.stdc.config.c_long i, void* p, void function() f)

Give a user interface parametrised control commands. This can be used to send down an integer, a data pointer or a function pointer, as well as be used to get information from a UI.

UI_destroy_method
void UI_destroy_method(libressl_d.openssl.ossl_typ.UI_METHOD* ui_method)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_dup_error_string
int UI_dup_error_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* text)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_dup_info_string
int UI_dup_info_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* text)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_dup_input_boolean
int UI_dup_input_boolean(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, const(char)* action_desc, const(char)* ok_chars, const(char)* cancel_chars, int flags, char* result_buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_dup_input_string
int UI_dup_input_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, int flags, char* result_buf, int minsize, int maxsize)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_dup_verify_string
int UI_dup_verify_string(libressl_d.openssl.ossl_typ.UI* ui, const(char)* prompt, int flags, char* result_buf, int minsize, int maxsize, const(char)* test_buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_free
void UI_free(libressl_d.openssl.ossl_typ.UI* ui)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get0_action_string
const(char)* UI_get0_action_string(.UI_STRING* uis)

Return the optional action string to output (boolean prompt instruction)

UI_get0_output_string
const(char)* UI_get0_output_string(.UI_STRING* uis)

Return the actual string to output (the prompt, info or error)

UI_get0_result
const(char)* UI_get0_result(libressl_d.openssl.ossl_typ.UI* ui, int i)

Return the result associated with a prompt given with the index i.

UI_get0_result_string
const(char)* UI_get0_result_string(.UI_STRING* uis)

Return the result of a prompt

UI_get0_test_string
const(char)* UI_get0_test_string(.UI_STRING* uis)

Return the string to test the result against. Only useful with verifies.

UI_get0_user_data
void* UI_get0_user_data(libressl_d.openssl.ossl_typ.UI* ui)

We need a user data retrieving function as well.

UI_get_app_data
void* UI_get_app_data(libressl_d.openssl.ossl_typ.UI* s)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get_default_method
const(libressl_d.openssl.ossl_typ.UI_METHOD)* UI_get_default_method()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get_ex_data
void* UI_get_ex_data(libressl_d.openssl.ossl_typ.UI* r, int idx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get_ex_new_index
int UI_get_ex_new_index(core.stdc.config.c_long argl, void* argp, libressl_d.openssl.ossl_typ.CRYPTO_EX_new* new_func, libressl_d.openssl.ossl_typ.CRYPTO_EX_dup* dup_func, libressl_d.openssl.ossl_typ.CRYPTO_EX_free* free_func)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get_input_flags
int UI_get_input_flags(.UI_STRING* uis)

Return input flags of the UI_STRING

UI_get_method
const(libressl_d.openssl.ossl_typ.UI_METHOD)* UI_get_method(libressl_d.openssl.ossl_typ.UI* ui)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_get_result_maxsize
int UI_get_result_maxsize(.UI_STRING* uis)

Return the required maximum size of the result

UI_get_result_minsize
int UI_get_result_minsize(.UI_STRING* uis)

Return the required minimum size of the result

UI_method_set_closer
int UI_method_set_closer(libressl_d.openssl.ossl_typ.UI_METHOD* method, int function(libressl_d.openssl.ossl_typ.UI* ui) closer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_method_set_flusher
int UI_method_set_flusher(libressl_d.openssl.ossl_typ.UI_METHOD* method, int function(libressl_d.openssl.ossl_typ.UI* ui) flusher)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_method_set_opener
int UI_method_set_opener(libressl_d.openssl.ossl_typ.UI_METHOD* method, int function(libressl_d.openssl.ossl_typ.UI* ui) opener)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_method_set_prompt_constructor
int UI_method_set_prompt_constructor(libressl_d.openssl.ossl_typ.UI_METHOD* method, char* function(libressl_d.openssl.ossl_typ.UI* ui, const(char)* object_desc, const(char)* object_name) prompt_constructor)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_method_set_reader
int UI_method_set_reader(libressl_d.openssl.ossl_typ.UI_METHOD* method, int function(libressl_d.openssl.ossl_typ.UI* ui, .UI_STRING* uis) reader)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_method_set_writer
int UI_method_set_writer(libressl_d.openssl.ossl_typ.UI_METHOD* method, int function(libressl_d.openssl.ossl_typ.UI* ui, .UI_STRING* uis) writer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_new
libressl_d.openssl.ossl_typ.UI* UI_new()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_new_method
libressl_d.openssl.ossl_typ.UI* UI_new_method(const(libressl_d.openssl.ossl_typ.UI_METHOD)* method)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_process
int UI_process(libressl_d.openssl.ossl_typ.UI* ui)

When all strings have been added, process the whole thing.

UI_set_app_data
int UI_set_app_data(libressl_d.openssl.ossl_typ.UI* s, void* arg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_set_default_method
void UI_set_default_method(const(libressl_d.openssl.ossl_typ.UI_METHOD)* meth)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_set_ex_data
int UI_set_ex_data(libressl_d.openssl.ossl_typ.UI* r, int idx, void* arg)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_set_method
const(libressl_d.openssl.ossl_typ.UI_METHOD)* UI_set_method(libressl_d.openssl.ossl_typ.UI* ui, const(libressl_d.openssl.ossl_typ.UI_METHOD)* meth)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_set_result
int UI_set_result(libressl_d.openssl.ossl_typ.UI* ui, .UI_STRING* uis, const(char)* result)

Set the result of a UI_STRING.

Manifest constants

UI_CTRL_IS_REDOABLE
enum UI_CTRL_IS_REDOABLE;

Check if a UI_process() is possible to do again with the same instance of a user interface. This makes UI_ctrl() return 1 if it is redoable, and 0 if not.

UI_CTRL_PRINT_ERRORS
enum UI_CTRL_PRINT_ERRORS;

Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the OpenSSL error stack before printing any info or added error messages and before any prompting.

UI_F_GENERAL_ALLOCATE_BOOLEAN
enum UI_F_GENERAL_ALLOCATE_BOOLEAN;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_GENERAL_ALLOCATE_PROMPT
enum UI_F_GENERAL_ALLOCATE_PROMPT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_GENERAL_ALLOCATE_STRING
enum UI_F_GENERAL_ALLOCATE_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_CTRL
enum UI_F_UI_CTRL;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_DUP_ERROR_STRING
enum UI_F_UI_DUP_ERROR_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_DUP_INFO_STRING
enum UI_F_UI_DUP_INFO_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_DUP_INPUT_BOOLEAN
enum UI_F_UI_DUP_INPUT_BOOLEAN;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_DUP_INPUT_STRING
enum UI_F_UI_DUP_INPUT_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_DUP_VERIFY_STRING
enum UI_F_UI_DUP_VERIFY_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_GET0_RESULT
enum UI_F_UI_GET0_RESULT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_NEW_METHOD
enum UI_F_UI_NEW_METHOD;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_F_UI_SET_RESULT
enum UI_F_UI_SET_RESULT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_INPUT_FLAG_DEFAULT_PWD
enum UI_INPUT_FLAG_DEFAULT_PWD;

Use a default password. Where that password is found is completely up to the application, it might for example be in the user data set with UI_add_user_data(). It is not recommended to have more than one input in each UI being marked with this flag, or the application might get confused.

UI_INPUT_FLAG_ECHO
enum UI_INPUT_FLAG_ECHO;

Use to have echoing of input

UI_INPUT_FLAG_USER_BASE
enum UI_INPUT_FLAG_USER_BASE;

Users of these routines may want to define flags of their own. The core UI won't look at those, but will pass them on to the method routines. They must use higher bits so they don't get confused with the UI bits above. UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use. A good example of use is this:

UI_R_COMMON_OK_AND_CANCEL_CHARACTERS
enum UI_R_COMMON_OK_AND_CANCEL_CHARACTERS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_INDEX_TOO_LARGE
enum UI_R_INDEX_TOO_LARGE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_INDEX_TOO_SMALL
enum UI_R_INDEX_TOO_SMALL;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_NO_RESULT_BUFFER
enum UI_R_NO_RESULT_BUFFER;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_RESULT_TOO_LARGE
enum UI_R_RESULT_TOO_LARGE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_RESULT_TOO_SMALL
enum UI_R_RESULT_TOO_SMALL;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
UI_R_UNKNOWN_CONTROL_COMMAND
enum UI_R_UNKNOWN_CONTROL_COMMAND;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

stack_st_UI_STRING
struct stack_st_UI_STRING
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ui_string_st
struct ui_string_st
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta