|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Session-wide security policy for the network backend. More...
#include <mdl_net.h>
Data Fields | |
| bool | allow_private_hosts |
| Permit loopback/private/link-local peers. | |
| bool | allow_cross_host_redirect |
| Permit a redirect to a different host. | |
| uint64_t | max_response_bytes |
| Per-response byte cap (0 = unlimited). | |
| const char * | proxy |
| HTTP/HTTPS proxy URL, or NULL for none. | |
| const char * | socks5 |
| SOCKS5 proxy URL, or NULL for none. | |
| mdl_net_bytes_t | cookies |
| Newline-delimited input cookies. | |
| mdl_net_bytes_t | ca_pem |
| Complete PEM CA bundle, or an empty view. | |
Session-wide security policy for the network backend.
mdl fetches attacker-influenced URLs, so the backend is hardened by default: only public address space is reachable, redirects may not change host, and each response is size-bounded. These knobs are the deliberate escape hatches, all off/safe by default.
| bool mdl_net_policy_t::allow_cross_host_redirect |
Permit a redirect to a different host.
Definition at line 83 of file mdl_net.h.
Referenced by mdl_net_curl_init().
| bool mdl_net_policy_t::allow_private_hosts |
Permit loopback/private/link-local peers.
Definition at line 82 of file mdl_net.h.
Referenced by mdl_net_curl_init().
| mdl_net_bytes_t mdl_net_policy_t::ca_pem |
Complete PEM CA bundle, or an empty view.
Definition at line 88 of file mdl_net.h.
Referenced by internal_prepare_credentials(), and mdl_net_curl_init().
| mdl_net_bytes_t mdl_net_policy_t::cookies |
Newline-delimited input cookies.
Definition at line 87 of file mdl_net.h.
Referenced by internal_prepare_credentials(), and mdl_net_curl_init().
| uint64_t mdl_net_policy_t::max_response_bytes |
Per-response byte cap (0 = unlimited).
Definition at line 84 of file mdl_net.h.
Referenced by mdl_net_curl_init().
| const char* mdl_net_policy_t::proxy |
HTTP/HTTPS proxy URL, or NULL for none.
Definition at line 85 of file mdl_net.h.
Referenced by mdl_net_curl_init().
| const char* mdl_net_policy_t::socks5 |
SOCKS5 proxy URL, or NULL for none.
Definition at line 86 of file mdl_net.h.
Referenced by mdl_net_curl_init().