OpenDNSSEC-enforcer  2.0.2
Functions
zone_ext.h File Reference
#include "key_data.h"
#include "key_dependency.h"
#include <libxml/tree.h>

Go to the source code of this file.

Functions

key_data_list_tzone_get_keys (const zone_t *zone)
 
key_dependency_list_tzone_get_key_dependencies (const zone_t *zone)
 
int zone_create_from_xml (zone_t *zone, xmlNodePtr zone_node)
 
int zone_update_from_xml (zone_t *zone, xmlNodePtr zone_node, int *updated)
 

Function Documentation

§ zone_create_from_xml()

int zone_create_from_xml ( zone_t zone,
xmlNodePtr  zone_node 
)

Create a zone object from XML.

Parameters
[in]zonea zone_t object being created.
[in]zone_nodea xmlNodePtr to the XML for the zone.
Returns
DB_ERROR_* on failure, otherwise DB_OK.

Definition at line 514 of file zone_ext.c.

References DB_ERROR_UNKNOWN.

Referenced by zonelist_import().

§ zone_get_key_dependencies()

key_dependency_list_t* zone_get_key_dependencies ( const zone_t zone)

Get a list of key dependencies for an enforcer zone object.

Parameters
[in]zonean zone_t pointer.
Returns
a key_dependency_list_t pointer or NULL on error.

Definition at line 58 of file zone_ext.c.

References db_object_connection(), db_value_not_empty(), zone::dbo, zone::id, and key_dependency_list_new_get_by_zone_id().

Referenced by removeDeadKeysNow().

§ zone_get_keys()

key_data_list_t* zone_get_keys ( const zone_t zone)

Get a list of keys for an enforcer zone object.

Parameters
[in]zonean zone_t pointer.
Returns
a key_data_list_t pointer or NULL on error.

Definition at line 38 of file zone_ext.c.

References db_object_connection(), db_value_not_empty(), zone::dbo, zone::id, and key_data_list_new_get_by_zone_id().

§ zone_update_from_xml()

int zone_update_from_xml ( zone_t zone,
xmlNodePtr  zone_node,
int *  updated 
)

Update a zone object from XML.

Parameters
[in]zonea zone_t object being updated.
[in]zone_nodea xmlNodePtr to the XML for the zone.
[out]updatedan integer pointer that will be set to non-zero if any values in the zone was updated.
Returns
DB_ERROR_* on failure, otherwise DB_OK.

Definition at line 525 of file zone_ext.c.

References DB_ERROR_UNKNOWN.