Home
last modified time | relevance | path

Searched refs:wpabuf (Results 1 – 25 of 247) sorted by relevance

12345678910

/external/wpa_supplicant_8/src/wps/
Dwps.h99 struct wpabuf *vendor_ext_m1;
100 struct wpabuf *vendor_ext[MAX_WPS_VENDOR_EXTENSIONS];
137 const struct wpabuf *assoc_wps_ie;
223 const struct wpabuf *msg);
225 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code);
227 int wps_is_selected_pbc_registrar(const struct wpabuf *msg);
228 int wps_is_selected_pin_registrar(const struct wpabuf *msg);
229 int wps_ap_priority_compar(const struct wpabuf *wps_a,
230 const struct wpabuf *wps_b);
231 int wps_is_addr_authorized(const struct wpabuf *msg, const u8 *addr,
[all …]
Dwps_i.h61 struct wpabuf *dh_privkey;
62 struct wpabuf *dh_pubkey_e;
63 struct wpabuf *dh_pubkey_r;
68 struct wpabuf *last_msg;
137 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
149 struct wpabuf * wps_build_wsc_ack(struct wps_data *wps);
150 struct wpabuf * wps_build_wsc_nack(struct wps_data *wps);
153 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg);
154 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type);
155 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type);
[all …]
Dwps_dev_attr.h14 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg);
15 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg);
16 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg);
17 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg);
18 int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
19 int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg);
20 int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg);
21 int wps_build_vendor_ext_m1(struct wps_device_data *dev, struct wpabuf *msg);
22 int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg,
25 struct wpabuf *msg);
[all …]
Dwps_attr_build.c21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key()
23 struct wpabuf *pubkey; in wps_build_public_key()
96 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type()
106 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type()
116 int wps_build_config_methods(struct wpabuf *msg, u16 methods) in wps_build_config_methods()
126 int wps_build_uuid_e(struct wpabuf *msg, const u8 *uuid) in wps_build_uuid_e()
138 int wps_build_dev_password_id(struct wpabuf *msg, u16 id) in wps_build_dev_password_id()
148 int wps_build_config_error(struct wpabuf *msg, u16 err) in wps_build_config_error()
158 int wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) in wps_build_authenticator()
188 int wps_build_version(struct wpabuf *msg) in wps_build_version()
[all …]
Dwps_common.c64 struct wpabuf *pubkey, *dh_shared; in wps_derive_keys()
152 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, in wps_decrypt_encr_settings()
155 struct wpabuf *decrypted; in wps_decrypt_encr_settings()
355 struct wpabuf * wps_get_oob_cred(struct wps_context *wps, int rf_band, in wps_get_oob_cred()
359 struct wpabuf *plain; in wps_get_oob_cred()
411 struct wpabuf * wps_build_nfc_pw_token(u16 dev_pw_id, in wps_build_nfc_pw_token()
412 const struct wpabuf *pubkey, in wps_build_nfc_pw_token()
413 const struct wpabuf *dev_pw) in wps_build_nfc_pw_token()
415 struct wpabuf *data; in wps_build_nfc_pw_token()
436 struct wpabuf msg; in wps_oob_use_cred()
[all …]
Dndef.c77 static struct wpabuf * ndef_parse_records(const struct wpabuf *buf, in ndef_parse_records()
100 static struct wpabuf * ndef_build_record(u8 flags, const void *type, in ndef_build_record()
103 const struct wpabuf *payload) in ndef_build_record()
105 struct wpabuf *record; in ndef_build_record()
161 struct wpabuf * ndef_parse_wifi(const struct wpabuf *buf) in ndef_parse_wifi()
167 struct wpabuf * ndef_build_wifi(const struct wpabuf *buf) in ndef_build_wifi()
187 struct wpabuf * ndef_parse_p2p(const struct wpabuf *buf) in ndef_parse_p2p()
193 struct wpabuf * ndef_build_p2p(const struct wpabuf *buf) in ndef_build_p2p()
/external/wpa_supplicant_8/src/utils/
Dwpabuf.h20 struct wpabuf { struct
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len); argument
30 struct wpabuf * wpabuf_alloc(size_t len);
31 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
32 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len);
33 struct wpabuf * wpabuf_dup(const struct wpabuf *src);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
37 struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b);
[all …]
Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) in wpabuf_get_trace()
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow()
47 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize()
49 struct wpabuf *buf = *_buf; in wpabuf_resize()
80 sizeof(struct wpabuf) + in wpabuf_resize()
85 buf = (struct wpabuf *) (trace + 1); in wpabuf_resize()
87 sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
94 buf = (struct wpabuf *) nbuf; in wpabuf_resize()
95 os_memset(nbuf + sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
[all …]
/external/wpa_supplicant_8/src/common/
Dgas.c17 static struct wpabuf *
20 struct wpabuf *buf; in gas_build_req()
34 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size) in gas_build_initial_req()
41 struct wpabuf * gas_build_comeback_req(u8 dialog_token) in gas_build_comeback_req()
47 static struct wpabuf *
51 struct wpabuf *buf; in gas_build_resp()
69 struct wpabuf *
78 static struct wpabuf *
99 static void gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, in gas_add_adv_proto_anqp()
112 struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size) in gas_anqp_build_initial_req()
[all …]
Dgas.h13 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size);
14 struct wpabuf * gas_build_comeback_req(u8 dialog_token);
15 struct wpabuf * gas_build_initial_resp(u8 dialog_token, u16 status_code,
17 struct wpabuf * gas_anqp_build_initial_req(u8 dialog_token, size_t size);
18 struct wpabuf * gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code,
20 struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
23 struct wpabuf *payload);
24 struct wpabuf * gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code,
27 struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
31 struct wpabuf *payload);
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_i.h145 struct wpabuf *go_neg_conf;
155 struct wpabuf *tlvs;
401 struct wpabuf *sd_resp; /* Fragmented SD response */
407 struct wpabuf *sd_rx_resp; /* Reassembled SD response */
475 struct wpabuf *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXT];
522 struct wpabuf *wfd_ie_beacon;
523 struct wpabuf *wfd_ie_probe_req;
524 struct wpabuf *wfd_ie_probe_resp;
525 struct wpabuf *wfd_ie_assoc_req;
526 struct wpabuf *wfd_ie_invitation;
[all …]
Dp2p.h327 struct wpabuf *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXT];
332 struct wpabuf *wfd_subelems;
340 struct wpabuf *vendor_elems;
345 struct wpabuf *p2ps_instance;
591 int (*send_probe_resp)(void *ctx, const struct wpabuf *buf,
648 const struct wpabuf *probe_resp_ie);
1293 const struct wpabuf *tlvs);
1297 const struct wpabuf *tlvs);
1320 u8 dialog_token, const struct wpabuf *resp_tlvs);
1648 void (*ie_update)(void *ctx, struct wpabuf *beacon_ies,
[all …]
Dp2p_group.c25 struct wpabuf *p2p_ie;
26 struct wpabuf *wfd_ie;
27 struct wpabuf *client_info;
41 struct wpabuf *noa;
42 struct wpabuf *wfd_ie;
127 static void p2p_client_info(struct wpabuf *ie, struct p2p_group_member *m) in p2p_client_info()
138 struct wpabuf *ie) in p2p_group_add_common_ies()
163 static void p2p_group_add_noa(struct wpabuf *ie, struct wpabuf *noa) in p2p_group_add_noa()
174 static struct wpabuf * p2p_group_encaps_probe_resp(struct wpabuf *subelems) in p2p_group_encaps_probe_resp()
176 struct wpabuf *ie; in p2p_group_encaps_probe_resp()
[all …]
Dp2p_build.c17 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) in p2p_buf_add_action_hdr()
28 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, in p2p_buf_add_public_action_hdr()
41 u8 * p2p_buf_add_ie_hdr(struct wpabuf *buf) in p2p_buf_add_ie_hdr()
54 void p2p_buf_update_ie_hdr(struct wpabuf *buf, u8 *len) in p2p_buf_update_ie_hdr()
61 void p2p_buf_add_capability(struct wpabuf *buf, u8 dev_capab, u8 group_capab) in p2p_buf_add_capability()
73 void p2p_buf_add_go_intent(struct wpabuf *buf, u8 go_intent) in p2p_buf_add_go_intent()
84 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel()
98 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel()
112 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list()
137 void p2p_buf_add_status(struct wpabuf *buf, u8 status) in p2p_buf_add_status()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dbss.h29 struct wpabuf *capability_list;
30 struct wpabuf *venue_name;
31 struct wpabuf *network_auth_type;
32 struct wpabuf *roaming_consortium;
33 struct wpabuf *ip_addr_type_availability;
34 struct wpabuf *nai_realm;
35 struct wpabuf *anqp_3gpp;
36 struct wpabuf *domain_name;
39 struct wpabuf *hs20_capability_list;
40 struct wpabuf *hs20_operator_friendly_name;
[all …]
Dwps_supplicant.h60 struct wpabuf * wpas_wps_er_nfc_config_token(struct wpa_supplicant *wpa_s,
64 struct wpabuf * wpas_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
66 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef);
69 const struct wpabuf *dev_pw, u16 dev_pw_id,
73 const struct wpabuf *data, int forced_freq);
74 struct wpabuf * wpas_wps_nfc_handover_req(struct wpa_supplicant *wpa_s,
76 struct wpabuf * wpas_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
79 const struct wpabuf *req,
80 const struct wpabuf *sel);
82 const struct wpabuf *req,
[all …]
Dinterworking.h18 const struct wpabuf *adv_proto,
19 const struct wpabuf *resp, u16 status_code);
21 const struct wpabuf *adv_proto,
22 const struct wpabuf *query);
32 struct wpabuf *domain_names);
33 int domain_name_list_contains(struct wpabuf *domain_names,
/external/wpa_supplicant_8/src/crypto/
Dtls.h55 const struct wpabuf *cert;
61 const struct wpabuf *cert;
379 struct wpabuf * tls_connection_handshake(void *tls_ctx,
381 const struct wpabuf *in_data,
382 struct wpabuf **appl_data);
384 struct wpabuf * tls_connection_handshake2(void *tls_ctx,
386 const struct wpabuf *in_data,
387 struct wpabuf **appl_data,
400 struct wpabuf * tls_connection_server_handshake(void *tls_ctx,
402 const struct wpabuf *in_data,
[all …]
Ddh_group5.h12 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
13 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ);
14 struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
15 const struct wpabuf *own_private);
Dtls_none.c96 struct wpabuf * tls_connection_handshake(void *tls_ctx, in tls_connection_handshake()
98 const struct wpabuf *in_data, in tls_connection_handshake()
99 struct wpabuf **appl_data) in tls_connection_handshake()
105 struct wpabuf * tls_connection_server_handshake(void *tls_ctx, in tls_connection_server_handshake()
107 const struct wpabuf *in_data, in tls_connection_server_handshake()
108 struct wpabuf **appl_data) in tls_connection_server_handshake()
114 struct wpabuf * tls_connection_encrypt(void *tls_ctx, in tls_connection_encrypt()
116 const struct wpabuf *in_data) in tls_connection_encrypt()
122 struct wpabuf * tls_connection_decrypt(void *tls_ctx, in tls_connection_decrypt()
124 const struct wpabuf *in_data) in tls_connection_decrypt()
Ddh_group5.c16 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ) in dh5_init()
25 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ) in dh5_init_fixed()
31 struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public, in dh5_derive_shared()
32 const struct wpabuf *own_private) in dh5_derive_shared()
/external/wpa_supplicant_8/src/eap_server/
Deap_tls_common.h24 struct wpabuf *tls_out;
39 struct wpabuf *tls_in;
52 struct wpabuf tmpbuf;
70 struct wpabuf * eap_tls_msg_alloc(EapType type, size_t payload_len,
80 struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data,
82 struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int version);
84 struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm,
86 const struct wpabuf *plain);
88 struct wpabuf *respData, void *priv, int eap_type,
92 const struct wpabuf *respData));
/external/wpa_supplicant_8/src/eap_peer/
Deap_tls_common.h24 struct wpabuf *tls_out;
39 struct wpabuf *tls_in;
103 u8 id, const struct wpabuf *in_data,
104 struct wpabuf **out_data);
105 struct wpabuf * eap_peer_tls_build_ack(u8 id, EapType eap_type,
114 const struct wpabuf *reqData,
119 const struct wpabuf *in_data,
120 struct wpabuf **in_decrypted);
123 const struct wpabuf *in_data,
124 struct wpabuf **out_data);
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_common.h22 int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload);
24 const struct wpabuf *msg, size_t *plen);
25 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
27 void eap_update_len(struct wpabuf *msg);
28 u8 eap_get_id(const struct wpabuf *msg);
29 EapType eap_get_type(const struct wpabuf *msg);
Deap_fast_common.h77 struct wpabuf;
92 void eap_fast_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len);
93 void eap_fast_put_tlv(struct wpabuf *buf, u16 type, const void *data,
95 void eap_fast_put_tlv_buf(struct wpabuf *buf, u16 type,
96 const struct wpabuf *data);
97 struct wpabuf * eap_fast_tlv_eap_payload(struct wpabuf *buf);

12345678910