Home
last modified time | relevance | path

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

1234

/hal_espressif-latest/components/wpa_supplicant/src/wps/
Dwps.h99 struct wpabuf *vendor_ext_m1;
100 struct wpabuf *vendor_ext[MAX_WPS_VENDOR_EXTENSIONS];
101 struct wpabuf *application_ext;
139 const struct wpabuf *assoc_wps_ie;
235 const struct wpabuf *msg);
237 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code);
239 int wps_is_selected_pbc_registrar(const struct wpabuf *msg);
240 int wps_is_selected_pin_registrar(const struct wpabuf *msg);
241 int wps_ap_priority_compar(const struct wpabuf *wps_a,
242 const struct wpabuf *wps_b);
[all …]
Dwps_i.h62 struct wpabuf *dh_privkey;
63 struct wpabuf *dh_pubkey_e;
64 struct wpabuf *dh_pubkey_r;
69 struct wpabuf *last_msg;
140 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr,
153 struct wpabuf * wps_build_wsc_ack(struct wps_data *wps);
154 struct wpabuf * wps_build_wsc_nack(struct wps_data *wps);
157 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg);
158 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type);
159 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 = NULL; in wps_build_public_key()
103 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type()
113 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type()
123 int wps_build_config_methods(struct wpabuf *msg, u16 methods) in wps_build_config_methods()
133 int wps_build_uuid_e(struct wpabuf *msg, const u8 *uuid) in wps_build_uuid_e()
145 int wps_build_dev_password_id(struct wpabuf *msg, u16 id) in wps_build_dev_password_id()
155 int wps_build_config_error(struct wpabuf *msg, u16 err) in wps_build_config_error()
165 int wps_build_authenticator(struct wps_data *wps, struct wpabuf *msg) in wps_build_authenticator()
197 int wps_build_version(struct wpabuf *msg) in wps_build_version()
[all …]
Dwps_common.c64 struct wpabuf *pubkey, *dh_shared; in wps_derive_keys()
161 struct wpabuf * wps_decrypt_encr_settings(struct wps_data *wps, const u8 *encr, in wps_decrypt_encr_settings()
164 struct wpabuf *decrypted; in wps_decrypt_encr_settings()
370 struct wpabuf * wps_get_oob_cred(struct wps_context *wps, int rf_band, in wps_get_oob_cred()
374 struct wpabuf *plain; in wps_get_oob_cred()
427 struct wpabuf * wps_build_nfc_pw_token(u16 dev_pw_id, in wps_build_nfc_pw_token()
428 const struct wpabuf *pubkey, in wps_build_nfc_pw_token()
429 const struct wpabuf *dev_pw) in wps_build_nfc_pw_token()
431 struct wpabuf *data; in wps_build_nfc_pw_token()
453 struct wpabuf msg; in wps_oob_use_cred()
[all …]
Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number()
112 int wps_build_primary_dev_type(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_primary_dev_type()
123 struct wpabuf *msg) in wps_build_secondary_dev_type()
138 int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg, in wps_build_req_dev_type()
158 int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_dev_name()
182 int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_device_attrs()
195 int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_os_version()
[all …]
/hal_espressif-latest/components/wpa_supplicant/include/utils/
Dwpabuf.h26 struct wpabuf { struct
35 int wpabuf_resize(struct wpabuf **buf, size_t add_len); argument
36 struct wpabuf * wpabuf_alloc(size_t len);
37 struct wpabuf * wpabuf_alloc_ext_data(u8 *data, size_t len);
38 struct wpabuf * wpabuf_alloc_copy(const void *data, size_t len);
39 struct wpabuf * wpabuf_dup(const struct wpabuf *src);
40 void wpabuf_free(struct wpabuf *buf);
41 void wpabuf_clear_free(struct wpabuf *buf);
42 void * wpabuf_put(struct wpabuf *buf, size_t len);
43 struct wpabuf * wpabuf_concat(struct wpabuf *a, struct wpabuf *b);
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/utils/
Dwpabuf.c29 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) in wpabuf_get_trace()
37 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow()
52 int wpabuf_resize(struct wpabuf **_buf, size_t add_len) in wpabuf_resize()
54 struct wpabuf *buf = *_buf; in wpabuf_resize()
84 sizeof(struct wpabuf) + in wpabuf_resize()
89 buf = (struct wpabuf *) (trace + 1); in wpabuf_resize()
91 sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
94 nbuf = (unsigned char*)os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
98 buf = (struct wpabuf *) nbuf; in wpabuf_resize()
99 memset(nbuf + sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()
[all …]
Djson.h38 struct wpabuf * json_get_member_base64url(struct json_token *json,
41 void json_add_int(struct wpabuf *json, const char *name, int val);
42 void json_add_string(struct wpabuf *json, const char *name, const char *val);
43 int json_add_string_escape(struct wpabuf *json, const char *name,
45 int json_add_base64url(struct wpabuf *json, const char *name, const void *val,
47 void json_start_object(struct wpabuf *json, const char *name);
48 void json_end_object(struct wpabuf *json);
49 void json_start_array(struct wpabuf *json, const char *name);
50 void json_end_array(struct wpabuf *json);
51 void json_value_sep(struct wpabuf *json);
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
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);
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()
Dtls.h54 const struct wpabuf *cert;
69 const struct wpabuf *cert;
448 struct wpabuf * tls_connection_handshake(void *tls_ctx,
450 const struct wpabuf *in_data,
451 struct wpabuf **appl_data);
453 struct wpabuf * tls_connection_handshake2(void *tls_ctx,
455 const struct wpabuf *in_data,
456 struct wpabuf **appl_data,
469 struct wpabuf * tls_connection_server_handshake(void *tls_ctx,
471 const struct wpabuf *in_data,
[all …]
Ddh_groups.h24 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
25 struct wpabuf * dh_derive_shared(const struct wpabuf *peer_public,
26 const struct wpabuf *own_private,
Dtls_internal.c472 struct wpabuf * tls_connection_handshake(void *tls_ctx, in tls_connection_handshake()
474 const struct wpabuf *in_data, in tls_connection_handshake()
475 struct wpabuf **appl_data) in tls_connection_handshake()
482 struct wpabuf * tls_connection_handshake2(void *tls_ctx, in tls_connection_handshake2()
484 const struct wpabuf *in_data, in tls_connection_handshake2()
485 struct wpabuf **appl_data, in tls_connection_handshake2()
491 struct wpabuf *out; in tls_connection_handshake2()
526 struct wpabuf * tls_connection_server_handshake(void *tls_ctx, in tls_connection_server_handshake()
528 const struct wpabuf *in_data, in tls_connection_server_handshake()
529 struct wpabuf **appl_data) in tls_connection_server_handshake()
[all …]
Ddh_groups.c1193 struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv) in dh_init()
1195 struct wpabuf *pv; in dh_init()
1249 struct wpabuf * dh_derive_shared(const struct wpabuf *peer_public, in dh_derive_shared()
1250 const struct wpabuf *own_private, in dh_derive_shared()
1253 struct wpabuf *shared; in dh_derive_shared()
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/
Deap_tls_common.h24 struct wpabuf *tls_out;
39 struct wpabuf *tls_in;
108 struct wpabuf **out_data);
109 struct wpabuf * eap_peer_tls_build_ack(u8 id, EapType eap_type,
118 const struct wpabuf *reqData,
123 const struct wpabuf *in_data,
124 struct wpabuf **in_decrypted);
127 const struct wpabuf *in_data,
128 struct wpabuf **out_data);
134 struct eap_hdr *hdr, struct wpabuf **resp);
Deap_common.h14 int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload);
16 const struct wpabuf *msg, size_t *plen);
17 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
19 void eap_update_len(struct wpabuf *msg);
20 u8 eap_get_id(const struct wpabuf *msg);
21 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);
Deap_common.c25 int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload) in eap_hdr_len_valid()
67 const struct wpabuf *msg, size_t *plen) in eap_hdr_validate()
128 struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len, in eap_msg_alloc()
131 struct wpabuf *buf; in eap_msg_alloc()
167 void eap_update_len(struct wpabuf *msg) in eap_update_len()
182 u8 eap_get_id(const struct wpabuf *msg) in eap_get_id()
199 EapType eap_get_type(const struct wpabuf *msg) in eap_get_type()
/hal_espressif-latest/components/wpa_supplicant/src/tls/
Dasn1.h76 void asn1_put_integer(struct wpabuf *buf, int val);
77 void asn1_put_octet_string(struct wpabuf *buf, const struct wpabuf *val);
78 void asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid);
79 void asn1_put_hdr(struct wpabuf *buf, u8 class, int constructed, u8 tag,
81 void asn1_put_sequence(struct wpabuf *buf, const struct wpabuf *payload);
82 void asn1_put_set(struct wpabuf *buf, const struct wpabuf *payload);
83 void asn1_put_utf8string(struct wpabuf *buf, const char *val);
84 struct wpabuf * asn1_build_alg_id(const struct asn1_oid *oid,
85 const struct wpabuf *params);
86 struct wpabuf * asn1_encaps(struct wpabuf *buf, u8 class, u8 tag);
Dasn1.c504 void asn1_put_integer(struct wpabuf *buf, int val) in asn1_put_integer()
519 static void asn1_put_len(struct wpabuf *buf, size_t len) in asn1_put_len()
539 void asn1_put_octet_string(struct wpabuf *buf, const struct wpabuf *val) in asn1_put_octet_string()
547 void asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid) in asn1_put_oid()
580 void asn1_put_hdr(struct wpabuf *buf, u8 class, int constructed, u8 tag, in asn1_put_hdr()
588 void asn1_put_sequence(struct wpabuf *buf, const struct wpabuf *payload) in asn1_put_sequence()
596 void asn1_put_set(struct wpabuf *buf, const struct wpabuf *payload) in asn1_put_set()
604 void asn1_put_utf8string(struct wpabuf *buf, const char *val) in asn1_put_utf8string()
612 struct wpabuf * asn1_build_alg_id(const struct asn1_oid *oid, in asn1_build_alg_id()
613 const struct wpabuf *params) in asn1_build_alg_id()
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/common/
Dsae.h38 struct wpabuf *m;
41 struct wpabuf *pubkey; /* DER encoded subjectPublicKey */
62 struct wpabuf *anti_clogging_token;
65 struct wpabuf *own_rejected_groups;
66 struct wpabuf *peer_rejected_groups;
136 int sae_write_commit(struct sae_data *sae, struct wpabuf *buf,
137 const struct wpabuf *token, const char *identifier);
141 int sae_write_confirm(struct sae_data *sae, struct wpabuf *buf);
172 int sae_write_confirm_pk(struct sae_data *sae, struct wpabuf *buf);
Ddpp.h187 struct wpabuf *exchange_req;
188 struct wpabuf *exchange_resp;
251 struct wpabuf *req_msg;
252 struct wpabuf *resp_msg;
283 struct wpabuf *conf_req;
284 const struct wpabuf *conf_resp; /* owned by GAS server */
299 struct wpabuf *c_sign_key;
302 struct wpabuf *net_access_key;
460 struct wpabuf *
463 struct wpabuf * dpp_build_conf_req(struct dpp_authentication *auth,
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/eap_server/
Deap_i.h33 struct wpabuf * (*buildReq)(struct eap_sm *sm, void *priv, u8 id);
35 bool (*check)(struct eap_sm *sm, void *priv, struct wpabuf *respData);
37 struct wpabuf *respData);
136 struct wpabuf *lastReqData;
182 struct wpabuf *assoc_wps_ie;
183 struct wpabuf *assoc_p2p_ie;
Deap.h49 struct wpabuf *eapRespData;
62 struct wpabuf *eapReqData;
75 struct wpabuf *aaaEapReqData;
83 struct wpabuf *aaaEapRespData;
266 const struct wpabuf *assoc_wps_ie;
267 const struct wpabuf *assoc_p2p_ie;

1234