Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/esp_rom/test/
Dtest_miniz.c42 uint8_t *outbuf = calloc(1, DATASIZE); variable
43 TEST_ASSERT_NOT_NULL_MESSAGE(outbuf, "allocate output buffer failed");
52 …comp_status = tdefl_compress(comp, &inbuf[inpos], &inbytes, &outbuf[outpos], &outbytes, TDEFL_FINI…
67 inbuf = outbuf;
68 outbuf = calloc(1, DATASIZE);
69 TEST_ASSERT_NOT_NULL_MESSAGE(outbuf, "allocate output buffer failed");
81 …us decomp_status = tinfl_decompress(decomp, &inbuf[inpos], &inbytes, outbuf, &outbuf[outpos], &out…
97 …TEST_ASSERT_EQUAL_MESSAGE(original, outbuf[i], "data after decompression doesn't match the origina…
101 free(outbuf);
/hal_espressif-3.6.0/examples/protocols/http_server/persistent_sockets/main/
Dmain.c44 char outbuf[50]; in adder_post_handler() local
73 snprintf(outbuf, sizeof(outbuf),"%d", *adder); in adder_post_handler()
74 httpd_resp_send(req, outbuf, HTTPD_RESP_USE_STRLEN); in adder_post_handler()
85 char outbuf[50]; in adder_get_handler() local
97 snprintf(outbuf, sizeof(outbuf),"%d", *((int *)req->sess_ctx)); in adder_get_handler()
98 httpd_resp_send(req, outbuf, HTTPD_RESP_USE_STRLEN); in adder_get_handler()
110 char outbuf[50]; in adder_put_handler() local
135 snprintf(outbuf, sizeof(outbuf),"%d", *((int *)req->sess_ctx)); in adder_put_handler()
136 httpd_resp_send(req, outbuf, HTTPD_RESP_USE_STRLEN); in adder_put_handler()
/hal_espressif-3.6.0/components/protocomm/src/common/
Dprotocomm.c186 uint8_t **outbuf, ssize_t *outlen) in protocomm_req_handle() argument
188 if (!pc || !ep_name || !outbuf || !outlen) { in protocomm_req_handle()
193 *outbuf = NULL; in protocomm_req_handle()
205 ret = ep->req_handler(session_id, inbuf, inlen, outbuf, outlen, ep->priv_data); in protocomm_req_handle()
263 *outbuf = enc_resp; in protocomm_req_handle()
269 outbuf, outlen, in protocomm_req_handle()
274 ret = ep->req_handler(session_id, inbuf, inlen, outbuf, outlen, ep->priv_data); in protocomm_req_handle()
282 uint8_t **outbuf, ssize_t *outlen, in protocomm_common_security_handler() argument
291 outbuf, outlen, in protocomm_common_security_handler()
368 uint8_t **outbuf, ssize_t *outlen, in protocomm_version_handler() argument
[all …]
/hal_espressif-3.6.0/components/protocomm/test/
Dtest_protocomm.c217 uint8_t *outbuf = (uint8_t *) malloc(PUBLIC_KEY_LEN); in prepare_command1() local
218 if (!outbuf) { in prepare_command1()
232 free(outbuf); in prepare_command1()
238 session->stb, session->device_pubkey, outbuf); in prepare_command1()
241 free(outbuf); in prepare_command1()
248 free(outbuf); in prepare_command1()
256 free(outbuf); in prepare_command1()
262 out_req->client_verify_data.data = outbuf; in prepare_command1()
264 hexdump("Client verify data", outbuf, PUBLIC_KEY_LEN); in prepare_command1()
372 uint8_t *outbuf = NULL; in test_sec_endpoint() local
[all …]
/hal_espressif-3.6.0/examples/provisioning/legacy/custom_config/components/custom_provisioning/src/
Dcustom_config.c26 …dler(uint32_t session_id, const uint8_t *inbuf, ssize_t inlen, uint8_t **outbuf, ssize_t *outlen, … in custom_prov_config_data_handler() argument
60 *outbuf = (uint8_t *) malloc(*outlen); in custom_prov_config_data_handler()
61 if (*outbuf == NULL) { in custom_prov_config_data_handler()
66 custom_config_response__pack(&resp, *outbuf); in custom_prov_config_data_handler()
/hal_espressif-3.6.0/components/protocomm/src/security/
Dsecurity1.c133 uint8_t *outbuf = (uint8_t *) malloc(PUBLIC_KEY_LEN); in handle_session_command1() local
134 if (!outbuf) { in handle_session_command1()
145 cur_session->client_pubkey, outbuf); in handle_session_command1()
148 free(outbuf); in handle_session_command1()
155 out_resp->device_verify_data.data = outbuf; in handle_session_command1()
157 hexdump("Device verify data", outbuf, PUBLIC_KEY_LEN); in handle_session_command1()
484 uint8_t *outbuf, ssize_t *outlen) in sec1_decrypt() argument
507 cur_session->rand, cur_session->stb, inbuf, outbuf); in sec1_decrypt()
519 uint8_t **outbuf, ssize_t *outlen, in sec1_req_handler() argument
560 *outbuf = (uint8_t *) malloc(*outlen); in sec1_req_handler()
[all …]
Dsecurity0.c72 uint8_t **outbuf, ssize_t *outlen, in sec0_req_handler() argument
102 *outbuf = (uint8_t *) malloc(*outlen); in sec0_req_handler()
103 if (!*outbuf) { in sec0_req_handler()
107 session_data__pack(&resp, *outbuf); in sec0_req_handler()
/hal_espressif-3.6.0/components/protocomm/include/security/
Dprotocomm_security.h86 uint8_t **outbuf, ssize_t *outlen,
95 uint8_t *outbuf, ssize_t *outlen);
103 uint8_t *outbuf, ssize_t *outlen);
/hal_espressif-3.6.0/components/protocomm/src/transports/
Dprotocomm_ble.c215 uint8_t *outbuf = NULL; in transport_simple_ble_write() local
237 &outbuf, &outlen); in transport_simple_ble_write()
239 ret = esp_ble_gatts_set_attr_value(param->write.handle, outlen, outbuf); in transport_simple_ble_write()
248 hexdump("Response from write", outbuf, outlen); in transport_simple_ble_write()
254 if (outbuf) { in transport_simple_ble_write()
255 free(outbuf); in transport_simple_ble_write()
262 uint8_t *outbuf = NULL; in transport_simple_ble_exec_write() local
274 &outbuf, &outlen); in transport_simple_ble_exec_write()
280 hexdump("Response from exec write", outbuf, outlen); in transport_simple_ble_exec_write()
281 esp_ble_gatts_set_attr_value(prepare_write_env.handle, outlen, outbuf); in transport_simple_ble_exec_write()
[all …]
Dprotocomm_console.c150 uint8_t *outbuf; in common_cmd_handler() local
163 ret = protocomm_req_handle(pc_console, argv[0], cur_session_id, buf, len, &outbuf, &outlen); in common_cmd_handler()
169 printf("%02x", outbuf[i]); in common_cmd_handler()
174 free(outbuf); in common_cmd_handler()
Dprotocomm_httpd.c52 uint8_t *outbuf = NULL; in common_post_handler() local
150 (uint8_t *)req_body, recv_size, &outbuf, &outlen); in common_post_handler()
164 ret = httpd_resp_send(req, (char *)outbuf, outlen); in common_post_handler()
175 if (outbuf) { in common_post_handler()
176 free(outbuf); in common_post_handler()
Dprotocomm_nimble.c39 uint8_t *outbuf; member
134 uint8_t *outbuf) in simple_ble_gatts_set_attr_value() argument
146 free(attr_mbuf->outbuf); in simple_ble_gatts_set_attr_value()
148 attr_mbuf->outbuf = outbuf; in simple_ble_gatts_set_attr_value()
154 *outlen, uint8_t **outbuf) in simple_ble_gatts_get_attr_value() argument
161 *outbuf = attr_mbuf->outbuf; in simple_ble_gatts_get_attr_value()
800 free(curr->outbuf); in free_gatt_ble_misc_memory()
/hal_espressif-3.6.0/components/esp_local_ctrl/src/
Desp_local_ctrl_handler.c256 uint8_t **outbuf, ssize_t *outlen, void *priv_data) in esp_local_ctrl_data_handler() argument
286 *outbuf = (uint8_t *) malloc(*outlen); in esp_local_ctrl_data_handler()
287 if (!*outbuf) { in esp_local_ctrl_data_handler()
293 local_ctrl_message__pack(&resp, *outbuf); in esp_local_ctrl_data_handler()
295 ESP_LOG_BUFFER_HEX_LEVEL(TAG, *outbuf, *outlen, ESP_LOG_DEBUG); in esp_local_ctrl_data_handler()
Desp_local_ctrl_priv.h91 uint8_t **outbuf, ssize_t *outlen, void *priv_data);
/hal_espressif-3.6.0/examples/provisioning/wifi_prov_mgr/main/
Dapp_main.c127 uint8_t **outbuf, ssize_t *outlen, void *priv_data) in custom_prov_data_handler() argument
133 *outbuf = (uint8_t *)strdup(response); in custom_prov_data_handler()
134 if (*outbuf == NULL) { in custom_prov_data_handler()
/hal_espressif-3.6.0/components/protocomm/include/common/
Dprotocomm.h31 uint8_t **outbuf, /*!< Pointer to output buffer allocated by handler */
179 uint8_t **outbuf, ssize_t *outlen);
/hal_espressif-3.6.0/components/wifi_provisioning/src/
Dwifi_scan.c259 uint8_t **outbuf, ssize_t *outlen, void *priv_data) in wifi_prov_scan_handler() argument
287 *outbuf = (uint8_t *) malloc(*outlen); in wifi_prov_scan_handler()
288 if (!*outbuf) { in wifi_prov_scan_handler()
293 wi_fi_scan_payload__pack(&resp, *outbuf); in wifi_prov_scan_handler()
Dwifi_config.c305 uint8_t **outbuf, ssize_t *outlen, void *priv_data) in wifi_prov_config_data_handler() argument
333 *outbuf = (uint8_t *) malloc(*outlen); in wifi_prov_config_data_handler()
334 if (!*outbuf) { in wifi_prov_config_data_handler()
338 wi_fi_config_payload__pack(&resp, *outbuf); in wifi_prov_config_data_handler()
/hal_espressif-3.6.0/examples/protocols/http_server/advanced_tests/main/
Dtests.c205 char outbuf[50]; in adder_post_handler() local
230 snprintf(outbuf, sizeof(outbuf),"%d", *adder); in adder_post_handler()
231 httpd_resp_send(req, outbuf, HTTPD_RESP_USE_STRLEN); in adder_post_handler()
/hal_espressif-3.6.0/docs/en/api-reference/provisioning/
Dprotocomm.rst32 uint8_t **outbuf, ssize_t *outlen,
40 *outbuf = malloc(inlen); /* This will be deallocated outside */
41 memcpy(*outbuf, inbuf, inlen);
/hal_espressif-3.6.0/examples/provisioning/legacy/custom_config/components/custom_provisioning/include/custom_provisioning/
Dcustom_config.h42 uint8_t **outbuf, ssize_t *outlen, void *priv_data);
/hal_espressif-3.6.0/components/wpa_supplicant/esp_supplicant/src/
Desp_wpa2.c339 u8 *outbuf = NULL; in eap_sm_send_eapol() local
349 outbuf = wpa2_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAP_PACKET, in eap_sm_send_eapol()
352 if (!outbuf) { in eap_sm_send_eapol()
356 ret = wpa2_sm_ether_send(sm, bssid, ETH_P_EAPOL, outbuf, outlen); in eap_sm_send_eapol()
357 wpa2_sm_free_eapol(outbuf); in eap_sm_send_eapol()
/hal_espressif-3.6.0/components/wifi_provisioning/include/wifi_provisioning/
Dwifi_scan.h160 uint8_t **outbuf, ssize_t *outlen, void *priv_data);
Dwifi_config.h138 uint8_t **outbuf, ssize_t *outlen, void *priv_data);
/hal_espressif-3.6.0/components/wpa_supplicant/src/eap_peer/
Deap_i.h291 struct pbuf *outbuf; member