OpenDNSSEC-signer  1.3.9
Data Structures | Typedefs | Functions
rrsigs.h File Reference
#include "config.h"
#include "shared/allocator.h"
#include "signer/keys.h"
#include <ldns/ldns.h>
Include dependency graph for rrsigs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rrsigs_struct

Typedefs

typedef struct rrsigs_struct rrsigs_type

Functions

rrsigs_typerrsigs_create (void)
ods_status rrsigs_add_sig (rrsigs_type *rrsigs, ldns_rr *rr, const char *l, uint32_t f)
void rrsigs_cleanup (rrsigs_type *rrsigs)
void rrsigs_print (FILE *fd, rrsigs_type *rrsigs, int print_key)

Typedef Documentation

typedef struct rrsigs_struct rrsigs_type

Signatures.

Definition at line 43 of file rrsigs.h.

Function Documentation

ods_status rrsigs_add_sig ( rrsigs_type rrsigs,
ldns_rr *  rr,
const char *  l,
uint32_t  f 
)

Add RRSIG to signature set.

Parameters
[in]rrsigssignature set
[in]rrRRSIG record
[in]lkey locator
[in]fkey flags
Returns
ods_status status

Add RRSIG to signature set.

Definition at line 88 of file rrsigs.c.

References rrsigs_struct::allocator, allocator_strdup(), rrsigs_struct::key_flags, rrsigs_struct::key_locator, rrsigs_struct::next, ods_log_assert, ods_log_error(), ods_log_warning(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, ODS_STATUS_UNCHANGED, rrsigs_struct::rr, rrsigs_add_sig(), rrsigs_create(), and util_dnssec_rrs_compare().

Referenced by rrset_recover(), rrset_sign(), and rrsigs_add_sig().

void rrsigs_cleanup ( rrsigs_type rrsigs)
rrsigs_type* rrsigs_create ( void  )

Create new signature set.

Returns
rrsigs_type* new RRSIGS set

Create new signature set.

Definition at line 52 of file rrsigs.c.

References rrsigs_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), rrsigs_struct::key_flags, rrsigs_struct::key_locator, rrsigs_struct::next, ods_log_assert, ods_log_error(), and rrsigs_struct::rr.

Referenced by rrset_recover(), rrset_sign(), and rrsigs_add_sig().

void rrsigs_print ( FILE *  fd,
rrsigs_type rrsigs,
int  print_key 
)

Print signature set.

Parameters
[in]fdfile descriptor
[in]rrsigssignature set to be printed
[in]print_keyif key credentials should be printed

Print signature set.

Definition at line 191 of file rrsigs.c.

References rrsigs_struct::key_flags, rrsigs_struct::key_locator, rrsigs_struct::next, ods_log_assert, ods_log_error(), and rrsigs_struct::rr.

Referenced by rrset_backup(), and rrset_print().