OpenDNSSEC-signer
1.4.1
|
#include "config.h"
#include "adapter/adapi.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/backup.h"
#include "signer/zone.h"
#include <ldns/ldns.h>
Go to the source code of this file.
Functions | |
char * | backup_read_token (FILE *in) |
int | backup_read_check_str (FILE *in, const char *str) |
int | backup_read_str (FILE *in, const char **str) |
int | backup_read_time_t (FILE *in, time_t *v) |
int | backup_read_duration (FILE *in, duration_type **v) |
int | backup_read_rr_type (FILE *in, ldns_rr_type *v) |
int | backup_read_int (FILE *in, int *v) |
int | backup_read_size_t (FILE *in, size_t *v) |
int | backup_read_uint8_t (FILE *in, uint8_t *v) |
int | backup_read_uint16_t (FILE *in, uint16_t *v) |
int | backup_read_uint32_t (FILE *in, uint32_t *v) |
ods_status | backup_read_namedb (FILE *in, void *zone) |
ods_status | backup_read_ixfr (FILE *in, void *zone) |
int backup_read_check_str | ( | FILE * | in, |
const char * | str | ||
) |
Read and match a string from backup file.
Definition at line 79 of file backup.c.
References backup_read_token(), ods_log_debug(), and ods_strcmp().
Referenced by key_recover2(), and zone_recover2().
int backup_read_duration | ( | FILE * | in, |
duration_type ** | v | ||
) |
Read duration from backup file.
Definition at line 133 of file backup.c.
References backup_read_token(), duration_create_from_string(), and ods_log_debug().
Referenced by zone_recover2().
int backup_read_int | ( | FILE * | in, |
int * | v | ||
) |
Read integer from backup file.
Definition at line 167 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by key_recover2(), and zone_recover2().
ods_status backup_read_ixfr | ( | FILE * | in, |
void * | zone | ||
) |
Read ixfr journal from file.
Definition at line 522 of file backup.c.
References adapi_get_origin(), zone_struct::db, zone_struct::ixfr, ixfr_add_rr(), ixfr_del_rr(), ixfr_struct::ixfr_lock, ixfr_purge(), lock_basic_lock, lock_basic_unlock, ods_log_assert, ods_log_debug(), ods_log_error(), ODS_STATUS_ERR, ODS_STATUS_OK, namedb_struct::outserial, SE_ADFILE_MAXLINE, and SE_SOA_RDATA_SERIAL.
Referenced by zone_recover2().
ods_status backup_read_namedb | ( | FILE * | in, |
void * | zone | ||
) |
Read namedb from backup file.
Definition at line 330 of file backup.c.
References adapi_add_rr(), adapi_get_origin(), zone_struct::db, denial_add_rr(), zone_struct::name, namedb_diff(), namedb_lookup_denial(), rrset_struct::needs_signing, ods_log_assert, ods_log_debug(), ods_log_error(), ODS_STATUS_ERR, ODS_STATUS_OK, ODS_STATUS_UNCHANGED, denial_struct::rrset, rrset_add_rrsig(), SE_ADFILE_MAXLINE, and zone_lookup_rrset().
Referenced by zone_recover2().
int backup_read_rr_type | ( | FILE * | in, |
ldns_rr_type * | v | ||
) |
Read rr type from backup file.
Definition at line 150 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by zone_recover2().
int backup_read_size_t | ( | FILE * | in, |
size_t * | v | ||
) |
Read size type from backup file.
Definition at line 184 of file backup.c.
References backup_read_token(), and ods_log_debug().
int backup_read_str | ( | FILE * | in, |
const char ** | str | ||
) |
Read a string from backup file.
Definition at line 99 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by key_recover2(), and zone_recover2().
int backup_read_time_t | ( | FILE * | in, |
time_t * | v | ||
) |
Read time from backup file.
Definition at line 116 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by zone_recover2().
char* backup_read_token | ( | FILE * | in | ) |
Read token from backup file.
Definition at line 55 of file backup.c.
Referenced by backup_read_check_str(), backup_read_duration(), backup_read_int(), backup_read_rr_type(), backup_read_size_t(), backup_read_str(), backup_read_time_t(), backup_read_uint16_t(), backup_read_uint32_t(), and backup_read_uint8_t().
int backup_read_uint16_t | ( | FILE * | in, |
uint16_t * | v | ||
) |
Read 16bit unsigned integer from backup file.
Definition at line 218 of file backup.c.
References backup_read_token(), and ods_log_debug().
int backup_read_uint32_t | ( | FILE * | in, |
uint32_t * | v | ||
) |
Read 32bit unsigned integer from backup file.
Definition at line 235 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by key_recover2(), and zone_recover2().
int backup_read_uint8_t | ( | FILE * | in, |
uint8_t * | v | ||
) |
Read 8bit unsigned integer from backup file.
Definition at line 201 of file backup.c.
References backup_read_token(), and ods_log_debug().
Referenced by key_recover2().