|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
ESP-IDF media-service declarations for target builds and AST audits. More...
Go to the source code of this file.
Data Structures | |
| struct | esp_http_client_event_t |
| Parser mirror of the ESP-IDF HTTP event record. More... | |
| struct | esp_http_client_config_t |
| Exact consumed subset of ESP-IDF's HTTP client configuration. More... | |
| struct | mbedtls_sha256_context |
| Parser-only storage standing in for ESP-IDF's SHA-256 context. More... | |
Macros | |
| #define | esp_crt_bundle_attach priv_esp_crt_bundle_attach |
| Map the parser bundle callback to its module-private stand-in. | |
| #define | esp_http_client_init priv_esp_http_client_init |
| Map the parser HTTP constructor to its module-private stand-in. | |
| #define | esp_http_client_close priv_esp_http_client_close |
| Map the parser HTTP close operation to its private stand-in. | |
| #define | esp_http_client_set_url priv_esp_http_client_set_url |
| Map the parser URL setter to its module-private stand-in. | |
| #define | esp_http_client_set_header priv_esp_http_client_set_header |
| Map the parser request-header setter to its private stand-in. | |
| #define | esp_http_client_delete_header priv_esp_http_client_delete_header |
| Map the parser request-header remover to its private stand-in. | |
| #define | esp_http_client_set_timeout_ms priv_esp_http_client_set_timeout_ms |
| Map the parser timeout setter to its private stand-in. | |
| #define | esp_http_client_open priv_esp_http_client_open |
| Map the parser HTTP open operation to its private stand-in. | |
| #define | esp_http_client_fetch_headers priv_esp_http_client_fetch_headers |
| Map the parser header fetch to its module-private stand-in. | |
| #define | esp_http_client_get_status_code priv_esp_http_client_get_status_code |
| Map the parser status accessor to its module-private stand-in. | |
| #define | esp_http_client_read priv_esp_http_client_read |
| Map the parser body reader to its module-private stand-in. | |
| #define | esp_http_client_is_complete_data_received priv_esp_http_client_is_complete_data_received |
| Map the parser completion query to its module-private stand-in. | |
| #define | mbedtls_sha256_init priv_mbedtls_sha256_init |
| Map the parser SHA-256 initializer to its private stand-in. | |
| #define | mbedtls_sha256_starts priv_mbedtls_sha256_starts |
| Map the parser SHA-256 start operation to its private stand-in. | |
| #define | mbedtls_sha256_update priv_mbedtls_sha256_update |
| Map the parser SHA-256 update operation to its private stand-in. | |
| #define | mbedtls_sha256_finish priv_mbedtls_sha256_finish |
| Map the parser SHA-256 finalizer to its private stand-in. | |
Typedefs | |
| typedef struct esp_http_client * | esp_http_client_handle_t |
| Opaque host-parser stand-in for an ESP-IDF HTTP client. | |
| typedef esp_err_t(* | esp_crt_bundle_attach_fn_t) (void *conf) |
| HTTPS certificate-bundle attach callback used by ESP-IDF. | |
| typedef enum esp_http_client_event_id_t | esp_http_client_event_id_t |
| Consumed ESP-IDF HTTP event identifiers. | |
| typedef struct esp_http_client_event_t | esp_http_client_event_t |
| Parser mirror of the ESP-IDF HTTP event record. | |
| typedef esp_err_t(* | esp_http_client_event_cb_t) (esp_http_client_event_t *event) |
| HTTP event callback signature consumed by the adapter. | |
| typedef struct esp_http_client_config_t | esp_http_client_config_t |
| typedef struct mbedtls_sha256_context | mbedtls_sha256_context |
| Parser-only storage standing in for ESP-IDF's SHA-256 context. | |
Enumerations | |
| enum | esp_http_client_event_id_t : int32_t { HTTP_EVENT_ERROR = 0 , HTTP_EVENT_ON_CONNECTED , HTTP_EVENT_HEADERS_SENT , HTTP_EVENT_ON_HEADER , HTTP_EVENT_ON_DATA , HTTP_EVENT_ON_FINISH , HTTP_EVENT_DISCONNECTED , HTTP_EVENT_REDIRECT } |
| Consumed ESP-IDF HTTP event identifiers. More... | |
Functions | |
| esp_err_t | priv_esp_crt_bundle_attach (void *conf) |
| Attach ESP-IDF's certificate bundle to one TLS configuration. | |
| esp_http_client_handle_t | priv_esp_http_client_init (const esp_http_client_config_t *config) |
| Create one ESP-IDF HTTP client. | |
| esp_err_t | priv_esp_http_client_close (esp_http_client_handle_t client) |
| Close the active response while retaining the HTTP client object. | |
| esp_err_t | priv_esp_http_client_set_url (esp_http_client_handle_t client, const char *url) |
| Replace the retained client's request URL. | |
| esp_err_t | priv_esp_http_client_set_header (esp_http_client_handle_t client, const char *key, const char *value) |
| Set one request header on the retained HTTP client. | |
| esp_err_t | priv_esp_http_client_delete_header (esp_http_client_handle_t client, const char *key) |
| Remove one retained request header. | |
| esp_err_t | priv_esp_http_client_set_timeout_ms (esp_http_client_handle_t client, int timeout_ms) |
| Set the retained client's operation timeout. | |
| esp_err_t | priv_esp_http_client_open (esp_http_client_handle_t client, int64_t write_len) |
| Open the configured HTTP request. | |
| int64_t | priv_esp_http_client_fetch_headers (esp_http_client_handle_t client) |
| Fetch response headers and the advertised body length. | |
| int | priv_esp_http_client_get_status_code (esp_http_client_handle_t client) |
| Return the HTTP response status code. | |
| int | priv_esp_http_client_read (esp_http_client_handle_t client, char *buffer, int len) |
| Read at most one bounded span of response body bytes. | |
| bool | priv_esp_http_client_is_complete_data_received (esp_http_client_handle_t client) |
| Report whether ESP-IDF received the complete response body. | |
| void | priv_mbedtls_sha256_init (mbedtls_sha256_context *ctx) |
| Initialize one SHA-256 context. | |
| int | priv_mbedtls_sha256_starts (mbedtls_sha256_context *ctx, int is224) |
| Start a SHA-224 or SHA-256 operation. | |
| int | priv_mbedtls_sha256_update (mbedtls_sha256_context *ctx, const unsigned char *input, size_t ilen) |
| Add bytes to the active SHA operation. | |
| int | priv_mbedtls_sha256_finish (mbedtls_sha256_context *ctx, unsigned char output[32]) |
| Finalize the active SHA-256 operation. | |
ESP-IDF media-service declarations for target builds and AST audits.
ESP-IDF supplies the concrete declarations when the C6 component is built. Repository-hosted annotation analysis deliberately runs without an installed ESP-IDF SDK, so the non-target branch describes only the exact subset of that SDK surface consumed by mdl_service.c. It has no runtime implementation and is never selected by the ESP-IDF build.
Keeping the audit declarations beside the adapter makes the dependency explicit without pretending that ESP-IDF is a portable library or allowing a missing vendor header to truncate the annotation checker call graph.
Definition in file esp_idf_mdl_compat_internal.h.
| #define esp_crt_bundle_attach priv_esp_crt_bundle_attach |
Map the parser bundle callback to its module-private stand-in.
Definition at line 107 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_init().
| #define esp_http_client_close priv_esp_http_client_close |
Map the parser HTTP close operation to its private stand-in.
Definition at line 111 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_reset_job().
| #define esp_http_client_delete_header priv_esp_http_client_delete_header |
Map the parser request-header remover to its private stand-in.
Definition at line 117 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_set_header().
| #define esp_http_client_fetch_headers priv_esp_http_client_fetch_headers |
Map the parser header fetch to its module-private stand-in.
Definition at line 123 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_open().
| #define esp_http_client_get_status_code priv_esp_http_client_get_status_code |
Map the parser status accessor to its module-private stand-in.
Definition at line 125 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_open().
| #define esp_http_client_init priv_esp_http_client_init |
Map the parser HTTP constructor to its module-private stand-in.
Definition at line 109 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_init().
| #define esp_http_client_is_complete_data_received priv_esp_http_client_is_complete_data_received |
Map the parser completion query to its module-private stand-in.
Definition at line 129 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_finish().
| #define esp_http_client_open priv_esp_http_client_open |
Map the parser HTTP open operation to its private stand-in.
Definition at line 121 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_open().
| #define esp_http_client_read priv_esp_http_client_read |
Map the parser body reader to its module-private stand-in.
Definition at line 127 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_read().
| #define esp_http_client_set_header priv_esp_http_client_set_header |
Map the parser request-header setter to its private stand-in.
Definition at line 115 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_set_header().
| #define esp_http_client_set_timeout_ms priv_esp_http_client_set_timeout_ms |
Map the parser timeout setter to its private stand-in.
Definition at line 119 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_apply_request().
| #define esp_http_client_set_url priv_esp_http_client_set_url |
Map the parser URL setter to its module-private stand-in.
Definition at line 113 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_begin().
| #define mbedtls_sha256_finish priv_mbedtls_sha256_finish |
Map the parser SHA-256 finalizer to its private stand-in.
Definition at line 137 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_finish().
| #define mbedtls_sha256_init priv_mbedtls_sha256_init |
Map the parser SHA-256 initializer to its private stand-in.
Definition at line 131 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_init().
| #define mbedtls_sha256_starts priv_mbedtls_sha256_starts |
Map the parser SHA-256 start operation to its private stand-in.
Definition at line 133 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_begin().
| #define mbedtls_sha256_update priv_mbedtls_sha256_update |
Map the parser SHA-256 update operation to its private stand-in.
Definition at line 135 of file esp_idf_mdl_compat_internal.h.
Referenced by internal_mdl_http_account_read().
| typedef esp_err_t(* esp_crt_bundle_attach_fn_t) (void *conf) |
HTTPS certificate-bundle attach callback used by ESP-IDF.
Definition at line 49 of file esp_idf_mdl_compat_internal.h.
| typedef struct esp_http_client_config_t esp_http_client_config_t |
| typedef esp_err_t(* esp_http_client_event_cb_t) (esp_http_client_event_t *event) |
HTTP event callback signature consumed by the adapter.
Definition at line 80 of file esp_idf_mdl_compat_internal.h.
| typedef enum esp_http_client_event_id_t esp_http_client_event_id_t |
Consumed ESP-IDF HTTP event identifiers.
The underlying type is stated explicitly so the audit mirror has the same width as the plain (implicitly int-backed) ESP-IDF enum this declaration stands in for.
| typedef struct esp_http_client_event_t esp_http_client_event_t |
Parser mirror of the ESP-IDF HTTP event record.
| typedef struct esp_http_client* esp_http_client_handle_t |
Opaque host-parser stand-in for an ESP-IDF HTTP client.
Definition at line 46 of file esp_idf_mdl_compat_internal.h.
| typedef struct mbedtls_sha256_context mbedtls_sha256_context |
Parser-only storage standing in for ESP-IDF's SHA-256 context.
| enum esp_http_client_event_id_t : int32_t |
Consumed ESP-IDF HTTP event identifiers.
The underlying type is stated explicitly so the audit mirror has the same width as the plain (implicitly int-backed) ESP-IDF enum this declaration stands in for.
Definition at line 57 of file esp_idf_mdl_compat_internal.h.
| esp_err_t priv_esp_crt_bundle_attach | ( | void * | conf | ) |
Attach ESP-IDF's certificate bundle to one TLS configuration.
Parser-only mirror of the ESP-IDF callback consumed by the media adapter.
| [in,out] | conf | ESP-IDF TLS configuration owned by the HTTP client. |
conf is a valid ESP-IDF TLS configuration. References RA8_PRIV.
| esp_err_t priv_esp_http_client_close | ( | esp_http_client_handle_t | client | ) |
Close the active response while retaining the HTTP client object.
Parser-only mirror of ESP-IDF's per-connection close operation.
| [in,out] | client | Valid retained client handle. |
client was returned by esp_http_client_init. client. References RA8_PRIV.
| esp_err_t priv_esp_http_client_delete_header | ( | esp_http_client_handle_t | client, |
| const char * | key ) |
Remove one retained request header.
Mirrors the ESP-IDF operation used to clear state that must not leak from a prior request on the reused client handle.
| [in,out] | client | Valid retained client handle. |
| [in] | key | NUL-terminated header name. |
key is NUL-terminated. client. References RA8_PRIV.
| int64_t priv_esp_http_client_fetch_headers | ( | esp_http_client_handle_t | client | ) |
Fetch response headers and the advertised body length.
Parser-only mirror of ESP-IDF's synchronous header fetch.
| [in,out] | client | Open client handle. |
| -1 | Content length is unknown or header fetch failed. |
client. client. References RA8_PRIV.
| int priv_esp_http_client_get_status_code | ( | esp_http_client_handle_t | client | ) |
Return the HTTP response status code.
Parser-only mirror of ESP-IDF's response-status accessor.
| [in] | client | Client whose response headers were fetched. |
| 0 | No valid HTTP status is available. |
client. client is a valid retained handle. References RA8_PRIV.
| esp_http_client_handle_t priv_esp_http_client_init | ( | const esp_http_client_config_t * | config | ) |
Create one ESP-IDF HTTP client.
Parser-only mirror of the ESP-IDF constructor used by the C6 adapter.
| [in] | config | Complete client configuration retained by ESP-IDF as required. |
| nullptr | Client creation failed. |
config is non-null and its callback fields remain callable. References RA8_PRIV.
| bool priv_esp_http_client_is_complete_data_received | ( | esp_http_client_handle_t | client | ) |
Report whether ESP-IDF received the complete response body.
Parser-only mirror used to distinguish verified EOF from truncation.
| [in] | client | Response handle after a zero-length body read. |
| true | ESP-IDF observed a complete response body. |
| false | The body is incomplete or response state is invalid. |
client is a valid retained handle. References RA8_PRIV.
| esp_err_t priv_esp_http_client_open | ( | esp_http_client_handle_t | client, |
| int64_t | write_len ) |
Open the configured HTTP request.
Parser-only mirror of ESP-IDF's connection and request-header operation.
| [in,out] | client | Configured retained client handle. |
| [in] | write_len | Request-body length; zero for this GET-only adapter. |
client has a valid HTTPS URL. client. References RA8_PRIV.
| int priv_esp_http_client_read | ( | esp_http_client_handle_t | client, |
| char * | buffer, | ||
| int | len ) |
Read at most one bounded span of response body bytes.
Parser-only mirror of ESP-IDF's synchronous body reader.
| [in,out] | client | Open response handle. |
| [out] | buffer | Caller-owned destination with capacity len. |
| [in] | len | Maximum bytes writable to buffer. |
| 0 | No further body bytes were returned. |
| -1 | A body read failed. |
buffer is writable for len bytes. client. buffer. References RA8_PRIV.
| esp_err_t priv_esp_http_client_set_header | ( | esp_http_client_handle_t | client, |
| const char * | key, | ||
| const char * | value ) |
Set one request header on the retained HTTP client.
Mirrors the exact ESP-IDF operation used to apply one bounded portable request-policy field before opening a GET.
| [in,out] | client | Valid retained client handle. |
| [in] | key | NUL-terminated header name. |
| [in] | value | NUL-terminated header value. |
client. References RA8_PRIV.
| esp_err_t priv_esp_http_client_set_timeout_ms | ( | esp_http_client_handle_t | client, |
| int | timeout_ms ) |
Set the retained client's operation timeout.
Mirrors the ESP-IDF operation used to apply the portable request budget to the reused client before opening its connection.
| [in,out] | client | Valid retained client handle. |
| [in] | timeout_ms | Positive timeout in milliseconds. |
client is valid and timeout_ms is positive. client. References RA8_PRIV.
| esp_err_t priv_esp_http_client_set_url | ( | esp_http_client_handle_t | client, |
| const char * | url ) |
Replace the retained client's request URL.
Parser-only mirror of ESP-IDF's URL-setting operation.
| [in,out] | client | Valid retained client handle. |
| [in] | url | NUL-terminated absolute HTTPS URL. |
client was returned by esp_http_client_init. url remains readable for the duration of the call. url the next request target. References RA8_PRIV.
| int priv_mbedtls_sha256_finish | ( | mbedtls_sha256_context * | ctx, |
| unsigned char | output[32] ) |
Finalize the active SHA-256 operation.
Parser-only mirror of mbedTLS's fixed-size digest output.
| [in,out] | ctx | Active hash context. |
| [out] | output | Caller-owned 32-byte digest buffer. |
| 0 | The digest was written successfully. |
ctx. output is writable for 32 bytes. output. output. References RA8_PRIV.
| void priv_mbedtls_sha256_init | ( | mbedtls_sha256_context * | ctx | ) |
Initialize one SHA-256 context.
Parser-only mirror of mbedTLS context initialization.
| [out] | ctx | Context storage to initialize. |
ctx is writable and suitably aligned. ctx. ctx may be passed to mbedtls_sha256_starts. References RA8_PRIV.
| int priv_mbedtls_sha256_starts | ( | mbedtls_sha256_context * | ctx, |
| int | is224 ) |
Start a SHA-224 or SHA-256 operation.
Parser-only mirror; the media adapter always requests SHA-256.
| [in,out] | ctx | Initialized hash context. |
| [in] | is224 | Zero for SHA-256, non-zero for SHA-224. |
| 0 | Hash initialization succeeded. |
ctx. ctx. References RA8_PRIV.
| int priv_mbedtls_sha256_update | ( | mbedtls_sha256_context * | ctx, |
| const unsigned char * | input, | ||
| size_t | ilen ) |
Add bytes to the active SHA operation.
Parser-only mirror of mbedTLS's streaming hash update.
| [in,out] | ctx | Active hash context. |
| [in] | input | Readable input bytes. |
| [in] | ilen | Number of bytes at input. |
| 0 | All input bytes were incorporated. |
ctx. input is readable for ilen bytes. ilen bytes.