Add Typed Admin Network Settings

This commit is contained in:
2026-09-08 20:57:27 +02:00
parent d9ac1319aa
commit 989821b7c4
31 changed files with 2568 additions and 62 deletions
+12 -1
View File
@@ -18,7 +18,12 @@
static struct httpd_data server = {.config.max_resp_headers = 8};
static struct sock_db socket_state;
static struct resp_hdr response_headers[8];
static char scratch[1024], output[1024], cookie_values[2][200];
static char scratch[1024], cookie_values[2][200];
#ifdef HOST_NETWORK
static char output[2048];
#else
static char output[1024];
#endif
static const char *request_body;
static size_t body_offset;
static unsigned password_calls, cookie_count, sends, upgrades;
@@ -135,6 +140,9 @@ static void auth_reset(void) {
#ifdef HOST_ACCOUNTS
#include "account_settings_test.c"
#endif
#ifdef HOST_NETWORK
#include "network_settings_test.c"
#endif
int main(void) {
assert(store_tests() == 0); auth_reset();
@@ -291,6 +299,9 @@ int main(void) {
#endif
#ifdef HOST_ACCOUNTS
account_settings_tests();
#endif
#ifdef HOST_NETWORK
network_settings_tests();
#endif
return 0;
}