Data Structures | Typedefs | Functions

/build/buildd-opendnssec_1.3.2-1~bpo60+1-sparc-g2IJWF/opendnssec-1.3.2/signer/src/signer/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] rrsigs signature set
[in] rr RRSIG record
[in] l key locator
[in] f key 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(), 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] fd file descriptor
[in] rrsigs signature set to be printed
[in] print_key if 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().