Home
last modified time | relevance | path

Searched refs:ui_method (Results 1 – 25 of 32) sorted by relevance

12

/openssl/apps/lib/
H A Dapps_ui.c15 static UI_METHOD *ui_method = NULL; variable
130 return ui_method != NULL in setup_ui_method()
131 && 0 == UI_method_set_opener(ui_method, ui_open) in setup_ui_method()
132 && 0 == UI_method_set_reader(ui_method, ui_read) in setup_ui_method()
133 && 0 == UI_method_set_writer(ui_method, ui_write) in setup_ui_method()
134 && 0 == UI_method_set_closer(ui_method, ui_close) in setup_ui_method()
141 if (ui_method != NULL) { in destroy_ui_method()
142 UI_destroy_method(ui_method); in destroy_ui_method()
143 ui_method = NULL; in destroy_ui_method()
149 return ui_method; in get_ui_method()
[all …]
H A Dengine_loader.c67 const UI_METHOD *ui_method, in engine_open() argument
116 const UI_METHOD *ui_method, void *ui_data) in engine_load() argument
127 (UI_METHOD *)ui_method, ui_data); in engine_load()
132 (UI_METHOD *)ui_method, ui_data); in engine_load()
/openssl/crypto/
H A Dpassphrase.c89 data->_.ui_method.ui_method = ui_method; in ossl_pw_set_ui_method()
90 data->_.ui_method.ui_method_data = ui_data; in ossl_pw_set_ui_method()
135 if (ui_method != NULL) { in do_ui_passphrase()
136 UI_set_method(ui, ui_method); in do_ui_passphrase()
211 const UI_METHOD *ui_method = NULL; in ossl_pw_get_passphrase() local
261 ui_method = allocated_ui_method = in ossl_pw_get_passphrase()
265 if (ui_method == NULL) { in ossl_pw_get_passphrase()
270 ui_method = data->_.ui_method.ui_method; in ossl_pw_get_passphrase()
271 ui_data = data->_.ui_method.ui_method_data; in ossl_pw_get_passphrase()
274 if (ui_method == NULL) { in ossl_pw_get_passphrase()
[all …]
/openssl/crypto/ui/
H A Dui_util.c149 UI_METHOD *ui_method = NULL; in UI_UTIL_wrap_read_pem_callback() local
152 || (ui_method = UI_create_method("PEM password callback wrapper")) == NULL in UI_UTIL_wrap_read_pem_callback()
153 || UI_method_set_opener(ui_method, ui_open) < 0 in UI_UTIL_wrap_read_pem_callback()
154 || UI_method_set_reader(ui_method, ui_read) < 0 in UI_UTIL_wrap_read_pem_callback()
155 || UI_method_set_writer(ui_method, ui_write) < 0 in UI_UTIL_wrap_read_pem_callback()
156 || UI_method_set_closer(ui_method, ui_close) < 0 in UI_UTIL_wrap_read_pem_callback()
158 || !UI_method_set_ex_data(ui_method, ui_method_data_index, data)) { in UI_UTIL_wrap_read_pem_callback()
159 UI_destroy_method(ui_method); in UI_UTIL_wrap_read_pem_callback()
166 return ui_method; in UI_UTIL_wrap_read_pem_callback()
H A Dui_lib.c580 UI_METHOD *ui_method = NULL; in UI_create_method() local
582 if ((ui_method = OPENSSL_zalloc(sizeof(*ui_method))) == NULL in UI_create_method()
587 if (ui_method != NULL) { in UI_create_method()
588 if (ui_method->name != NULL) in UI_create_method()
594 OPENSSL_free(ui_method->name); in UI_create_method()
596 OPENSSL_free(ui_method); in UI_create_method()
599 return ui_method; in UI_create_method()
609 if (ui_method == NULL) in UI_destroy_method()
613 OPENSSL_free(ui_method->name); in UI_destroy_method()
614 ui_method->name = NULL; in UI_destroy_method()
[all …]
/openssl/crypto/engine/
H A Deng_pkey.c57 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 Deng_openssl.c77 UI_METHOD *ui_method,
418 UI_METHOD *ui_method, in openssl_load_privkey() argument
/openssl/test/
H A Duitest.c33 UI_METHOD *ui_method = NULL; in test_old() local
39 if (!TEST_ptr(ui_method = in test_old()
41 || !TEST_ptr(ui = UI_new_method(ui_method))) in test_old()
66 UI_destroy_method(ui_method); in test_old()
H A Dossl_store_test.c44 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()
H A Dprovider_pkey_test.c384 UI_METHOD *ui_method = NULL; in test_pkey_store_open_ex() local
399 if (!TEST_ptr(ui_method= UI_create_method("PW Callbacks"))) in test_pkey_store_open_ex()
402 if (UI_method_set_reader(ui_method, fake_pw_read_string)) in test_pkey_store_open_ex()
406 ui_method, NULL, NULL, NULL, NULL))) in test_pkey_store_open_ex()
419 UI_destroy_method(ui_method); in test_pkey_store_open_ex()
H A Devp_extra_test2.c771 const UI_METHOD *ui_method = NULL; in test_PEM_read_bio_negative_wrong_password() local
773 ui_method = UI_null(); in test_PEM_read_bio_negative_wrong_password()
782 UI_set_default_method(ui_method); in test_PEM_read_bio_negative_wrong_password()
/openssl/engines/
H A De_loader_attic.c66 if (ui_method != NULL) in DEFINE_STACK_OF()
67 UI_set_method(ui, ui_method); in DEFINE_STACK_OF()
98 const UI_METHOD *ui_method; member
110 pass_data->ui_method = ui_method; in file_fill_pem_pass_data()
121 char *pass = file_get_pass(pass_data->ui_method, buf, num, in file_get_pem_pass()
465 if ((pass = file_get_pass(ui_method, kbuf, PEM_BUFSIZE, in try_decode_PKCS8Encrypted()
946 const UI_METHOD *ui_method, void *ui_data) in file_open_ex() argument
1062 const UI_METHOD *ui_method, void *ui_data) in file_open() argument
1070 const UI_METHOD *ui_method, void *ui_data) in file_attach() argument
1319 ui_method, ui_data) in file_read_pem()
[all …]
H A De_ossltest.c378 UI_METHOD *ui_method, void *ui_data) in load_key() argument
400 UI_METHOD *ui_method, void *ui_data) in ossltest_load_privkey() argument
402 return load_key(eng, key_id, 0, ui_method, ui_data); in ossltest_load_privkey()
406 UI_METHOD *ui_method, void *ui_data) in ossltest_load_pubkey() argument
408 return load_key(eng, key_id, 1, ui_method, ui_data); in ossltest_load_pubkey()
/openssl/include/openssl/
H A Dstore.h56 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,
297 const UI_METHOD *ui_method, void *ui_data);
301 const UI_METHOD *ui_method, void *ui_data);
306 const UI_METHOD *ui_method, void *ui_data);
314 (OSSL_STORE_LOADER_CTX *ctx, const UI_METHOD *ui_method, void *ui_data);
H A Dengine.h273 UI_METHOD *ui_method,
279 UI_METHOD *ui_method,
639 UI_METHOD *ui_method, void *callback_data);
642 UI_METHOD *ui_method, void *callback_data);
647 UI_METHOD *ui_method, void *callback_data);
H A Dencoder.h64 const UI_METHOD *ui_method,
H A Ddecoder.h64 const UI_METHOD *ui_method,
/openssl/include/internal/
H A Dpassphrase.h65 const UI_METHOD *ui_method; member
67 } ui_method; member
98 const UI_METHOD *ui_method, void *ui_data);
/openssl/crypto/store/
H A Dstore_lib.c64 const UI_METHOD *ui_method, void *ui_data, in OSSL_STORE_open_ex() argument
106 if (ui_method != NULL in OSSL_STORE_open_ex()
107 && (!ossl_pw_set_ui_method(&pwdata, ui_method, ui_data) in OSSL_STORE_open_ex()
131 ui_method, ui_data); in OSSL_STORE_open_ex()
243 return OSSL_STORE_open_ex(uri, NULL, NULL, ui_method, ui_data, NULL, in OSSL_STORE_open()
460 ctx->pwdata._.ui_method.ui_method, in OSSL_STORE_load()
498 const UI_METHOD *ui_method, void *ui_data, in OSSL_STORE_delete() argument
512 if (ui_method != NULL in OSSL_STORE_delete()
513 && (!ossl_pw_set_ui_method(&pwdata, ui_method, ui_data) in OSSL_STORE_delete()
1036 ui_method, ui_data); in OSSL_STORE_attach()
[all …]
/openssl/doc/man3/
H A DOSSL_STORE_open.pod20 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 DOSSL_STORE_attach.pod13 const UI_METHOD *ui_method, void *ui_data,
H A DOSSL_STORE_LOADER.pod69 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 DUI_create_method.pod23 void UI_destroy_method(UI_METHOD *ui_method);
151 UI_destroy_method() destroys the given UI method B<ui_method>.
/openssl/apps/include/
H A Dapps_ui.h24 int set_base_ui_method(const UI_METHOD *ui_method);
/openssl/crypto/encode_decode/
H A Dencoder_pkey.c50 const UI_METHOD *ui_method, in OSSL_ENCODER_CTX_set_passphrase_ui() argument
53 return ossl_pw_set_ui_method(&ctx->pwdata, ui_method, ui_data); in OSSL_ENCODER_CTX_set_passphrase_ui()

Completed in 57 milliseconds

12