Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 197) sorted by relevance

12345678

/hostap/hs20/client/
Dosu_client.c27 static void write_result(struct hs20_osu_client *ctx, const char *fmt, ...) in write_result()
53 static void write_summary(struct hs20_osu_client *ctx, const char *fmt, ...) in write_summary()
75 static int download_cert(struct hs20_osu_client *ctx, xml_node_t *params, in download_cert()
164 static int cmd_dl_aaa_ca(struct hs20_osu_client *ctx, const char *pps_fname, in cmd_dl_aaa_ca()
199 static void remove_sp_creds(struct hs20_osu_client *ctx, const char *fqdn) in remove_sp_creds()
208 static void set_pps_cred_policy_spe(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_spe()
227 static void set_pps_cred_policy_spel(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_spel()
239 static void set_pps_cred_policy_prp(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_prp()
295 static void set_pps_cred_policy_prpl(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_prpl()
307 static void set_pps_cred_policy_min_backhaul(struct hs20_osu_client *ctx, int id, in set_pps_cred_policy_min_backhaul()
[all …]
/hostap/src/utils/
Dxml_libxml2.c20 void *ctx; member
24 void xml_node_free(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_free()
30 xml_node_t * xml_node_from_buf(struct xml_node_ctx *ctx, const char *buf) in xml_node_from_buf()
46 const char * xml_node_get_localname(struct xml_node_ctx *ctx, in xml_node_get_localname()
53 char * xml_node_to_str(struct xml_node_ctx *ctx, xml_node_t *node) in xml_node_to_str()
96 xml_node_t * xml_node_create_root(struct xml_node_ctx *ctx, const char *ns_uri, in xml_node_create_root()
119 xml_node_t * xml_node_create(struct xml_node_ctx *ctx, xml_node_t *parent, in xml_node_create()
129 xml_node_t * xml_node_create_text(struct xml_node_ctx *ctx, in xml_node_create_text()
140 xml_node_t * xml_node_create_text_ns(struct xml_node_ctx *ctx, in xml_node_create_text_ns()
155 void xml_node_set_text(struct xml_node_ctx *ctx, xml_node_t *node, in xml_node_set_text()
[all …]
Dbrowser.c31 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 …]
Dxml-utils.c15 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 …]
Dhttp_curl.c35 void *ctx; member
55 static void clear_curl(struct http_ctx *ctx) in clear_curl()
68 static void debug_dump(struct http_ctx *ctx, const char *title, in debug_dump()
102 struct http_ctx *ctx = userdata; in curl_cb_debug() local
139 struct http_ctx *ctx = userdata; in curl_cb_write() local
181 struct http_ctx *ctx; in curl_cb_ssl_verify() local
295 struct http_ctx *ctx = arg; in ocsp_resp_cb() local
499 struct http_ctx *ctx = parm; in curl_cb_ssl() local
531 static CURL * setup_curl_post(struct http_ctx *ctx, const char *address, in setup_curl_post()
594 static void free_curl_buf(struct http_ctx *ctx) in free_curl_buf()
[all …]
Dedit_simple.c64 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()
Dedit_readline.c112 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()
Dxml-utils.h46 #define xml_node_for_each_child(ctx, child, parent) \ argument
51 #define xml_node_for_each_sibling(ctx, node) \ argument
56 #define xml_node_for_each_check(ctx, child) \ argument
/hostap/src/ap/
Dwpa_auth_glue.c275 static void hostapd_wpa_auth_logger(void *ctx, const u8 *addr, in hostapd_wpa_auth_logger()
300 static void hostapd_wpa_auth_disconnect(void *ctx, const u8 *addr, in hostapd_wpa_auth_disconnect()
311 static int hostapd_wpa_auth_mic_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_mic_failure_report()
318 static void hostapd_wpa_auth_psk_failure_report(void *ctx, const u8 *addr) in hostapd_wpa_auth_psk_failure_report()
326 static void hostapd_wpa_auth_set_eapol(void *ctx, const u8 *addr, in hostapd_wpa_auth_set_eapol()
367 static int hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr, in hostapd_wpa_auth_get_eapol()
385 static const u8 * hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr, in hostapd_wpa_auth_get_psk()
468 static int hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk, in hostapd_wpa_auth_get_msk()
498 static int hostapd_wpa_auth_set_key(void *ctx, int vlan_id, enum wpa_alg alg, in hostapd_wpa_auth_set_key()
562 static int hostapd_wpa_auth_get_seqnum(void *ctx, const u8 *addr, int idx, in hostapd_wpa_auth_get_seqnum()
[all …]
Dwps_hostapd.c48 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 …]
Dauthsrv.c32 struct sta_info *sta, void *ctx) in hostapd_sim_db_cb_sta()
40 static void hostapd_sim_db_cb(void *ctx, void *session_ctx) in hostapd_sim_db_cb()
54 static int hostapd_radius_get_eap_user(void *ctx, const u8 *identity, in hostapd_radius_get_eap_user()
114 static int hostapd_radius_log_acct_req(void *ctx, struct radius_msg *msg, in hostapd_radius_log_acct_req()
267 static void authsrv_tls_event(void *ctx, enum tls_event ev, in authsrv_tls_event()
Dnan_usd_ap.c19 static int hostapd_nan_de_tx(void *ctx, unsigned int freq, in hostapd_nan_de_tx()
39 static int hostapd_nan_de_listen(void *ctx, unsigned int freq, in hostapd_nan_de_listen()
47 hostapd_nan_de_discovery_result(void *ctx, int subscribe_id, in hostapd_nan_de_discovery_result()
71 hostapd_nan_de_replied(void *ctx, int publish_id, const u8 *peer_addr, in hostapd_nan_de_replied()
108 static void hostapd_nan_de_publish_terminated(void *ctx, int publish_id, in hostapd_nan_de_publish_terminated()
119 static void hostapd_nan_de_subscribe_terminated(void *ctx, int subscribe_id, in hostapd_nan_de_subscribe_terminated()
130 static void hostapd_nan_de_receive(void *ctx, int id, int peer_instance_id, in hostapd_nan_de_receive()
Deth_p_oui.c43 void eth_p_oui_deliver(struct eth_p_oui_ctx *ctx, const u8 *src_addr, in eth_p_oui_deliver()
51 static void eth_p_rx(void *ctx, const u8 *src_addr, const u8 *buf, size_t len) in eth_p_rx()
86 void (*rx_callback)(void *ctx, const u8 *src_addr, in eth_p_oui_register()
141 void eth_p_oui_unregister(struct eth_p_oui_ctx *ctx) in eth_p_oui_unregister()
161 int eth_p_oui_send(struct eth_p_oui_ctx *ctx, const u8 *src_addr, in eth_p_oui_send()
/hostap/tests/fuzzing/p2p/
Dp2p.c29 static void debug_print(void *ctx, int level, const char *msg) in debug_print()
35 static void find_stopped(void *ctx) in find_stopped()
40 static int start_listen(void *ctx, unsigned int freq, in start_listen()
48 static void stop_listen(void *ctx) in stop_listen()
53 static void dev_found(void *ctx, const u8 *addr, in dev_found()
60 static void dev_lost(void *ctx, const u8 *dev_addr) in dev_lost()
65 static int send_action(void *ctx, unsigned int freq, const u8 *dst, in send_action()
74 static void send_action_done(void *ctx) in send_action_done()
79 static void go_neg_req_rx(void *ctx, const u8 *src, u16 dev_passwd_id, in go_neg_req_rx()
121 struct arg_ctx *ctx = eloop_data; in test_send() local
[all …]
/hostap/wpa_supplicant/
Dwpas_glue.c36 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()
248 static int wpa_eapol_set_wep_key(void *ctx, int unicast, int keyidx, in wpa_eapol_set_wep_key()
269 static void wpa_supplicant_aborted_cached(void *ctx) in wpa_supplicant_aborted_cached()
292 void *ctx) in wpa_supplicant_eapol_cb()
390 static void wpa_supplicant_notify_eapol_done(void *ctx) in wpa_supplicant_notify_eapol_done()
469 static int wpa_supplicant_get_beacon_ie(void *ctx) in wpa_supplicant_get_beacon_ie()
549 static int wpa_supplicant_get_bssid(void *ctx, u8 *bssid) in wpa_supplicant_get_bssid()
696 static int wpa_supplicant_update_ft_ies(void *ctx, const u8 *md, in wpa_supplicant_update_ft_ies()
[all …]
Dibss_rsn.c48 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, int link_id, enum wpa_alg alg, in supp_set_key()
187 static void * supp_get_network_ctx(void *ctx) in supp_get_network_ctx()
194 static int supp_mlme_setprotection(void *ctx, const u8 *addr, in supp_mlme_setprotection()
204 static void supp_cancel_auth_timeout(void *ctx) in supp_cancel_auth_timeout()
210 static void supp_deauthenticate(void *ctx, u16 reason_code) in supp_deauthenticate()
[all …]
/hostap/tests/fuzzing/eapol-key-supp/
Deapol-key-supp.c73 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, int link_id, enum wpa_alg alg, in supp_set_key()
190 static int supp_mlme_setprotection(void *ctx, const u8 *addr, in supp_mlme_setprotection()
200 static void supp_cancel_auth_timeout(void *ctx) in supp_cancel_auth_timeout()
206 static void * supp_get_network_ctx(void *ctx) in supp_get_network_ctx()
212 static void supp_deauthenticate(void *ctx, u16 reason_code) in supp_deauthenticate()
[all …]
/hostap/eap_example/
Deap_example_peer.c44 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/src/crypto/
Dcrypto_nettle.c31 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 …]
Dcrypto_openssl.c57 HMAC_CTX *ctx; in HMAC_CTX_new() local
66 static void HMAC_CTX_free(HMAC_CTX *ctx) in HMAC_CTX_free()
77 EVP_MD_CTX *ctx; in EVP_MD_CTX_new() local
86 static void EVP_MD_CTX_free(EVP_MD_CTX *ctx) in EVP_MD_CTX_free()
150 BIGNUM *y, BN_CTX *ctx) in EC_POINT_get_affine_coordinates()
158 const BIGNUM *y, BN_CTX *ctx) in EC_POINT_set_affine_coordinates()
173 int y_bit, BN_CTX *ctx) in EC_POINT_set_compressed_coordinates()
181 BIGNUM *b, BN_CTX *ctx) in EC_GROUP_get_curve()
337 EVP_MD_CTX *ctx; in openssl_digest_vector() local
395 EVP_CIPHER_CTX *ctx; in des_encrypt() local
[all …]
Dmd4-internal.c31 MD4_CTX ctx; in md4_vector() local
98 static void MD4Init(MD4_CTX *ctx) in MD4Init()
111 static void MD4Update(MD4_CTX *ctx, const unsigned char *input, size_t len) in MD4Update()
148 static void MD4Pad(MD4_CTX *ctx) in MD4Pad()
168 static void MD4Final(unsigned char digest[MD4_DIGEST_LENGTH], MD4_CTX *ctx) in MD4Final()
/hostap/tests/fuzzing/eapol-supp/
Deapol-supp.c29 struct arg_ctx *ctx = eloop_data; in test_send_eapol() local
106 static int get_bssid(void *ctx, u8 *bssid) in get_bssid()
112 static int eapol_send(void *ctx, int type, const u8 *buf, size_t len) in eapol_send()
120 struct wpa_sm_ctx *ctx; in init_wpa() local
147 struct eapol_ctx *ctx; in init_eapol() local
166 struct arg_ctx ctx; in LLVMFuzzerTestOneInput() local
/hostap/tests/hwsim/
Dtest_eap_proto.py188 def eap_handler(ctx, req): argument
410 def eap_handler(ctx, req): argument
504 def sake_challenge(ctx): argument
512 def sake_handler(ctx, req): argument
876 def sake_handler(ctx, req): argument
1073 def leap_handler(ctx, req): argument
1242 def leap_handler2(ctx, req): argument
1544 def md5_handler(ctx, req): argument
1714 def otp_handler(ctx, req): argument
1778 def otp_handler2(ctx, req): argument
[all …]
/hostap/tests/fuzzing/wnm/
Dwnm.c37 struct arg_ctx *ctx = eloop_data; in test_send_wnm() local
49 static int init_wpa(struct arg_ctx *ctx) in init_wpa()
65 static void deinit_wpa(struct arg_ctx *ctx) in deinit_wpa()
74 struct arg_ctx ctx; in LLVMFuzzerTestOneInput() local
/hostap/src/drivers/
Ddriver_macsec_linux.c61 struct macsec_genl_ctx ctx; member
101 const struct macsec_genl_ctx *ctx, in msg_prepare()
147 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() local
310 static void * macsec_drv_wpa_init(void *ctx, const char *ifname) in macsec_drv_wpa_init()
692 struct macsec_genl_ctx *ctx = &drv->ctx; in do_dump() local
761 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_set_receive_lowest_pn() local
828 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_set_transmit_next_pn() local
880 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_create_receive_sc() local
918 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_delete_receive_sc() local
954 struct macsec_genl_ctx *ctx = &drv->ctx; in macsec_drv_create_receive_sa() local
[all …]

12345678