#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "common.h"
#include "wpa.h"
#include "sha1.h"
#include "wpa_supplicant.h"
#include "eapol_sm.h"
#include "eap.h"
#include "l2_packet.h"
#include "config.h"
Include dependency graph for config.c:
Go to the source code of this file.
Defines | |
#define | OFFSET(v) ((void *) &((struct wpa_ssid *) 0)->v) |
#define | STR(f) |
#define | STR_LEN(f) STR(f), .param2 = OFFSET(f ## _len) |
#define | STR_RANGE(f, min, max) |
#define | INT(f) |
#define | INT_RANGE(f, min, max) |
#define | FUNC(f) |
#define | NUM_SSID_FIELDS (sizeof(ssid_fields) / sizeof(ssid_fields[0])) |
Functions | |
int | wpa_config_add_prio_network (struct wpa_config *config, struct wpa_ssid *ssid) |
Add a network to priority lists. | |
void | wpa_config_free_ssid (struct wpa_ssid *ssid) |
Free network/ssid configuration data. | |
void | wpa_config_free (struct wpa_config *config) |
Free configuration data. | |
int | wpa_config_allowed_eap_method (struct wpa_ssid *ssid, int method) |
Check whether EAP method is allowed. | |
wpa_ssid * | wpa_config_get_network (struct wpa_config *config, int id) |
Get configured network based on id. | |
wpa_ssid * | wpa_config_add_network (struct wpa_config *config) |
Add a new network with empty configuration. | |
int | wpa_config_remove_network (struct wpa_config *config, int id) |
Remove a configured network based on id. | |
void | wpa_config_set_network_defaults (struct wpa_ssid *ssid) |
Set network default values. | |
int | wpa_config_set (struct wpa_ssid *ssid, const char *var, const char *value, int line) |
Set a variable in network configuration. | |
char * | wpa_config_get (struct wpa_ssid *ssid, const char *var) |
Get a variable in network configuration. | |
void | wpa_config_update_psk (struct wpa_ssid *ssid) |
Update WPA PSK based on passphrase and SSID. | |
const struct wpa_config_blob * | wpa_config_get_blob (struct wpa_config *config, const char *name) |
Get a named configuration blob. | |
void | wpa_config_set_blob (struct wpa_config *config, struct wpa_config_blob *blob) |
Set or add a named configuration blob. | |
void | wpa_config_free_blob (struct wpa_config_blob *blob) |
Free blob data. | |
int | wpa_config_remove_blob (struct wpa_config *config, const char *name) |
Remove a named configuration blob. | |
wpa_config * | wpa_config_alloc_empty (const char *ctrl_interface, const char *driver_param) |
Allocate an empty configuration. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file config.c.
|
Value: .name = #f, .parser = wpa_config_parse_ ## f, \ .writer = wpa_config_write_ ## f |
|
Value: .name = #f, .parser = wpa_config_parse_int, \
.writer = wpa_config_write_int, \
.param1 = OFFSET(f), .param2 = (void *) 0
|
|
Value: INT(f), .param3 = (void *) (min), \ .param4 = (void *) (max) |
|
Value: .name = #f, .parser = wpa_config_parse_str, \ .writer = wpa_config_write_str, .param1 = OFFSET(f) |
|
Value: STR_LEN(f), .param3 = (void *) (min), \ .param4 = (void *) (max) |
|
Add a new network with empty configuration.
|
|
Add a network to priority lists.
|
|
Allocate an empty configuration.
|
|
Check whether EAP method is allowed.
|
|
Free configuration data.
Definition at line 1215 of file config.c. Here is the call graph for this function: |
|
Free blob data.
|
|
Free network/ssid configuration data.
|
|
Get a variable in network configuration.
|
|
Get a named configuration blob.
|
|
Get configured network based on id.
|
|
Remove a named configuration blob.
Definition at line 1534 of file config.c. Here is the call graph for this function: |
|
Remove a configured network based on id.
Definition at line 1334 of file config.c. Here is the call graph for this function: |
|
Set a variable in network configuration.
Definition at line 1390 of file config.c. Here is the call graph for this function: |
|
Set or add a named configuration blob.
Definition at line 1503 of file config.c. Here is the call graph for this function: |
|
Set network default values.
|
|
Update WPA PSK based on passphrase and SSID.
Definition at line 1462 of file config.c. Here is the call graph for this function: |