OpenDNSSEC-signer 1.2.1
|
#include "config.h"
#include "daemon/engine.h"
#include "parser/confparser.h"
#include "parser/zonelistparser.h"
#include "scheduler/task.h"
#include "signer/zone.h"
#include "signer/zonelist.h"
#include "util/file.h"
#include "util/log.h"
#include "util/se_malloc.h"
#include <ldns/ldns.h>
Go to the source code of this file.
Functions | |
zonelist_type * | zonelist_create (void) |
zonelist_type * | zonelist_read (const char *zonelistfile, time_t last_modified) |
void | zonelist_lock (zonelist_type *zonelist) |
void | zonelist_unlock (zonelist_type *zonelist) |
zone_type * | zonelist_lookup_zone_by_name (zonelist_type *zonelist, const char *name) |
zone_type * | zonelist_add_zone (zonelist_type *zonelist, zone_type *zone) |
void | zonelist_update (zonelist_type *zl, struct tasklist_struct *tl, const char *cmd, char *buf) |
void | zonelist_merge (zonelist_type *zl1, zonelist_type *zl2) |
void | zonelist_cleanup (zonelist_type *zonelist) |
zone_type* zonelist_add_zone | ( | zonelist_type * | zonelist, |
zone_type * | zone | ||
) |
Add zone.
Definition at line 239 of file zonelist.c.
References zone_struct::just_added, zone_struct::name, se_free(), se_log_assert, se_log_error(), se_log_warning(), zone_cleanup(), and zonelist_struct::zones.
Referenced by parse_zonelist_zones(), and zonelist_merge().
void zonelist_cleanup | ( | zonelist_type * | zonelist | ) |
Clean up a zonelist.
Definition at line 446 of file zonelist.c.
References se_free(), se_log_warning(), se_rbnode_free(), zone_cleanup(), and zonelist_struct::zones.
Referenced by engine_cleanup(), and parse_zonelist_zones().
zonelist_type* zonelist_create | ( | void | ) |
Create a new zone list.
Definition at line 76 of file zonelist.c.
References zonelist_struct::last_modified, se_malloc(), and zonelist_struct::zones.
Referenced by parse_zonelist_zones().
void zonelist_lock | ( | zonelist_type * | zonelist | ) |
Lock all zones in zone list.
Definition at line 131 of file zonelist.c.
References lock_basic_lock, se_log_assert, zone_struct::zone_lock, and zonelist_struct::zones.
Referenced by engine_update_zonelist().
zone_type* zonelist_lookup_zone_by_name | ( | zonelist_type * | zonelist, |
const char * | name | ||
) |
Lookup zone by name.
Definition at line 211 of file zonelist.c.
References zone_struct::name, se_log_assert, se_strcmp(), and zonelist_struct::zones.
void zonelist_merge | ( | zonelist_type * | zl1, |
zonelist_type * | zl2 | ||
) |
Merge zone lists.
Definition at line 360 of file zonelist.c.
References zonelist_struct::last_modified, lock_basic_lock, zone_struct::name, se_free(), se_log_assert, se_log_debug(), se_log_error(), se_rbnode_free(), zone_struct::tobe_removed, zone_struct::zone_lock, zone_update_zonelist(), zonelist_add_zone(), and zonelist_struct::zones.
Referenced by engine_update_zonelist().
zonelist_type* zonelist_read | ( | const char * | zonelistfile, |
time_t | last_modified | ||
) |
Read a zonelist file.
Definition at line 90 of file zonelist.c.
References zonelist_struct::last_modified, parse_file_check(), parse_zonelist_zones(), se_file_lastmodified(), se_log_assert, se_log_debug(), se_log_error(), and se_log_verbose().
Referenced by engine_update_zonelist().
void zonelist_unlock | ( | zonelist_type * | zonelist | ) |
Lock all zones in zone list.
Definition at line 153 of file zonelist.c.
References lock_basic_unlock, se_log_assert, zone_struct::zone_lock, and zonelist_struct::zones.
Referenced by engine_update_zonelist().
void zonelist_update | ( | zonelist_type * | zl, |
struct tasklist_struct * | tl, | ||
const char * | cmd, | ||
char * | buf | ||
) |
Update zone list.
Definition at line 298 of file zonelist.c.
References zone_struct::just_added, zone_struct::just_updated, lock_basic_unlock, zone_struct::name, zone_struct::notify_ns, se_log_debug(), set_notify_ns(), zone_struct::task, task_cleanup(), tasklist_delete_task(), zone_struct::tobe_removed, zone_struct::zone_lock, and zonelist_struct::zones.
Referenced by engine_update_zonelist().