| /src/crypto/openssl/apps/lib/ |
| H A D | apps_ui.c | 15 static UI_METHOD *ui_method = NULL; variable 123 ui_method = UI_create_method("OpenSSL application user interface"); in setup_ui_method() 124 return ui_method != NULL in setup_ui_method() 125 && 0 == UI_method_set_opener(ui_method, ui_open) in setup_ui_method() 126 && 0 == UI_method_set_reader(ui_method, ui_read) in setup_ui_method() 127 && 0 == UI_method_set_writer(ui_method, ui_write) in setup_ui_method() 128 && 0 == UI_method_set_closer(ui_method, ui_close) in setup_ui_method() 129 && 0 == UI_method_set_prompt_constructor(ui_method, ui_prompt_construct); in setup_ui_method() 134 if (ui_method != NULL) { in destroy_ui_method() 135 UI_destroy_method(ui_method); in destroy_ui_method() [all …]
|
| H A D | engine_loader.c | 67 const UI_METHOD *ui_method, in engine_open() argument 116 const UI_METHOD *ui_method, void *ui_data) in engine_load() argument 126 (UI_METHOD *)ui_method, ui_data); in engine_load() 130 (UI_METHOD *)ui_method, ui_data); in engine_load()
|
| /src/crypto/openssl/crypto/ |
| H A D | passphrase.c | 80 const UI_METHOD *ui_method, void *ui_data) in ossl_pw_set_ui_method() argument 82 if (!ossl_assert(data != NULL && ui_method != NULL)) { in ossl_pw_set_ui_method() 88 data->_.ui_method.ui_method = ui_method; in ossl_pw_set_ui_method() 89 data->_.ui_method.ui_method_data = ui_data; in ossl_pw_set_ui_method() 116 const UI_METHOD *ui_method, void *ui_data) in do_ui_passphrase() argument 133 if (ui_method != NULL) { in do_ui_passphrase() 134 UI_set_method(ui, ui_method); in do_ui_passphrase() 211 const UI_METHOD *ui_method = NULL; in ossl_pw_get_passphrase() local 262 ui_method = allocated_ui_method = UI_UTIL_wrap_read_pem_callback(cb, verify); in ossl_pw_get_passphrase() 265 if (ui_method == NULL) { in ossl_pw_get_passphrase() [all …]
|
| /src/crypto/openssl/crypto/ui/ |
| H A D | ui_util.c | 146 UI_METHOD *ui_method = NULL; in UI_UTIL_wrap_read_pem_callback() local 149 || (ui_method = UI_create_method("PEM password callback wrapper")) == NULL in UI_UTIL_wrap_read_pem_callback() 150 || UI_method_set_opener(ui_method, ui_open) < 0 in UI_UTIL_wrap_read_pem_callback() 151 || UI_method_set_reader(ui_method, ui_read) < 0 in UI_UTIL_wrap_read_pem_callback() 152 || UI_method_set_writer(ui_method, ui_write) < 0 in UI_UTIL_wrap_read_pem_callback() 153 || UI_method_set_closer(ui_method, ui_close) < 0 in UI_UTIL_wrap_read_pem_callback() 155 || !UI_method_set_ex_data(ui_method, ui_method_data_index, data)) { in UI_UTIL_wrap_read_pem_callback() 156 UI_destroy_method(ui_method); in UI_UTIL_wrap_read_pem_callback() 163 return ui_method; in UI_UTIL_wrap_read_pem_callback()
|
| H A D | ui_lib.c | 604 UI_METHOD *ui_method = NULL; in UI_create_method() local 606 if ((ui_method = OPENSSL_zalloc(sizeof(*ui_method))) == NULL in UI_create_method() 607 || (ui_method->name = OPENSSL_strdup(name)) == NULL in UI_create_method() 608 || !CRYPTO_new_ex_data(CRYPTO_EX_INDEX_UI_METHOD, ui_method, in UI_create_method() 609 &ui_method->ex_data)) { in UI_create_method() 611 if (ui_method != NULL) { in UI_create_method() 612 if (ui_method->name != NULL) in UI_create_method() 618 OPENSSL_free(ui_method->name); in UI_create_method() 620 OPENSSL_free(ui_method); in UI_create_method() 623 return ui_method; in UI_create_method() [all …]
|
| /src/crypto/openssl/crypto/engine/ |
| H A D | eng_pkey.c | 57 UI_METHOD *ui_method, void *callback_data) in ENGINE_load_private_key() argument 77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key() 86 UI_METHOD *ui_method, void *callback_data) in ENGINE_load_public_key() argument 106 pkey = e->load_pubkey(e, key_id, ui_method, callback_data); in ENGINE_load_public_key() 117 UI_METHOD *ui_method, void *callback_data) in ENGINE_load_ssl_client_cert() argument 137 ui_method, callback_data); in ENGINE_load_ssl_client_cert()
|
| H A D | eng_openssl.c | 77 UI_METHOD *ui_method, 420 UI_METHOD *ui_method, in openssl_load_privkey() argument
|
| /src/crypto/openssl/engines/ |
| H A D | e_loader_attic.c | 56 static char *file_get_pass(const UI_METHOD *ui_method, char *pass, in DEFINE_STACK_OF() 68 if (ui_method != NULL) in DEFINE_STACK_OF() 69 UI_set_method(ui, ui_method); in DEFINE_STACK_OF() 101 const UI_METHOD *ui_method; member 109 const UI_METHOD *ui_method, void *ui_data) in file_fill_pem_pass_data() argument 113 pass_data->ui_method = ui_method; in file_fill_pem_pass_data() 124 char *pass = file_get_pass(pass_data->ui_method, buf, num, in file_get_pem_pass() 263 const UI_METHOD *ui_method, 300 const UI_METHOD *ui_method, in try_decode_PKCS12() argument 330 if ((pass = file_get_pass(ui_method, tpass, PEM_BUFSIZE, in try_decode_PKCS12() [all …]
|
| H A D | e_ossltest.c | 380 UI_METHOD *ui_method, void *ui_data) in load_key() argument 402 UI_METHOD *ui_method, void *ui_data) in ossltest_load_privkey() argument 404 return load_key(eng, key_id, 0, ui_method, ui_data); in ossltest_load_privkey() 408 UI_METHOD *ui_method, void *ui_data) in ossltest_load_pubkey() argument 410 return load_key(eng, key_id, 1, ui_method, ui_data); in ossltest_load_pubkey()
|
| /src/crypto/openssl/test/ |
| H A D | ossl_store_test.c | 44 UI_METHOD *ui_method = NULL; in test_store_open() local 49 && TEST_ptr(ui_method = UI_create_method("DummyUI")) in test_store_open() 50 && TEST_ptr(sctx = OSSL_STORE_open_ex(input, NULL, NULL, ui_method, in test_store_open() 54 UI_destroy_method(ui_method); in test_store_open() 103 UI_METHOD *ui_method = NULL; in test_store_open_winstore() local 115 && TEST_ptr(ui_method = UI_create_method("DummyUI")) in test_store_open_winstore() 117 NULL, ui_method, NULL, NULL, in test_store_open_winstore() 121 UI_destroy_method(ui_method); in test_store_open_winstore()
|
| H A D | uitest.c | 32 UI_METHOD *ui_method = NULL; in test_old() local 38 if (!TEST_ptr(ui_method = UI_UTIL_wrap_read_pem_callback(test_pem_password_cb, 0)) in test_old() 39 || !TEST_ptr(ui = UI_new_method(ui_method))) in test_old() 65 UI_destroy_method(ui_method); in test_old()
|
| H A D | provider_pkey_test.c | 455 UI_METHOD *ui_method = NULL; in test_pkey_store_open_ex() local 470 if (!TEST_ptr(ui_method = UI_create_method("PW Callbacks"))) in test_pkey_store_open_ex() 473 if (UI_method_set_reader(ui_method, fake_pw_read_string)) in test_pkey_store_open_ex() 477 ui_method, NULL, NULL, NULL, NULL))) in test_pkey_store_open_ex() 490 UI_destroy_method(ui_method); in test_pkey_store_open_ex()
|
| /src/crypto/openssl/include/openssl/ |
| H A D | store.h | 56 OSSL_STORE_open(const char *uri, const UI_METHOD *ui_method, void *ui_data, 61 const UI_METHOD *ui_method, void *ui_data, 106 const UI_METHOD *ui_method, void *ui_data, 142 const UI_METHOD *ui_method, void *ui_data, 296 const UI_METHOD *ui_method, void *ui_data); 299 const UI_METHOD *ui_method, void *ui_data); 303 const UI_METHOD *ui_method, void *ui_data); 307 …INFO *(*OSSL_STORE_load_fn)(OSSL_STORE_LOADER_CTX *ctx, const UI_METHOD *ui_method, void *ui_data);
|
| H A D | engine.h | 273 UI_METHOD *ui_method, 279 UI_METHOD *ui_method, 641 UI_METHOD *ui_method, void *callback_data); 644 UI_METHOD *ui_method, void *callback_data); 649 UI_METHOD *ui_method, void *callback_data);
|
| H A D | ui.h | 166 char *UI_construct_prompt(UI *ui_method, 340 void UI_destroy_method(UI_METHOD *ui_method);
|
| H A D | encoder.h | 64 const UI_METHOD *ui_method,
|
| H A D | decoder.h | 64 const UI_METHOD *ui_method,
|
| /src/crypto/openssl/crypto/store/ |
| H A D | store_lib.c | 65 const UI_METHOD *ui_method, void *ui_data, in OSSL_STORE_open_ex() argument 112 if (ui_method != NULL in OSSL_STORE_open_ex() 113 && (!ossl_pw_set_ui_method(&pwdata, ui_method, ui_data) in OSSL_STORE_open_ex() 137 ui_method, ui_data); in OSSL_STORE_open_ex() 139 loader_ctx = loader->open(loader, uri, ui_method, ui_data); in OSSL_STORE_open_ex() 241 const UI_METHOD *ui_method, void *ui_data, in OSSL_STORE_open() argument 245 return OSSL_STORE_open_ex(uri, NULL, NULL, ui_method, ui_data, NULL, in OSSL_STORE_open() 455 ctx->pwdata._.ui_method.ui_method, in OSSL_STORE_load() 456 ctx->pwdata._.ui_method.ui_method_data); in OSSL_STORE_load() 493 const UI_METHOD *ui_method, void *ui_data, in OSSL_STORE_delete() argument [all …]
|
| /src/crypto/openssl/include/internal/ |
| H A D | passphrase.h | 65 const UI_METHOD *ui_method; member 67 } ui_method; member 98 const UI_METHOD *ui_method, void *ui_data);
|
| /src/crypto/openssl/doc/man3/ |
| H A D | OSSL_STORE_open.pod | 20 OSSL_STORE_CTX *OSSL_STORE_open(const char *uri, const UI_METHOD *ui_method, 26 const UI_METHOD *ui_method, void *ui_data, 34 const UI_METHOD *ui_method, void *ui_data, 67 I<ui_method> with associated data I<ui_data>, and post processing 72 The given I<ui_method> and I<ui_data> will be reused by all
|
| H A D | OSSL_STORE_attach.pod | 13 const UI_METHOD *ui_method, void *ui_data,
|
| H A D | OSSL_STORE_LOADER.pod | 69 const char *uri, const UI_METHOD *ui_method, void *ui_data); 73 const char *uri, const UI_METHOD *ui_method, void *ui_data); 80 const UI_METHOD *ui_method, void *ui_data); 95 UI_METHOD *ui_method,
|
| H A D | UI_create_method.pod | 23 void UI_destroy_method(UI_METHOD *ui_method); 151 UI_destroy_method() destroys the given UI method B<ui_method>.
|
| /src/crypto/openssl/apps/include/ |
| H A D | apps_ui.h | 23 int set_base_ui_method(const UI_METHOD *ui_method);
|
| /src/crypto/openssl/crypto/encode_decode/ |
| H A D | encoder_pkey.c | 48 const UI_METHOD *ui_method, in OSSL_ENCODER_CTX_set_passphrase_ui() argument 51 return ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data); in OSSL_ENCODER_CTX_set_passphrase_ui()
|