/hostap-3.6.0/src/utils/ |
D | xml_libxml2.c | 20 void *ctx; member 53 int xml_validate(struct xml_node_ctx *ctx, xml_node_t *node, in xml_validate() 115 int xml_validate_dtd(struct xml_node_ctx *ctx, xml_node_t *node, in xml_validate_dtd() 167 void xml_node_free(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_free() 173 xml_node_t * xml_node_get_parent(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_get_parent() 179 xml_node_t * xml_node_from_buf(struct xml_node_ctx *ctx, const char *buf) in xml_node_from_buf() 195 const char * xml_node_get_localname(struct xml_node_ctx *ctx, in xml_node_get_localname() 202 char * xml_node_to_str(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_to_str() 245 void xml_node_detach(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_detach() 251 void xml_node_add_child(struct xml_node_ctx *ctx, xml_node_t *parent, in xml_node_add_child() [all …]
|
D | xml-utils.c | 15 static xml_node_t * get_node_uri_iter(struct xml_node_ctx *ctx, in get_node_uri_iter() 46 xml_node_t * get_node_uri(struct xml_node_ctx *ctx, xml_node_t *root, in get_node_uri() 63 static xml_node_t * get_node_iter(struct xml_node_ctx *ctx, in get_node_iter() 89 xml_node_t * get_node(struct xml_node_ctx *ctx, xml_node_t *root, in get_node() 106 xml_node_t * get_child_node(struct xml_node_ctx *ctx, xml_node_t *root, in get_child_node() 123 xml_node_t * node_from_file(struct xml_node_ctx *ctx, const char *name) in node_from_file() 169 int node_to_file(struct xml_node_ctx *ctx, const char *fname, xml_node_t *node) in node_to_file() 192 static char * get_val(struct xml_node_ctx *ctx, xml_node_t *node) in get_val() 227 static void node_to_tnds(struct xml_node_ctx *ctx, xml_node_t *out, in node_to_tnds() 261 static int add_ddfname(struct xml_node_ctx *ctx, xml_node_t *parent, in add_ddfname() [all …]
|
D | browser.c | 31 static void win_cb_destroy(GtkWidget *win, struct browser_context *ctx) in win_cb_destroy() 39 static void browser_update_title(struct browser_context *ctx) in browser_update_title() 61 static void process_request_starting_uri(struct browser_context *ctx, in process_request_starting_uri() 93 struct browser_context *ctx) in view_cb_notify_estimated_load_progress() 105 struct browser_context *ctx) in view_cb_resource_load_starting() 117 struct browser_context *ctx) in view_cb_decide_policy() 160 struct browser_context *ctx) in view_cb_mouse_target_changed() 184 struct browser_context *ctx) in view_cb_notify_title() 198 struct browser_context *ctx) in view_cb_notify_progress() 208 struct browser_context *ctx) in view_cb_notify_load_status() [all …]
|
D | edit_simple.c | 64 int edit_init(void (*cmd_cb)(void *ctx, char *cmd), in edit_init() 65 void (*eof_cb)(void *ctx), in edit_init() 66 char ** (*completion_cb)(void *ctx, const char *cmd, int pos), in edit_init() 83 int (*filter_cb)(void *ctx, const char *cmd)) in edit_deinit()
|
D | http_curl.c | 43 void *ctx; member 70 static void clear_curl(struct http_ctx *ctx) in clear_curl() 93 static void debug_dump(struct http_ctx *ctx, const char *title, in debug_dump() 127 struct http_ctx *ctx = userdata; in curl_cb_debug() local 164 struct http_ctx *ctx = userdata; in curl_cb_write() local 204 static void add_alt_name_othername(struct http_ctx *ctx, struct http_cert *cert, in add_alt_name_othername() 236 static void add_alt_name_dns(struct http_ctx *ctx, struct http_cert *cert, in add_alt_name_dns() 257 static void add_alt_name(struct http_ctx *ctx, struct http_cert *cert, in add_alt_name() 271 static void add_alt_names(struct http_ctx *ctx, struct http_cert *cert, in add_alt_names() 526 static void add_logo_direct(struct http_ctx *ctx, struct http_cert *hcert, in add_logo_direct() [all …]
|
D | edit_readline.c | 112 int edit_init(void (*cmd_cb)(void *ctx, char *cmd), in edit_init() 113 void (*eof_cb)(void *ctx), in edit_init() 114 char ** (*completion_cb)(void *ctx, const char *cmd, int pos), in edit_init() 148 int (*filter_cb)(void *ctx, const char *cmd)) in edit_deinit()
|
D | xml-utils.h | 62 #define xml_node_for_each_child(ctx, child, parent) \ argument 67 #define xml_node_for_each_sibling(ctx, node) \ argument 72 #define xml_node_for_each_check(ctx, child) \ argument
|
/hostap-3.6.0/hs20/client/ |
D | osu_client.c | 31 void write_result(struct hs20_osu_client *ctx, const char *fmt, ...) in write_result() 57 void write_summary(struct hs20_osu_client *ctx, const char *fmt, ...) in write_summary() 77 void debug_dump_node(struct hs20_osu_client *ctx, const char *title, in debug_dump_node() 137 int osu_get_certificate(struct hs20_osu_client *ctx, xml_node_t *getcert) in osu_get_certificate() 218 static int process_est_cert(struct hs20_osu_client *ctx, xml_node_t *cert, in process_est_cert() 304 static int download_cert(struct hs20_osu_client *ctx, xml_node_t *params, in download_cert() 395 static int cmd_dl_osu_ca(struct hs20_osu_client *ctx, const char *pps_fname, in cmd_dl_osu_ca() 422 static int cmd_dl_polupd_ca(struct hs20_osu_client *ctx, const char *pps_fname, in cmd_dl_polupd_ca() 449 static int cmd_dl_aaa_ca(struct hs20_osu_client *ctx, const char *pps_fname, in cmd_dl_aaa_ca() 483 static int download_trust_roots(struct hs20_osu_client *ctx, in download_trust_roots() [all …]
|
D | spp_client.c | 34 static char * get_spp_attr_value(struct xml_node_ctx *ctx, xml_node_t *node, in get_spp_attr_value() 41 static int hs20_spp_validate(struct hs20_osu_client *ctx, xml_node_t *node, in hs20_spp_validate() 74 static void add_mo_container(struct xml_node_ctx *ctx, xml_namespace_t *ns, in add_mo_container() 107 static xml_node_t * build_spp_post_dev_data(struct hs20_osu_client *ctx, in build_spp_post_dev_data() 147 static int process_update_node(struct hs20_osu_client *ctx, xml_node_t *pps, in process_update_node() 293 static int update_pps(struct hs20_osu_client *ctx, xml_node_t *update, in update_pps() 307 static void hs20_sub_rem_complete(struct hs20_osu_client *ctx, in hs20_sub_rem_complete() 326 static xml_node_t * hs20_spp_upload_mo(struct hs20_osu_client *ctx, in hs20_spp_upload_mo() 375 static int hs20_add_mo(struct hs20_osu_client *ctx, xml_node_t *add_mo, in hs20_add_mo() 409 static int process_spp_user_input_response(struct hs20_osu_client *ctx, in process_spp_user_input_response() [all …]
|
D | oma_dm_client.c | 78 static char * oma_dm_get_target_locuri(struct hs20_osu_client *ctx, in oma_dm_get_target_locuri() 96 static void oma_dm_add_locuri(struct hs20_osu_client *ctx, xml_node_t *parent, in oma_dm_add_locuri() 108 static xml_node_t * oma_dm_build_hdr(struct hs20_osu_client *ctx, in oma_dm_build_hdr() 136 static void oma_dm_add_cmdid(struct hs20_osu_client *ctx, xml_node_t *parent, in oma_dm_add_cmdid() 143 static xml_node_t * add_alert(struct hs20_osu_client *ctx, xml_node_t *parent, in add_alert() 158 static xml_node_t * add_status(struct hs20_osu_client *ctx, xml_node_t *parent, in add_status() 183 static xml_node_t * add_results(struct hs20_osu_client *ctx, xml_node_t *parent, in add_results() 202 static char * mo_str(struct hs20_osu_client *ctx, const char *urn, in mo_str() 226 static void add_item(struct hs20_osu_client *ctx, xml_node_t *parent, in add_item() 242 static void add_replace_devinfo(struct hs20_osu_client *ctx, xml_node_t *parent, in add_replace_devinfo() [all …]
|
/hostap-3.6.0/tests/fuzzing/p2p/ |
D | p2p.c | 18 static void debug_print(void *ctx, int level, const char *msg) in debug_print() 24 static void find_stopped(void *ctx) in find_stopped() 29 static int start_listen(void *ctx, unsigned int freq, in start_listen() 37 static void stop_listen(void *ctx) in stop_listen() 42 static void dev_found(void *ctx, const u8 *addr, in dev_found() 49 static void dev_lost(void *ctx, const u8 *dev_addr) in dev_lost() 54 static int send_action(void *ctx, unsigned int freq, const u8 *dst, in send_action() 63 static void send_action_done(void *ctx) in send_action_done() 68 static void go_neg_req_rx(void *ctx, const u8 *src, u16 dev_passwd_id, in go_neg_req_rx() 110 struct arg_ctx *ctx = eloop_data; in test_send() local [all …]
|
/hostap-3.6.0/hs20/server/ |
D | spp_server.c | 63 static int db_add_session(struct hs20_svc *ctx, in db_add_session() 100 static void db_update_session_password(struct hs20_svc *ctx, const char *user, in db_update_session_password() 120 static void db_update_session_machine_managed(struct hs20_svc *ctx, in db_update_session_machine_managed() 142 static void db_add_session_pps(struct hs20_svc *ctx, const char *user, in db_add_session_pps() 167 static void db_add_session_devinfo(struct hs20_svc *ctx, const char *sessionid, in db_add_session_devinfo() 190 static void db_add_session_devdetail(struct hs20_svc *ctx, in db_add_session_devdetail() 214 static void db_add_session_dmacc(struct hs20_svc *ctx, const char *sessionid, in db_add_session_dmacc() 232 static void db_add_session_eap_method(struct hs20_svc *ctx, in db_add_session_eap_method() 251 static void db_add_session_id_hash(struct hs20_svc *ctx, const char *sessionid, in db_add_session_id_hash() 269 static void db_remove_session(struct hs20_svc *ctx, in db_remove_session() [all …]
|
D | hs20_spp_server.c | 33 void debug_print(struct hs20_svc *ctx, int print, const char *fmt, ...) in debug_print() 49 void debug_dump_node(struct hs20_svc *ctx, const char *title, xml_node_t *node) in debug_dump_node() 65 static int process(struct hs20_svc *ctx) in process() 157 struct hs20_svc ctx; in main() local
|
/hostap-3.6.0/src/ap/ |
D | wpa_auth_glue.c | 220 static void hostapd_wpa_auth_logger(void *ctx, const u8 *addr, in hostapd_wpa_auth_logger() 245 static void hostapd_wpa_auth_disconnect(void *ctx, const u8 *addr, in hostapd_wpa_auth_disconnect() 256 static int hostapd_wpa_auth_mic_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_mic_failure_report() 263 static void hostapd_wpa_auth_psk_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_psk_failure_report() 271 static void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr, in hostapd_wpa_auth_set_eapol() 312 static int hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr, in hostapd_wpa_auth_get_eapol() 330 static const u8 * hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, in hostapd_wpa_auth_get_psk() 407 static int hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk, in hostapd_wpa_auth_get_msk() 437 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key() 500 static int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, in hostapd_wpa_auth_get_seqnum() [all …]
|
D | wps_hostapd.c | 48 void *ctx; member 53 static int wps_for_each(struct hostapd_iface *iface, void *ctx) in wps_for_each() 79 int (*func)(struct hostapd_data *h, void *ctx), in hostapd_wps_for_each() 95 static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_new_psk_cb() 159 static int hostapd_wps_set_ie_cb(void *ctx, struct wpabuf *beacon_ie, in hostapd_wps_set_ie_cb() 173 static void hostapd_wps_pin_needed_cb(void *ctx, const u8 *uuid_e, in hostapd_wps_pin_needed_cb() 219 static int wps_stop_registrar(struct hostapd_data *hapd, void *ctx) in wps_stop_registrar() 229 static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_reg_success_cb() 251 static void hostapd_wps_enrollee_seen_cb(void *ctx, const u8 *addr, in hostapd_wps_enrollee_seen_cb() 274 static int hostapd_wps_lookup_pskfile_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_lookup_pskfile_cb() [all …]
|
D | authsrv.c | 30 struct sta_info *sta, void *ctx) in hostapd_sim_db_cb_sta() 38 static void hostapd_sim_db_cb(void *ctx, void *session_ctx) in hostapd_sim_db_cb() 52 static int hostapd_radius_get_eap_user(void *ctx, const u8 *identity, in hostapd_radius_get_eap_user() 143 static void authsrv_tls_event(void *ctx, enum tls_event ev, in authsrv_tls_event()
|
/hostap-3.6.0/tests/fuzzing/eapol-key-supp/ |
D | eapol-key-supp.c | 73 static int supp_get_bssid(void *ctx, u8 *bssid) in supp_get_bssid() 82 static void supp_set_state(void *ctx, enum wpa_states state) in supp_set_state() 109 static int supp_ether_send(void *ctx, const u8 *dest, u16 proto, const u8 *buf, in supp_ether_send() 122 static u8 * supp_alloc_eapol(void *ctx, u8 type, const void *data, in supp_alloc_eapol() 151 static int supp_get_beacon_ie(void *ctx) in supp_get_beacon_ie() 175 static int supp_set_key(void *ctx, enum wpa_alg alg, in supp_set_key() 189 static int supp_mlme_setprotection(void *ctx, const u8 *addr, in supp_mlme_setprotection() 199 static void supp_cancel_auth_timeout(void *ctx) in supp_cancel_auth_timeout() 205 static void * supp_get_network_ctx(void *ctx) in supp_get_network_ctx() 211 static void supp_deauthenticate(void *ctx, u16 reason_code) in supp_deauthenticate() [all …]
|
/hostap-3.6.0/wpa_supplicant/ |
D | wpas_glue.c | 36 static void wpa_supplicant_set_config_blob(void *ctx, in wpa_supplicant_set_config_blob() 52 wpa_supplicant_get_config_blob(void *ctx, const char *name) in wpa_supplicant_get_config_blob() 146 static int wpa_supplicant_eapol_send(void *ctx, int type, const u8 *buf, in wpa_supplicant_eapol_send() 241 static int wpa_eapol_set_wep_key(void *ctx, int unicast, int keyidx, in wpa_eapol_set_wep_key() 262 static void wpa_supplicant_aborted_cached(void *ctx) in wpa_supplicant_aborted_cached() 285 void *ctx) in wpa_supplicant_eapol_cb() 368 static void wpa_supplicant_notify_eapol_done(void *ctx) in wpa_supplicant_notify_eapol_done() 431 static int wpa_supplicant_get_beacon_ie(void *ctx) in wpa_supplicant_get_beacon_ie() 511 static int wpa_supplicant_get_bssid(void *ctx, u8 *bssid) in wpa_supplicant_get_bssid() 650 static int wpa_supplicant_update_ft_ies(void *ctx, const u8 *md, in wpa_supplicant_update_ft_ies() [all …]
|
D | ibss_rsn.c | 48 static void supp_set_state(void *ctx, enum wpa_states state) in supp_set_state() 55 static enum wpa_states supp_get_state(void *ctx) in supp_get_state() 62 static int supp_ether_send(void *ctx, const u8 *dest, u16 proto, const u8 *buf, in supp_ether_send() 85 static u8 * supp_alloc_eapol(void *ctx, u8 type, const void *data, in supp_alloc_eapol() 114 static int supp_get_beacon_ie(void *ctx) in supp_get_beacon_ie() 146 static int supp_set_key(void *ctx, enum wpa_alg alg, in supp_set_key() 180 static void * supp_get_network_ctx(void *ctx) in supp_get_network_ctx() 187 static int supp_mlme_setprotection(void *ctx, const u8 *addr, in supp_mlme_setprotection() 197 static void supp_cancel_auth_timeout(void *ctx) in supp_cancel_auth_timeout() 203 static void supp_deauthenticate(void *ctx, u16 reason_code) in supp_deauthenticate() [all …]
|
/hostap-3.6.0/eap_example/ |
D | eap_example_peer.c | 44 static struct eap_peer_config * peer_get_config(void *ctx) in peer_get_config() 51 static bool peer_get_bool(void *ctx, enum eapol_bool_var variable) in peer_get_bool() 82 static void peer_set_bool(void *ctx, enum eapol_bool_var variable, bool value) in peer_set_bool() 122 static unsigned int peer_get_int(void *ctx, enum eapol_int_var variable) in peer_get_int() 135 static void peer_set_int(void *ctx, enum eapol_int_var variable, in peer_set_int() 149 static struct wpabuf * peer_get_eapReqData(void *ctx) in peer_get_eapReqData() 159 static void peer_set_config_blob(void *ctx, struct wpa_config_blob *blob) in peer_set_config_blob() 166 peer_get_config_blob(void *ctx, const char *name) in peer_get_config_blob() 173 static void peer_notify_pending(void *ctx) in peer_notify_pending()
|
/hostap-3.6.0/src/crypto/ |
D | crypto_nettle.c | 31 struct des_ctx ctx; in des_encrypt() local 54 void *ctx; in nettle_digest_vector() local 111 struct hmac_md5_ctx ctx; in hmac_md5_vector() local 136 struct hmac_sha1_ctx ctx; in hmac_sha1_vector() local 163 struct hmac_sha256_ctx ctx; in hmac_sha256_vector() local 192 struct hmac_sha384_ctx ctx; in hmac_sha384_vector() local 221 struct hmac_sha512_ctx ctx; in hmac_sha512_vector() local 247 struct aes_ctx *ctx; in aes_encrypt_init() local 261 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() 269 void aes_encrypt_deinit(void *ctx) in aes_encrypt_deinit() [all …]
|
/hostap-3.6.0/tests/fuzzing/eapol-supp/ |
D | eapol-supp.c | 29 struct arg_ctx *ctx = eloop_data; in test_send_eapol() local 104 static int get_bssid(void *ctx, u8 *bssid) in get_bssid() 110 static int eapol_send(void *ctx, int type, const u8 *buf, size_t len) in eapol_send() 118 struct wpa_sm_ctx *ctx; in init_wpa() local 145 struct eapol_ctx *ctx; in init_eapol() local 164 struct arg_ctx ctx; in LLVMFuzzerTestOneInput() local
|
/hostap-3.6.0/tests/hwsim/ |
D | test_eap_proto.py | 175 def eap_handler(ctx, req): argument 397 def eap_handler(ctx, req): argument 491 def sake_challenge(ctx): argument 499 def sake_handler(ctx, req): argument 848 def sake_handler(ctx, req): argument 1045 def leap_handler(ctx, req): argument 1214 def leap_handler2(ctx, req): argument 1516 def md5_handler(ctx, req): argument 1681 def otp_handler(ctx, req): argument 1745 def otp_handler2(ctx, req): argument [all …]
|
/hostap-3.6.0/tests/fuzzing/wnm/ |
D | wnm.c | 36 struct arg_ctx *ctx = eloop_data; in test_send_wnm() local 48 static int init_wpa(struct arg_ctx *ctx) in init_wpa() 61 static void deinit_wpa(struct arg_ctx *ctx) in deinit_wpa() 69 struct arg_ctx ctx; in LLVMFuzzerTestOneInput() local
|
/hostap-3.6.0/src/drivers/ |
D | driver_macsec_linux.c | 55 struct macsec_genl_ctx ctx; member 90 const struct macsec_genl_ctx *ctx, in msg_prepare() 136 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() local 290 static void * macsec_drv_wpa_init(void *ctx, const char *ifname) in macsec_drv_wpa_init() 642 struct macsec_genl_ctx *ctx = &drv->ctx; in do_dump() local 711 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_set_receive_lowest_pn() local 778 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_set_transmit_next_pn() local 830 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_create_receive_sc() local 868 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_delete_receive_sc() local 904 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_create_receive_sa() local [all …]
|