EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
Data Structures | Macros | Functions
config.h File Reference

File containing the definition of the app configuration utilities. More...

#include <utarray.h>
#include "ap/ap_config.h"
#include "capture/capture_config.h"
#include "dhcp/dhcp_config.h"
#include "dns/dns_config.h"
#include "radius/radius_server.h"
#include "supervisor/supervisor_config.h"
#include "utils/allocs.h"
#include "utils/hashmap.h"
#include "utils/os.h"
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  app_config
 The App configuration structures. Used for configuring the networking services. More...
 

Macros

#define MAX_USER_SECRET   255
 
#define MAX_SALT_STRING_SIZE   255
 

Functions

int load_app_config (const char *filename, struct app_config *config)
 Load the app configuration. More...
 
void free_app_config (struct app_config *config)
 Frees the app configuration. More...
 
bool load_capture_config (const char *filename, struct capture_conf *config)
 Loads the capture config. More...
 
bool load_system_config (const char *filename, struct app_config *config)
 Loads the system config. More...
 
bool load_supervisor_config (const char *filename, struct app_config *config)
 Loads the supervisor config. More...
 
bool load_mdns_conf (const char *filename, struct app_config *config)
 Loads the mDNS config. More...
 
bool load_interface_list (const char *filename, struct app_config *config)
 Loads the list of interfaces. More...
 
bool load_ap_conf (const char *filename, struct app_config *config)
 Loads the AP config. More...
 

Detailed Description

File containing the definition of the app configuration utilities.

Author
Alexandru Mereacre
Date
2021

Macro Definition Documentation

◆ MAX_SALT_STRING_SIZE

#define MAX_SALT_STRING_SIZE   255

◆ MAX_USER_SECRET

#define MAX_USER_SECRET   255

Function Documentation

◆ free_app_config()

void free_app_config ( struct app_config config)

Frees the app configuration.

Parameters
configThe app configuration structure
Returns
true on success, false otherwise

◆ load_ap_conf()

bool load_ap_conf ( const char *  filename,
struct app_config config 
)

Loads the AP config.

Parameters
filenameThe app configuration file
configThe app configuration structure
Returns
true on success, false otherwise

◆ load_app_config()

int load_app_config ( const char *  filename,
struct app_config config 
)

Load the app configuration.

Parameters
filenameThe app configuration file
[in,out]configThe configuration structure to store config in. Must be cleaned up with free_app_config().
Returns
0 on success, -1 otherwise

◆ load_capture_config()

bool load_capture_config ( const char *  filename,
struct capture_conf config 
)

Loads the capture config.

Parameters
filenameThe app configuration file
configThe capture configuration structure
Returns
true on success, false otherwise

◆ load_interface_list()

bool load_interface_list ( const char *  filename,
struct app_config config 
)

Loads the list of interfaces.

Parameters
filenameThe app configuration file
configThe app configuration structure
Returns
true on success, false otherwise

◆ load_mdns_conf()

bool load_mdns_conf ( const char *  filename,
struct app_config config 
)

Loads the mDNS config.

Parameters
filenameThe app configuration file
configThe app configuration structure
Returns
true on success, false otherwise

◆ load_supervisor_config()

bool load_supervisor_config ( const char *  filename,
struct app_config config 
)

Loads the supervisor config.

Parameters
filenameThe app configuration file
configThe app configuration structure
Returns
true on success, false otherwise

◆ load_system_config()

bool load_system_config ( const char *  filename,
struct app_config config 
)

Loads the system config.

Parameters
filenameThe app configuration file
configThe app configuration structure
Returns
true on success, false otherwise