Functions for managing firewall profiles. More...
#include <string.h>#include <unistd.h>#include <assert.h>#include <libxml/tree.h>#include <sqlite3.h>#include <eurephia_nullsafe.h>#include <eurephia_context.h>#include <eurephia_log.h>#include <eurephia_xml.h>#include <eurephia_values.h>#include <eurephiadb_session_struct.h>#include <eurephiadb_mapping.h>#include <passwd.h>#include "../sqlite.h"#include "../fieldmapping.h"
Include dependency graph for firewalladmin.c:Go to the source code of this file.
Functions | |
| xmlDoc * | fwadmin_search (eurephiaCTX *ctx, eDBfieldMap *fmap) |
| xmlDoc * | fwadmin_add (eurephiaCTX *ctx, eDBfieldMap *fmap) |
| xmlDoc * | fwadmin_delete (eurephiaCTX *ctx, eDBfieldMap *fmap) |
| xmlDoc * | eDBadminFirewallProfiles (eurephiaCTX *ctx, xmlDoc *xmlqry) |
Functions for managing firewall profiles.
Definition in file firewalladmin.c.
| xmlDoc* eDBadminFirewallProfiles | ( | eurephiaCTX * | ctx, | |
| xmlDoc * | xmlqry | |||
| ) |
Query or modify the firewall access profiles.
| ctx | eurephiaCTX | |
| xmlqry | XML document with the operation and information. |
The XML format skeleton
<eurephia format="1"> <firewall_profiles mode="{search|add|delete}"> <fieldMapping table="fwprofiles"> <{field name}>{search value}</{field name}> </fieldMapping> </firewall_profiles> </eurephia>
It can be several field name tags to narrow the search even more. For the add mode, the fw_profile field name tag must be present.
< Messages intended when debugging. Only for log level > 10
< The context is used via the eurephiadm console utility
< The context is used via a web based utility
< Alias for LOG_CRITICAL
< Operation failed and might have been aborted. Log level always 0
< Alias for LOG_CRITICAL
< Operation failed and might have been aborted. Log level always 0
< Alias for LOG_ERROR, in case it is not defined
< API errors but not sever, program can continue to run
< Alias for LOG_ERROR, in case it is not defined
< API errors but not sever, program can continue to run
< Alias for LOG_ERROR, in case it is not defined
< API errors but not sever, program can continue to run
Definition at line 245 of file firewalladmin.c.
Here is the call graph for this function:| xmlDoc* fwadmin_add | ( | eurephiaCTX * | ctx, | |
| eDBfieldMap * | fmap | |||
| ) |
Internal function. Registers a new firewall profile
| ctx | eurephiaCTX | |
| fmap | eDBfieldMap containing information about the new profile |
< Alias for LOG_FATAL
< Operation failed and cannot continue. Log level always < 2
Definition at line 153 of file firewalladmin.c.
Here is the call graph for this function:
Here is the caller graph for this function:| xmlDoc* fwadmin_delete | ( | eurephiaCTX * | ctx, | |
| eDBfieldMap * | fmap | |||
| ) |
Internal function. Deletes firewall profile(s) from the database
| ctx | eurephiaCTX | |
| fmap | eDBfieldMap containing information about the profile(s) to be deleted |
< Special field, should be used to indicate primary key of the table
< Alias for LOG_FATAL
< Operation failed and cannot continue. Log level always < 2
< Alias for LOG_FATAL
< Operation failed and cannot continue. Log level always < 2
< Alias for LOG_FATAL
< Operation failed and cannot continue. Log level always < 2
Definition at line 187 of file firewalladmin.c.
Here is the call graph for this function:
Here is the caller graph for this function:| xmlDoc* fwadmin_search | ( | eurephiaCTX * | ctx, | |
| eDBfieldMap * | fmap | |||
| ) |
Internal function. Queries the database for a list of user-certificate links
| ctx | eurephiaCTX | |
| fmap | eDBfieldMap containing the search criteria |
< Alias for LOG_ERROR, in case it is not defined
< API errors but not sever, program can continue to run
Definition at line 62 of file firewalladmin.c.
Here is the call graph for this function:
Here is the caller graph for this function:
1.7.1