Lines Matching refs:dpp

3755 dpp_configurator_get_id(struct dpp_global *dpp, unsigned int id)  in dpp_configurator_get_id()  argument
3759 if (!dpp) in dpp_configurator_get_id()
3762 dl_list_for_each(conf, &dpp->configurator, in dpp_configurator_get_id()
3771 int dpp_set_configurator(struct dpp_global *dpp, void *msg_ctx, in dpp_set_configurator() argument
3785 auth->conf = dpp_configurator_get_id(dpp, atoi(pos)); in dpp_set_configurator()
5229 int dpp = 0, psk = 0, sae = 0; in dpp_akm_from_str() local
5249 dpp = 1; in dpp_akm_from_str()
5262 if (dpp && psk && sae) in dpp_akm_from_str()
5264 if (dpp && sae) in dpp_akm_from_str()
5266 if (dpp) in dpp_akm_from_str()
6010 static unsigned int dpp_next_id(struct dpp_global *dpp) in dpp_next_id() argument
6015 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_next_id()
6022 static int dpp_bootstrap_del(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_del() argument
6027 if (!dpp) in dpp_bootstrap_del()
6030 dl_list_for_each_safe(bi, tmp, &dpp->bootstrap, in dpp_bootstrap_del()
6045 struct dpp_bootstrap_info * dpp_add_qr_code(struct dpp_global *dpp, in dpp_add_qr_code() argument
6050 if (!dpp) in dpp_add_qr_code()
6058 bi->id = dpp_next_id(dpp); in dpp_add_qr_code()
6059 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_qr_code()
6064 struct dpp_bootstrap_info * dpp_add_nfc_uri(struct dpp_global *dpp, in dpp_add_nfc_uri() argument
6069 if (!dpp) in dpp_add_nfc_uri()
6077 bi->id = dpp_next_id(dpp); in dpp_add_nfc_uri()
6078 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_nfc_uri()
6083 int dpp_bootstrap_gen(struct dpp_global *dpp, const char *cmd) in dpp_bootstrap_gen() argument
6151 bi->id = dpp_next_id(dpp); in dpp_bootstrap_gen()
6152 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_bootstrap_gen()
6169 dpp_bootstrap_get_id(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_id() argument
6173 if (!dpp) in dpp_bootstrap_get_id()
6176 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_get_id()
6184 int dpp_bootstrap_remove(struct dpp_global *dpp, const char *id) in dpp_bootstrap_remove() argument
6196 return dpp_bootstrap_del(dpp, id_val); in dpp_bootstrap_remove()
6199 const char * dpp_bootstrap_get_uri(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_uri() argument
6203 bi = dpp_bootstrap_get_id(dpp, id); in dpp_bootstrap_get_uri()
6209 int dpp_get_bootstrap_info(struct dpp_global *dpp, int id, in dpp_get_bootstrap_info() argument
6215 bi = dpp_bootstrap_get_id(dpp, id); in dpp_get_bootstrap_info()
6235 void dpp_bootstrap_find_pair(struct dpp_global *dpp, const u8 *i_bootstrap, in dpp_bootstrap_find_pair() argument
6244 if (!dpp) in dpp_bootstrap_find_pair()
6247 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_find_pair()
6271 static unsigned int dpp_next_configurator_id(struct dpp_global *dpp) in dpp_next_configurator_id() argument
6276 dl_list_for_each(conf, &dpp->configurator, struct dpp_configurator, in dpp_next_configurator_id()
6285 int dpp_configurator_add(struct dpp_global *dpp, const char *cmd) in dpp_configurator_add() argument
6309 conf->id = dpp_next_configurator_id(dpp); in dpp_configurator_add()
6310 dl_list_add(&dpp->configurator, &conf->list); in dpp_configurator_add()
6322 static int dpp_configurator_del(struct dpp_global *dpp, unsigned int id) in dpp_configurator_del() argument
6327 if (!dpp) in dpp_configurator_del()
6330 dl_list_for_each_safe(conf, tmp, &dpp->configurator, in dpp_configurator_del()
6345 int dpp_configurator_remove(struct dpp_global *dpp, const char *id) in dpp_configurator_remove() argument
6357 return dpp_configurator_del(dpp, id_val); in dpp_configurator_remove()
6361 int dpp_configurator_get_key_id(struct dpp_global *dpp, unsigned int id, in dpp_configurator_get_key_id() argument
6366 conf = dpp_configurator_get_id(dpp, id); in dpp_configurator_get_key_id()
6375 struct dpp_global *dpp; in dpp_global_init() local
6377 dpp = os_zalloc(sizeof(*dpp)); in dpp_global_init()
6378 if (!dpp) in dpp_global_init()
6380 dpp->msg_ctx = config->msg_ctx; in dpp_global_init()
6382 dl_list_init(&dpp->bootstrap); in dpp_global_init()
6383 dl_list_init(&dpp->configurator); in dpp_global_init()
6385 return dpp; in dpp_global_init()
6389 void dpp_global_clear(struct dpp_global *dpp) in dpp_global_clear() argument
6391 if (!dpp) in dpp_global_clear()
6394 dpp_bootstrap_del(dpp, 0); in dpp_global_clear()
6395 dpp_configurator_del(dpp, 0); in dpp_global_clear()
6399 void dpp_global_deinit(struct dpp_global *dpp) in dpp_global_deinit() argument
6401 dpp_global_clear(dpp); in dpp_global_deinit()
6402 os_free(dpp); in dpp_global_deinit()