Home
last modified time | relevance | path

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

12345678910>>...12

/dragonfly/contrib/wpa_supplicant/src/wps/
H A Dwps.h99 struct wpabuf *vendor_ext_m1;
622 struct wpabuf *msg;
685 struct wpabuf *dh_privkey;
690 struct wpabuf *dh_pubkey;
919 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
921 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey);
922 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
938 struct wpabuf * ndef_parse_wifi(const struct wpabuf *buf);
939 struct wpabuf * ndef_build_wifi(const struct wpabuf *buf);
940 struct wpabuf * ndef_parse_p2p(const struct wpabuf *buf);
[all …]
H A Dwps_i.h61 struct wpabuf *dh_privkey;
62 struct wpabuf *dh_pubkey_e;
63 struct wpabuf *dh_pubkey_r;
68 struct wpabuf *last_msg;
165 struct wpabuf *plain);
166 int wps_build_version(struct wpabuf *msg);
178 const struct wpabuf *pubkey, const u8 *dev_pw,
180 struct wpabuf * wps_ie_encapsulate(struct wpabuf *data);
187 const struct wpabuf *msg);
200 const struct wpabuf *msg);
[all …]
H A 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);
22 int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg,
25 struct wpabuf *msg);
27 struct wpabuf *msg);
[all …]
H A 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 = NULL; in wps_build_public_key()
127 int wps_build_uuid_e(struct wpabuf *msg, const u8 *uuid) in wps_build_uuid_e()
139 int wps_build_dev_password_id(struct wpabuf *msg, u16 id) in wps_build_dev_password_id()
149 int wps_build_config_error(struct wpabuf *msg, u16 err) in wps_build_config_error()
189 int wps_build_version(struct wpabuf *msg) in wps_build_version()
385 struct wpabuf *plain) in wps_build_encr_settings()
415 const struct wpabuf *pubkey, const u8 *dev_pw, in wps_build_oob_dev_pw()
455 struct wpabuf * wps_ie_encapsulate(struct wpabuf *data) in wps_ie_encapsulate()
457 struct wpabuf *ie; in wps_ie_encapsulate()
[all …]
H A Dwps_common.c416 struct wpabuf *data; in wps_build_nfc_pw_token()
437 struct wpabuf msg; in wps_oob_use_cred()
577 struct wpabuf *msg; in wps_build_wsc_ack()
600 struct wpabuf *msg; in wps_build_wsc_nack()
627 struct wpabuf *ret; in wps_nfc_token_build()
646 int wps_nfc_gen_dh(struct wpabuf **pubkey, struct wpabuf **privkey) in wps_nfc_gen_dh()
676 struct wpabuf *pw; in wps_nfc_token_gen()
706 struct wpabuf *msg; in wps_build_nfc_handover_req()
787 struct wpabuf *msg; in wps_build_nfc_handover_sel()
826 struct wpabuf *msg; in wps_build_nfc_handover_req_p2p()
[all …]
H A Dndef.c83 static struct wpabuf * ndef_parse_records(const struct wpabuf *buf, in ndef_parse_records()
106 static struct wpabuf * ndef_build_record(u8 flags, const void *type, in ndef_build_record()
109 const struct wpabuf *payload) in ndef_build_record()
111 struct wpabuf *record; in ndef_build_record()
167 struct wpabuf * ndef_parse_wifi(const struct wpabuf *buf) in ndef_parse_wifi()
173 struct wpabuf * ndef_build_wifi(const struct wpabuf *buf) in ndef_build_wifi()
193 struct wpabuf * ndef_parse_p2p(const struct wpabuf *buf) in ndef_parse_p2p()
199 struct wpabuf * ndef_build_p2p(const struct wpabuf *buf) in ndef_build_p2p()
/dragonfly/contrib/wpa_supplicant/src/utils/
H A 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);
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);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
40 struct wpabuf * wpabuf_parse_bin(const char *buf);
[all …]
H A Dwpabuf.c49 struct wpabuf *buf = *_buf; in wpabuf_resize()
118 struct wpabuf *buf; in wpabuf_alloc()
124 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf) + len); in wpabuf_alloc()
140 struct wpabuf *buf; in wpabuf_alloc_ext_data()
146 struct wpabuf *buf = os_zalloc(sizeof(struct wpabuf)); in wpabuf_alloc_ext_data()
169 struct wpabuf * wpabuf_dup(const struct wpabuf *src) in wpabuf_dup()
237 struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b) in wpabuf_concat()
239 struct wpabuf *n = NULL; in wpabuf_concat()
275 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len) in wpabuf_zeropad()
277 struct wpabuf *ret; in wpabuf_zeropad()
[all …]
/dragonfly/contrib/wpa_supplicant/src/common/
H A Dgas.c17 static struct wpabuf *
20 struct wpabuf *buf; in gas_build_req()
47 static struct wpabuf *
51 struct wpabuf *buf; in gas_build_resp()
69 struct wpabuf *
78 struct wpabuf *
114 struct wpabuf *buf; in gas_anqp_build_initial_req()
131 struct wpabuf *buf; in gas_anqp_build_initial_resp()
151 struct wpabuf *buf; in gas_anqp_build_initial_resp_buf()
172 struct wpabuf *buf; in gas_anqp_build_comeback_resp()
[all …]
H A 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 *
23 struct wpabuf * gas_anqp_build_initial_resp_buf(u8 dialog_token,
26 struct wpabuf *payload);
30 struct wpabuf * gas_anqp_build_comeback_resp_buf(u8 dialog_token,
34 struct wpabuf *payload);
35 void gas_anqp_set_len(struct wpabuf *buf);
37 u8 * gas_anqp_add_element(struct wpabuf *buf, u16 info_id);
[all …]
/dragonfly/contrib/wpa_supplicant/src/p2p/
H A Dp2p_i.h148 struct wpabuf *go_neg_conf;
158 struct wpabuf *tlvs;
527 struct wpabuf *wfd_ie_beacon;
534 struct wpabuf *wfd_ie_go_neg;
535 struct wpabuf *wfd_dev_info;
536 struct wpabuf *wfd_assoc_bssid;
538 struct wpabuf *wfd_r2_dev_info;
543 struct wpabuf **vendor_elem;
557 struct wpabuf *p2p_attributes;
558 struct wpabuf *wps_attributes;
[all …]
H A Dp2p.h391 struct wpabuf *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXT];
396 struct wpabuf *wfd_subelems;
404 struct wpabuf *vendor_elems;
409 struct wpabuf *p2ps_instance;
714 const struct wpabuf *probe_resp_ie);
1388 const struct wpabuf *tlvs);
1392 const struct wpabuf *tlvs);
1751 struct wpabuf *proberesp_ies);
2220 const struct wpabuf *vendor_ext);
2283 const struct wpabuf *elem);
[all …]
H A Dp2p_build.c29 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, in p2p_buf_add_public_action_hdr()
42 u8 * p2p_buf_add_ie_hdr(struct wpabuf *buf) in p2p_buf_add_ie_hdr()
55 void p2p_buf_update_ie_hdr(struct wpabuf *buf, u8 *len) in p2p_buf_update_ie_hdr()
74 void p2p_buf_add_go_intent(struct wpabuf *buf, u8 go_intent) in p2p_buf_add_go_intent()
113 void p2p_buf_add_pref_channel_list(struct wpabuf *buf, in p2p_buf_add_pref_channel_list()
176 void p2p_buf_add_status(struct wpabuf *buf, u8 status) in p2p_buf_add_status()
245 void p2p_buf_add_device_id(struct wpabuf *buf, const u8 *dev_addr) in p2p_buf_add_device_id()
279 void p2p_buf_add_group_bssid(struct wpabuf *buf, const u8 *bssid) in p2p_buf_add_group_bssid()
290 void p2p_buf_add_group_id(struct wpabuf *buf, const u8 *dev_addr, in p2p_buf_add_group_id()
304 void p2p_buf_add_invitation_flags(struct wpabuf *buf, u8 flags) in p2p_buf_add_invitation_flags()
[all …]
H A Dp2p_group.c25 struct wpabuf *p2p_ie;
26 struct wpabuf *wfd_ie;
41 struct wpabuf *noa;
42 struct wpabuf *wfd_ie;
164 static void p2p_group_add_noa(struct wpabuf *ie, struct wpabuf *noa) in p2p_group_add_noa()
175 static struct wpabuf * p2p_group_encaps_probe_resp(struct wpabuf *subelems) in p2p_group_encaps_probe_resp()
177 struct wpabuf *ie; in p2p_group_encaps_probe_resp()
210 struct wpabuf *ie; in p2p_group_build_beacon_ie()
255 struct wpabuf * wifi_display_encaps(struct wpabuf *subelems) in wifi_display_encaps()
257 struct wpabuf *ie; in wifi_display_encaps()
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dbss.h25 struct wpabuf *payload;
35 struct wpabuf *capability_list;
36 struct wpabuf *venue_name;
37 struct wpabuf *network_auth_type;
38 struct wpabuf *roaming_consortium;
40 struct wpabuf *nai_realm;
41 struct wpabuf *anqp_3gpp;
42 struct wpabuf *domain_name;
43 struct wpabuf *fils_realm_info;
47 struct wpabuf *hs20_capability_list;
[all …]
H A Dwps_supplicant.h61 struct wpabuf * wpas_wps_er_nfc_config_token(struct wpa_supplicant *wpa_s,
65 struct wpabuf * wpas_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
67 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef);
70 const struct wpabuf *dev_pw, u16 dev_pw_id,
74 const struct wpabuf *data, int forced_freq);
75 struct wpabuf * wpas_wps_nfc_handover_req(struct wpa_supplicant *wpa_s,
77 struct wpabuf * wpas_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
80 const struct wpabuf *req,
81 const struct wpabuf *sel);
83 const struct wpabuf *req,
[all …]
/dragonfly/contrib/wpa_supplicant/src/crypto/
H A Dtls.h54 const struct wpabuf *cert;
69 const struct wpabuf *cert;
449 const struct wpabuf *in_data,
450 struct wpabuf **appl_data);
454 const struct wpabuf *in_data,
455 struct wpabuf **appl_data,
470 const struct wpabuf *in_data,
471 struct wpabuf **appl_data);
505 const struct wpabuf *in_data,
644 struct wpabuf *data);
[all …]
H A Dtls_none.c111 struct wpabuf * tls_connection_handshake(void *tls_ctx, in tls_connection_handshake()
113 const struct wpabuf *in_data, in tls_connection_handshake()
114 struct wpabuf **appl_data) in tls_connection_handshake()
122 const struct wpabuf *in_data, in tls_connection_server_handshake()
123 struct wpabuf **appl_data) in tls_connection_server_handshake()
129 struct wpabuf * tls_connection_encrypt(void *tls_ctx, in tls_connection_encrypt()
131 const struct wpabuf *in_data) in tls_connection_encrypt()
137 struct wpabuf * tls_connection_decrypt(void *tls_ctx, in tls_connection_decrypt()
139 const struct wpabuf *in_data) in tls_connection_decrypt()
213 struct wpabuf *data) in tls_connection_set_success_data()
[all …]
H A 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);
H A Ddh_group5.c16 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ) in dh5_init()
26 void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ) in dh5_init_fixed()
32 struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public, in dh5_derive_shared()
33 const struct wpabuf *own_private) in dh5_derive_shared()
H A Dtls_internal.c475 struct wpabuf **appl_data) in tls_connection_handshake()
485 struct wpabuf **appl_data, in tls_connection_handshake2()
491 struct wpabuf *out; in tls_connection_handshake2()
529 struct wpabuf **appl_data) in tls_connection_server_handshake()
534 struct wpabuf *out; in tls_connection_server_handshake()
567 struct wpabuf *buf; in tls_connection_encrypt()
586 struct wpabuf *buf; in tls_connection_encrypt()
617 const struct wpabuf *in_data, in tls_connection_decrypt2()
632 struct wpabuf *buf; in tls_connection_decrypt2()
792 struct wpabuf *data) in tls_connection_set_success_data()
[all …]
/dragonfly/contrib/wpa_supplicant/src/eap_peer/
H A Deap_tls_common.h24 struct wpabuf *tls_out;
39 struct wpabuf *tls_in;
111 u8 id, const struct wpabuf *in_data,
112 struct wpabuf **out_data);
113 struct wpabuf * eap_peer_tls_build_ack(u8 id, EapType eap_type,
122 const struct wpabuf *reqData,
127 const struct wpabuf *in_data,
128 struct wpabuf **in_decrypted);
131 const struct wpabuf *in_data,
132 struct wpabuf **out_data);
[all …]
/dragonfly/contrib/wpa_supplicant/src/eap_server/
H A Deap_tls_common.h24 struct wpabuf *tls_out;
39 struct wpabuf *tls_in;
52 struct wpabuf tmpbuf;
76 struct wpabuf * eap_tls_msg_alloc(EapType type, size_t payload_len,
87 struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data,
89 struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int version);
91 struct wpabuf * eap_server_tls_encrypt(struct eap_sm *sm,
93 const struct wpabuf *plain);
95 struct wpabuf *respData, void *priv, int eap_type,
99 const struct wpabuf *respData));
/dragonfly/contrib/wpa_supplicant/src/eap_common/
H A Deap_teap_common.h171 struct wpabuf;
193 void eap_teap_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len);
194 void eap_teap_put_tlv(struct wpabuf *buf, u16 type, const void *data, u16 len);
195 void eap_teap_put_tlv_buf(struct wpabuf *buf, u16 type,
196 const struct wpabuf *data);
197 struct wpabuf * eap_teap_tlv_eap_payload(struct wpabuf *buf);
207 const struct wpabuf *server_outer_tlvs,
208 const struct wpabuf *peer_outer_tlvs,
213 struct wpabuf * eap_teap_tlv_result(int status, int intermediate);
214 struct wpabuf * eap_teap_tlv_error(enum teap_error_codes error);
H A 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>>...12