OpenDNSSEC-enforcer
2.0.2
|
Go to the source code of this file.
Macros | |
#define | POLICY_IMPORT_OK 0 |
#define | POLICY_IMPORT_ERR_ARGS 1 |
#define | POLICY_IMPORT_ERR_XML 2 |
#define | POLICY_IMPORT_ERR_DATABASE 3 |
#define | POLICY_IMPORT_ERR_MEMORY 4 |
Functions | |
int | policy_import (int sockfd, engine_type *engine, db_connection_t *dbconn, int do_delete) |
#define POLICY_IMPORT_ERR_ARGS 1 |
Indicates an error with the arguments provided to policy_import().
Definition at line 42 of file policy_import.h.
Referenced by policy_import().
#define POLICY_IMPORT_ERR_DATABASE 3 |
Indicates an error with the database like reading, updating or creating.
Definition at line 50 of file policy_import.h.
Referenced by policy_import().
#define POLICY_IMPORT_ERR_MEMORY 4 |
Indicates a memory allocation error or generic internal error.
Definition at line 54 of file policy_import.h.
Referenced by policy_import().
#define POLICY_IMPORT_ERR_XML 2 |
Indicates an error with the KASP XML like parsing, validating or content.
Definition at line 46 of file policy_import.h.
#define POLICY_IMPORT_OK 0 |
Indicates a successful policy import.
Definition at line 38 of file policy_import.h.
int policy_import | ( | int | sockfd, |
engine_type * | engine, | ||
db_connection_t * | dbconn, | ||
int | do_delete | ||
) |
Definition at line 196 of file policy_import.c.
References engine_struct::config, __policy_import_policy::name, __policy_import_policy::next, engineconfig_struct::policy_filename, POLICY_IMPORT_ERR_ARGS, POLICY_IMPORT_ERR_DATABASE, POLICY_IMPORT_ERR_MEMORY, __policy_import_policy_key::policy_key, policy_list_free(), policy_list_new_get(), policy_list_next(), policy_name(), and engineconfig_struct::repositories.