|
OpenDNSSEC-enforcer
2.1.3
|
#include "daemon/engine.h"#include "db/db_connection.h"#include "db/zone_db.h"#include "db/policy.h"Go to the source code of this file.
Macros | |
| #define | SIGNCONF_EXPORT_OK 0 |
| #define | SIGNCONF_EXPORT_ERR_ARGS 1 |
| #define | SIGNCONF_EXPORT_ERR_XML 2 |
| #define | SIGNCONF_EXPORT_ERR_DATABASE 3 |
| #define | SIGNCONF_EXPORT_ERR_MEMORY 4 |
| #define | SIGNCONF_EXPORT_ERR_FILE 5 |
| #define | SIGNCONF_EXPORT_NO_CHANGE 6 |
Functions | |
| int | signconf_export_all (int sockfd, const db_connection_t *connection, int force) |
| int | signconf_export_zone (char const *zonename, db_connection_t *dbconn) |
| int | signconf_export_policy (int sockfd, const db_connection_t *connection, const policy_t *policy, int force) |
| #define SIGNCONF_EXPORT_ERR_ARGS 1 |
Indicates an error with the arguments provided to signconf_export*().
Definition at line 44 of file signconf_xml.h.
| #define SIGNCONF_EXPORT_ERR_DATABASE 3 |
Indicates an error with the database like reading, updating or creating.
Definition at line 52 of file signconf_xml.h.
Referenced by signconf_export_zone().
| #define SIGNCONF_EXPORT_ERR_FILE 5 |
Indicates an error when handing files.
Definition at line 60 of file signconf_xml.h.
| #define SIGNCONF_EXPORT_ERR_MEMORY 4 |
Indicates a memory allocation error or generic internal error.
Definition at line 56 of file signconf_xml.h.
| #define SIGNCONF_EXPORT_ERR_XML 2 |
Indicates an error with the signconf XML like parsing, validating or content.
Definition at line 48 of file signconf_xml.h.
| #define SIGNCONF_EXPORT_NO_CHANGE 6 |
Indicates that the operation was successful but no changes where made.
Definition at line 64 of file signconf_xml.h.
| #define SIGNCONF_EXPORT_OK 0 |
Indicates a successful signconf export.
Definition at line 40 of file signconf_xml.h.
| int signconf_export_all | ( | int | sockfd, |
| const db_connection_t * | connection, | ||
| int | force | ||
| ) |
Export the signconf XML for all zones.
| [in] | sockfd | a socket fd. |
| [in] | connection | a db_connection_t pointer. |
| [in] | force | if non-zero it will force the export for all zones even if there are no updates for the zones. |
Definition at line 84 of file signconf_xml.c.
| int signconf_export_policy | ( | int | sockfd, |
| const db_connection_t * | connection, | ||
| const policy_t * | policy, | ||
| int | force | ||
| ) |
Export the signconf XML for all zones that uses a specified policy.
| [in] | sockfd | a socket fd. |
| [in] | connection | a db_connection_t pointer. |
| [in] | policy | a policy_t pointer. |
| [in] | force | if non-zero it will force the export for all zones even if there are no updates for the zones. |
| int signconf_export_zone | ( | char const * | zonename, |
| db_connection_t * | dbconn | ||
| ) |
Export the signconf XML for zone.
| [in] | zonename | Name of zone to write signconf for. |
| [in] | dbconn | a db_connection_t pointer. |
Definition at line 57 of file signconf_xml.c.
References SIGNCONF_EXPORT_ERR_DATABASE, zone_db_free(), zone_db_get_policy(), and zone_db_new_get_by_name().
1.8.13