OpenDNSSEC-signer
1.4.8.2
|
#include "config.h"
#include "adapter/adapi.h"
#include "adapter/adapter.h"
#include "adapter/adfile.h"
#include "adapter/adutil.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/status.h"
#include "shared/util.h"
#include "signer/zone.h"
#include <ldns/ldns.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
ods_status | adfile_read (void *zone) |
ods_status | adfile_write (void *zone, const char *filename) |
ods_status adfile_read | ( | void * | zone | ) |
Read zone from zonefile.
Definition at line 298 of file adfile.c.
References adapi_trans_full(), zone_struct::adinbound, adapter_struct::configstr, ods_fclose(), ods_fopen(), ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, and ODS_STATUS_OK.
Referenced by adapter_read().
ods_status adfile_write | ( | void * | zone, |
const char * | filename | ||
) |
Write zonefile.
Definition at line 326 of file adfile.c.
References adapi_printzone(), zone_struct::adoutbound, adapter_struct::error, zone_struct::name, ods_build_path(), ods_fclose(), ods_fopen(), ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, ODS_STATUS_FWRITE_ERR, ODS_STATUS_MALLOC_ERR, ODS_STATUS_OK, and ODS_STATUS_RENAME_ERR.
Referenced by adapter_write().