Home
last modified time | relevance | path

Searched refs:ui (Results 1 – 25 of 28) sorted by relevance

12

/openssl/crypto/ui/
H A Dui_lib.c76 ui->meth->ui_destroy_data(ui, ui->user_data); in UI_free()
79 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI, ui, &ui->ex_data); in UI_free()
343 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt()
376 ui->meth->ui_destroy_data(ui, old_data); in UI_add_user_data()
394 duplicate = ui->meth->ui_duplicate_data(ui, user_data); in UI_dup_user_data()
446 && ui->meth->ui_write_string(ui, &uis) <= 0) in print_error()
457 && ui->meth->ui_open_session(ui) <= 0) { in UI_process()
469 && (ui->meth->ui_write_string(ui, in UI_process()
480 switch (ui->meth->ui_flush(ui)) { in UI_process()
496 switch (ui->meth->ui_read_string(ui, in UI_process()
[all …]
H A Dui_util.c36 UI *ui; in UI_UTIL_read_pw() local
41 ui = UI_new(); in UI_UTIL_read_pw()
42 if (ui != NULL) { in UI_UTIL_read_pw()
47 ok = UI_process(ui); in UI_UTIL_read_pw()
48 UI_free(ui); in UI_UTIL_read_pw()
99 static int ui_open(UI *ui) in ui_open() argument
103 static int ui_read(UI *ui, UI_STRING *uis) in ui_read() argument
117 UI_get0_user_data(ui)); in ui_read()
124 if (UI_set_result_ex(ui, uis, result, len) >= 0) in ui_read()
137 static int ui_write(UI *ui, UI_STRING *uis) in ui_write() argument
[all …]
H A Dui_local.h31 int (*ui_open_session) (UI *ui);
32 int (*ui_write_string) (UI *ui, UI_STRING *uis);
37 int (*ui_flush) (UI *ui);
38 int (*ui_read_string) (UI *ui, UI_STRING *uis);
39 int (*ui_close_session) (UI *ui);
44 void *(*ui_duplicate_data) (UI *ui, void *ui_data);
45 void (*ui_destroy_data) (UI *ui, void *ui_data);
53 char *(*ui_construct_prompt) (UI *ui, const char *object_desc,
H A Dui_openssl.c194 static int open_console(UI *ui);
195 static int echo_console(UI *ui);
196 static int noecho_console(UI *ui);
197 static int close_console(UI *ui);
229 return read_string_inner(ui, uis, in read_string()
293 if (!echo && !noecho_console(ui)) in read_string_inner()
373 static int open_console(UI *ui) in open_console() argument
485 static int noecho_console(UI *ui) in noecho_console() argument
521 static int echo_console(UI *ui) in echo_console() argument
552 static int close_console(UI *ui) in close_console() argument
[all …]
/openssl/apps/lib/
H A Dapps_ui.c18 static int ui_open(UI *ui) in ui_open() argument
23 return opener(ui); in ui_open()
32 && UI_get0_user_data(ui)) { in ui_read()
56 return reader(ui, uis); in ui_read()
58 UI_set_result(ui, uis, ""); in ui_read()
89 return writer(ui, uis); in ui_write()
93 static int ui_close(UI *ui) in ui_close() argument
98 return closer(ui); in ui_close()
167 UI *ui; in password_callback() local
182 UI_free(ui); in password_callback()
[all …]
/openssl/test/
H A Duitest.c34 UI *ui = NULL; in test_old() local
41 || !TEST_ptr(ui = UI_new_method(ui_method))) in test_old()
45 UI_add_user_data(ui, defpass); in test_old()
47 if (UI_add_input_string(ui, "prompt", UI_INPUT_FLAG_DEFAULT_PWD, in test_old()
51 switch (UI_process(ui)) { in test_old()
65 UI_free(ui); in test_old()
H A Dprovider_pkey_test.c363 static int fake_pw_read_string(UI *ui, UI_STRING *uis) in fake_pw_read_string() argument
368 UI_set_result(ui, uis, passphrase); in fake_pw_read_string()
/openssl/crypto/evp/
H A Devp_key.c57 UI *ui; in EVP_read_pw_string_min() local
61 ui = UI_new(); in EVP_read_pw_string_min()
62 if (ui == NULL) in EVP_read_pw_string_min()
64 if (UI_add_input_string(ui, prompt, 0, buf, min, in EVP_read_pw_string_min()
67 && UI_add_verify_string(ui, prompt, 0, buff, min, in EVP_read_pw_string_min()
71 ret = UI_process(ui); in EVP_read_pw_string_min()
74 UI_free(ui); in EVP_read_pw_string_min()
/openssl/crypto/
H A Dpassphrase.c122 UI *ui = NULL; in do_ui_passphrase() local
130 if ((ui = UI_new()) == NULL) { in do_ui_passphrase()
136 UI_set_method(ui, ui_method); in do_ui_passphrase()
138 UI_add_user_data(ui, ui_data); in do_ui_passphrase()
142 prompt = UI_construct_prompt(ui, "pass phrase", prompt_info); in do_ui_passphrase()
153 prompt_idx = UI_add_input_string(ui, prompt, in do_ui_passphrase()
166 verify_idx = UI_add_verify_string(ui, prompt, in do_ui_passphrase()
176 switch (UI_process(ui)) { in do_ui_passphrase()
184 res = UI_get_result_length(ui, prompt_idx); in do_ui_passphrase()
199 UI_free(ui); in do_ui_passphrase()
H A Dbuild.info4 txt_db pkcs7 pkcs12 ui kdf store property \
/openssl/include/openssl/
H A Dui.h.in56 void UI_free(UI *ui);
117 int UI_add_info_string(UI *ui, const char *text);
118 int UI_dup_info_string(UI *ui, const char *text);
119 int UI_add_error_string(UI *ui, const char *text);
179 void *UI_add_user_data(UI *ui, void *user_data);
185 int UI_dup_user_data(UI *ui, void *user_data);
187 void *UI_get0_user_data(UI *ui);
190 const char *UI_get0_result(UI *ui, int i);
191 int UI_get_result_length(UI *ui, int i);
194 int UI_process(UI *ui);
[all …]
/openssl/doc/man3/
H A DUI_new.pod17 #include <openssl/ui.h>
23 void UI_free(UI *ui);
41 int UI_add_info_string(UI *ui, const char *text);
49 void *UI_add_user_data(UI *ui, void *user_data);
50 int UI_dup_user_data(UI *ui, void *user_data);
51 void *UI_get0_user_data(UI *ui);
53 const char *UI_get0_result(UI *ui, int i);
54 int UI_get_result_length(UI *ui, int i);
56 int UI_process(UI *ui);
62 const UI_METHOD *UI_get_method(UI *ui);
[all …]
H A DUI_create_method.pod18 #include <openssl/ui.h>
24 int UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui));
26 int (*writer) (UI *ui, UI_STRING *uis));
27 int UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui));
29 int (*reader) (UI *ui, UI_STRING *uis));
30 int UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui));
32 void *(*duplicator) (UI *ui, void *ui_data),
33 void (*destructor)(UI *ui, void *ui_data));
35 char *(*prompt_constructor) (UI *ui,
H A DUI_STRING.pod14 #include <openssl/ui.h>
36 int UI_set_result(UI *ui, UI_STRING *uis, const char *result);
37 int UI_set_result_ex(UI *ui, UI_STRING *uis, const char *result, int len);
H A DUI_UTIL_read_pw.pod10 #include <openssl/ui.h>
/openssl/providers/implementations/kdfs/
H A Dpkcs12kdf.c58 int ret = 0, ui, vi; in pkcs12kdf_derive() local
67 ui = EVP_MD_get_size(md_type); in pkcs12kdf_derive()
68 if (ui <= 0 || vi <= 0) { in pkcs12kdf_derive()
72 u = (size_t)ui; in pkcs12kdf_derive()
/openssl/crypto/bn/
H A Dbn_nist.c359 unsigned int ui[BN_NIST_192_TOP * sizeof(BN_ULONG) / in BN_nist_mod_192() member
397 const unsigned int *bp = (const unsigned int *)buf.ui; in BN_nist_mod_192()
495 unsigned int ui[BN_NIST_224_TOP * sizeof(BN_ULONG) / in BN_nist_mod_224() member
544 const unsigned int *bp = (const unsigned int *)buf.ui; in BN_nist_mod_224()
667 unsigned int ui[BN_NIST_256_TOP * sizeof(BN_ULONG) / in BN_nist_mod_256() member
706 const unsigned int *bp = (const unsigned int *)buf.ui; in BN_nist_mod_256()
904 unsigned int ui[BN_NIST_384_TOP * sizeof(BN_ULONG) / in BN_nist_mod_384() member
943 const unsigned int *bp = (const unsigned int *)buf.ui; in BN_nist_mod_384()
/openssl/engines/
H A De_loader_attic.txt18 ui process interrupted or cancelled
H A De_loader_attic.c58 UI *ui = UI_new(); in DEFINE_STACK_OF() local
61 if (ui == NULL) { in DEFINE_STACK_OF()
67 UI_set_method(ui, ui_method); in DEFINE_STACK_OF()
68 UI_add_user_data(ui, data); in DEFINE_STACK_OF()
70 if ((prompt = UI_construct_prompt(ui, desc, info)) == NULL) { in DEFINE_STACK_OF()
73 } else if (UI_add_input_string(ui, prompt, UI_INPUT_FLAG_DEFAULT_PWD, in DEFINE_STACK_OF()
78 switch (UI_process(ui)) { in DEFINE_STACK_OF()
93 UI_free(ui); in DEFINE_STACK_OF()
/openssl/
H A Dbuild.info45 include/openssl/ui.h \
78 GENERATE[include/openssl/ui.h]=include/openssl/ui.h.in
H A D.gitignore55 /include/openssl/ui.h
/openssl/.github/workflows/
H A Drun-checker-ci.yml42 no-ui,
H A Drun-checker-daily.yml128 no-ui-console,
/openssl/doc/man7/
H A Dossl_store.pod47 #include <openssl/ui.h> /* for UI_get_default_method */
/openssl/crypto/err/
H A Dopenssl.ec29 L UI include/openssl/uierr.h crypto/ui/ui_err.c include/cry…

Completed in 49 milliseconds

12