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()
5224 int dpp = 0, psk = 0, sae = 0; in dpp_akm_from_str() local
5244 dpp = 1; in dpp_akm_from_str()
5257 if (dpp && psk && sae) in dpp_akm_from_str()
5259 if (dpp && sae) in dpp_akm_from_str()
5261 if (dpp) in dpp_akm_from_str()
6005 static unsigned int dpp_next_id(struct dpp_global *dpp) in dpp_next_id() argument
6010 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_next_id()
6017 static int dpp_bootstrap_del(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_del() argument
6022 if (!dpp) in dpp_bootstrap_del()
6025 dl_list_for_each_safe(bi, tmp, &dpp->bootstrap, in dpp_bootstrap_del()
6040 struct dpp_bootstrap_info * dpp_add_qr_code(struct dpp_global *dpp, in dpp_add_qr_code() argument
6045 if (!dpp) in dpp_add_qr_code()
6053 bi->id = dpp_next_id(dpp); in dpp_add_qr_code()
6054 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_qr_code()
6059 struct dpp_bootstrap_info * dpp_add_nfc_uri(struct dpp_global *dpp, in dpp_add_nfc_uri() argument
6064 if (!dpp) in dpp_add_nfc_uri()
6072 bi->id = dpp_next_id(dpp); in dpp_add_nfc_uri()
6073 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_add_nfc_uri()
6078 int dpp_bootstrap_gen(struct dpp_global *dpp, const char *cmd) in dpp_bootstrap_gen() argument
6146 bi->id = dpp_next_id(dpp); in dpp_bootstrap_gen()
6147 dl_list_add(&dpp->bootstrap, &bi->list); in dpp_bootstrap_gen()
6164 dpp_bootstrap_get_id(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_id() argument
6168 if (!dpp) in dpp_bootstrap_get_id()
6171 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_get_id()
6179 int dpp_bootstrap_remove(struct dpp_global *dpp, const char *id) in dpp_bootstrap_remove() argument
6191 return dpp_bootstrap_del(dpp, id_val); in dpp_bootstrap_remove()
6194 const char * dpp_bootstrap_get_uri(struct dpp_global *dpp, unsigned int id) in dpp_bootstrap_get_uri() argument
6198 bi = dpp_bootstrap_get_id(dpp, id); in dpp_bootstrap_get_uri()
6204 int dpp_get_bootstrap_info(struct dpp_global *dpp, int id, in dpp_get_bootstrap_info() argument
6210 bi = dpp_bootstrap_get_id(dpp, id); in dpp_get_bootstrap_info()
6230 void dpp_bootstrap_find_pair(struct dpp_global *dpp, const u8 *i_bootstrap, in dpp_bootstrap_find_pair() argument
6239 if (!dpp) in dpp_bootstrap_find_pair()
6242 dl_list_for_each(bi, &dpp->bootstrap, struct dpp_bootstrap_info, list) { in dpp_bootstrap_find_pair()
6266 static unsigned int dpp_next_configurator_id(struct dpp_global *dpp) in dpp_next_configurator_id() argument
6271 dl_list_for_each(conf, &dpp->configurator, struct dpp_configurator, in dpp_next_configurator_id()
6280 int dpp_configurator_add(struct dpp_global *dpp, const char *cmd) in dpp_configurator_add() argument
6304 conf->id = dpp_next_configurator_id(dpp); in dpp_configurator_add()
6305 dl_list_add(&dpp->configurator, &conf->list); in dpp_configurator_add()
6317 static int dpp_configurator_del(struct dpp_global *dpp, unsigned int id) in dpp_configurator_del() argument
6322 if (!dpp) in dpp_configurator_del()
6325 dl_list_for_each_safe(conf, tmp, &dpp->configurator, in dpp_configurator_del()
6340 int dpp_configurator_remove(struct dpp_global *dpp, const char *id) in dpp_configurator_remove() argument
6352 return dpp_configurator_del(dpp, id_val); in dpp_configurator_remove()
6356 int dpp_configurator_get_key_id(struct dpp_global *dpp, unsigned int id, in dpp_configurator_get_key_id() argument
6361 conf = dpp_configurator_get_id(dpp, id); in dpp_configurator_get_key_id()
6370 struct dpp_global *dpp; in dpp_global_init() local
6372 dpp = os_zalloc(sizeof(*dpp)); in dpp_global_init()
6373 if (!dpp) in dpp_global_init()
6375 dpp->msg_ctx = config->msg_ctx; in dpp_global_init()
6377 dl_list_init(&dpp->bootstrap); in dpp_global_init()
6378 dl_list_init(&dpp->configurator); in dpp_global_init()
6380 return dpp; in dpp_global_init()
6384 void dpp_global_clear(struct dpp_global *dpp) in dpp_global_clear() argument
6386 if (!dpp) in dpp_global_clear()
6389 dpp_bootstrap_del(dpp, 0); in dpp_global_clear()
6390 dpp_configurator_del(dpp, 0); in dpp_global_clear()
6394 void dpp_global_deinit(struct dpp_global *dpp) in dpp_global_deinit() argument
6396 dpp_global_clear(dpp); in dpp_global_deinit()
6397 os_free(dpp); in dpp_global_deinit()