Lines Matching refs:dpp

769 dpp_alloc_auth(struct dpp_global *dpp, void *msg_ctx)  in dpp_alloc_auth()  argument
776 auth->global = dpp; in dpp_alloc_auth()
1369 dpp_configurator_get_id(struct dpp_global *dpp, unsigned int id) in dpp_configurator_get_id() argument
1373 if (!dpp) in dpp_configurator_get_id()
1376 dl_list_for_each(conf, &dpp->configurator, in dpp_configurator_get_id()
3091 int dpp = 0, psk = 0, sae = 0, dot1x = 0; in dpp_akm_from_str() local
3113 dpp = 1; in dpp_akm_from_str()
3130 if (dpp && psk && sae) in dpp_akm_from_str()
3132 if (dpp && sae) in dpp_akm_from_str()
3134 if (dpp) in dpp_akm_from_str()
4320 unsigned int dpp_next_id(struct dpp_global *dpp) in dpp_next_id() argument
4325 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_next_id()
4333 static int dpp_bootstrap_del(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_del() argument
4338 if (!dpp) in dpp_bootstrap_del()
4341 dl_list_for_each_safe(bi, tmp, &dpp->bootstrap, in dpp_bootstrap_del()
4347 if (dpp->remove_bi) in dpp_bootstrap_del()
4348 dpp->remove_bi(dpp->cb_ctx, bi); in dpp_bootstrap_del()
4360 struct dpp_bootstrap_info * dpp_add_qr_code(struct dpp_global *dpp, in dpp_add_qr_code() argument
4365 if (!dpp) in dpp_add_qr_code()
4373 bi->id = dpp_next_id(dpp); in dpp_add_qr_code()
4374 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_qr_code()
4379 struct dpp_bootstrap_info * dpp_add_nfc_uri(struct dpp_global *dpp, in dpp_add_nfc_uri() argument
4384 if (!dpp) in dpp_add_nfc_uri()
4392 bi->id = dpp_next_id(dpp); in dpp_add_nfc_uri()
4393 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_nfc_uri()
4435 int dpp_bootstrap_gen(struct dpp_global *dpp, const char *cmd) in dpp_bootstrap_gen() argument
4444 if (!dpp) in dpp_bootstrap_gen()
4485 bi->id = dpp_next_id(dpp); in dpp_bootstrap_gen()
4486 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_bootstrap_gen()
4503 dpp_bootstrap_get_id(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_id() argument
4507 if (!dpp) in dpp_bootstrap_get_id()
4510 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_get_id()
4518 int dpp_bootstrap_remove(struct dpp_global *dpp, const char *id) in dpp_bootstrap_remove() argument
4530 return dpp_bootstrap_del(dpp, id_val); in dpp_bootstrap_remove()
4534 const char * dpp_bootstrap_get_uri(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_uri() argument
4538 bi = dpp_bootstrap_get_id(dpp, id); in dpp_bootstrap_get_uri()
4545 int dpp_bootstrap_info(struct dpp_global *dpp, int id, in dpp_bootstrap_info() argument
4554 bi = dpp_bootstrap_get_id(dpp, id); in dpp_bootstrap_info()
4620 int dpp_bootstrap_set(struct dpp_global *dpp, int id, const char *params) in dpp_bootstrap_set() argument
4624 bi = dpp_bootstrap_get_id(dpp, id); in dpp_bootstrap_set()
4640 void dpp_bootstrap_find_pair(struct dpp_global *dpp, const u8 *i_bootstrap, in dpp_bootstrap_find_pair() argument
4649 if (!dpp) in dpp_bootstrap_find_pair()
4652 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_find_pair()
4676 struct dpp_bootstrap_info * dpp_bootstrap_find_chirp(struct dpp_global *dpp, in dpp_bootstrap_find_chirp() argument
4681 if (!dpp) in dpp_bootstrap_find_chirp()
4684 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_find_chirp()
4777 static unsigned int dpp_next_configurator_id(struct dpp_global *dpp) in dpp_next_configurator_id() argument
4782 dl_list_for_each(conf, &dpp->configurator, struct dpp_configurator, in dpp_next_configurator_id()
4791 int dpp_configurator_add(struct dpp_global *dpp, const char *cmd) in dpp_configurator_add() argument
4839 conf->id = dpp_next_configurator_id(dpp); in dpp_configurator_add()
4840 dl_list_add(&dpp->configurator, &conf->list); in dpp_configurator_add()
4854 int dpp_configurator_set(struct dpp_global *dpp, const char *cmd) in dpp_configurator_set() argument
4861 conf = dpp_configurator_get_id(dpp, id); in dpp_configurator_set()
4880 static int dpp_configurator_del(struct dpp_global *dpp, unsigned int id) in dpp_configurator_del() argument
4885 if (!dpp) in dpp_configurator_del()
4888 dl_list_for_each_safe(conf, tmp, &dpp->configurator, in dpp_configurator_del()
4903 int dpp_configurator_remove(struct dpp_global *dpp, const char *id) in dpp_configurator_remove() argument
4915 return dpp_configurator_del(dpp, id_val); in dpp_configurator_remove()
4919 int dpp_configurator_get_key_id(struct dpp_global *dpp, unsigned int id, in dpp_configurator_get_key_id() argument
4924 conf = dpp_configurator_get_id(dpp, id); in dpp_configurator_get_key_id()
4934 int dpp_configurator_from_backup(struct dpp_global *dpp, in dpp_configurator_from_backup() argument
4975 conf->id = dpp_next_configurator_id(dpp); in dpp_configurator_from_backup()
4976 dl_list_add(&dpp->configurator, &conf->list); in dpp_configurator_from_backup()
4981 struct dpp_configurator * dpp_configurator_find_kid(struct dpp_global *dpp, in dpp_configurator_find_kid() argument
4986 if (!dpp) in dpp_configurator_find_kid()
4989 dl_list_for_each(conf, &dpp->configurator, in dpp_configurator_find_kid()
5002 struct dpp_global *dpp; in dpp_global_init() local
5004 dpp = os_zalloc(sizeof(*dpp)); in dpp_global_init()
5005 if (!dpp) in dpp_global_init()
5008 dpp->cb_ctx = config->cb_ctx; in dpp_global_init()
5009 dpp->remove_bi = config->remove_bi; in dpp_global_init()
5012 dl_list_init(&dpp->bootstrap); in dpp_global_init()
5013 dl_list_init(&dpp->configurator); in dpp_global_init()
5015 dl_list_init(&dpp->controllers); in dpp_global_init()
5016 dl_list_init(&dpp->tcp_init); in dpp_global_init()
5017 dpp->relay_sock = -1; in dpp_global_init()
5020 return dpp; in dpp_global_init()
5024 void dpp_global_clear(struct dpp_global *dpp) in dpp_global_clear() argument
5026 if (!dpp) in dpp_global_clear()
5029 dpp_bootstrap_del(dpp, 0); in dpp_global_clear()
5030 dpp_configurator_del(dpp, 0); in dpp_global_clear()
5032 dpp_tcp_init_flush(dpp); in dpp_global_clear()
5033 dpp_relay_flush_controllers(dpp); in dpp_global_clear()
5034 dpp_controller_stop(dpp); in dpp_global_clear()
5039 void dpp_global_deinit(struct dpp_global *dpp) in dpp_global_deinit() argument
5041 dpp_global_clear(dpp); in dpp_global_deinit()
5042 os_free(dpp); in dpp_global_deinit()