OpenDNSSEC-signer 2.1.13
|
#include "config.h"
#include <stdio.h>
#include "adapter/addns.h"
#include "adapter/adfile.h"
#include "status.h"
#include "signer/zone.h"
Go to the source code of this file.
Data Structures | |
struct | adapter_struct |
Typedefs | |
typedef enum adapter_mode_enum | adapter_mode |
typedef struct adapter_struct | adapter_type |
Enumerations | |
enum | adapter_mode_enum { ADAPTER_FILE = 1 , ADAPTER_DNS } |
Functions | |
adapter_type * | adapter_create (const char *str, adapter_mode type, unsigned in) |
ods_status | adapter_load_config (adapter_type *adapter) |
int | adapter_compare (adapter_type *a1, adapter_type *a2) |
ods_status | adapter_read (zone_type *zone) |
ods_status | adapter_write (zone_type *zone) |
void | adapter_cleanup (adapter_type *adapter) |
typedef enum adapter_mode_enum adapter_mode |
typedef struct adapter_struct adapter_type |
enum adapter_mode_enum |
|
extern |
Clean up adapter.
[in] | adapter | adapter to cleanup |
Clean up adapter.
Definition at line 234 of file adapter.c.
References ADAPTER_DNS, ADAPTER_FILE, adapter_struct::config, adapter_struct::configstr, dnsin_cleanup(), dnsout_cleanup(), adapter_struct::inbound, and adapter_struct::type.
Referenced by adapter_create(), and zone_cleanup().
|
extern |
Compare adapters.
[in] | a1 | adapter 1 |
[in] | a2 | adapter 2 |
Compare adapters.
Definition at line 212 of file adapter.c.
References adapter_struct::configstr, adapter_struct::inbound, and adapter_struct::type.
Referenced by zone_merge().
|
extern |
Create new adapter.
[in] | str | configuration string |
[in] | type | type of adapter |
[in] | in | inbound or not (thus outbound) |
Create a new adapter.
Definition at line 48 of file adapter.c.
References adapter_cleanup(), ADAPTER_DNS, ADAPTER_FILE, adapter_struct::config, adapter_struct::config_last_modified, adapter_struct::configstr, dnsin_create(), dnsout_create(), adapter_struct::error, adapter_struct::inbound, and adapter_struct::type.
|
extern |
Load configuration.
[in] | adapter | adapter |
Load ACL.
Definition at line 99 of file adapter.c.
References ADAPTER_DNS, ADAPTER_FILE, adapter_struct::config, adapter_struct::config_last_modified, adapter_struct::configstr, dnsin_update(), dnsout_update(), adapter_struct::inbound, and adapter_struct::type.
Referenced by engine_update_zones().
|
extern |
Read zone from input adapter.
[in] | zone | zone |
Definition at line 147 of file adapter.c.
References ADAPTER_DNS, ADAPTER_FILE, addns_read(), adfile_read(), zone_struct::adinbound, adapter_struct::configstr, zone_struct::name, and adapter_struct::type.
Referenced by tools_input().
|
extern |
Write zone to output adapter.
[in] | zone | zone |
Write zone to output adapter.
Definition at line 179 of file adapter.c.
References ADAPTER_DNS, ADAPTER_FILE, addns_write(), adfile_write(), zone_struct::adoutbound, adapter_struct::configstr, zone_struct::db, namedb_struct::intserial, zone_struct::name, and adapter_struct::type.
Referenced by tools_output().