OpenDNSSEC-signer  1.3.9
Functions
keys.c File Reference
#include "shared/allocator.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/status.h"
#include "signer/backup.h"
#include "signer/keys.h"
Include dependency graph for keys.c:

Go to the source code of this file.

Functions

key_typekey_create (allocator_type *allocator, const char *locator, uint8_t algorithm, uint32_t flags, int publish, int ksk, int zsk)
key_typekey_recover (FILE *fd, allocator_type *allocator)
keylist_typekeylist_create (allocator_type *allocator)
ods_status keylist_push (keylist_type *kl, key_type *key)
key_typekeylist_lookup (keylist_type *list, const char *locator)
key_typekeylist_lookup_by_dnskey (keylist_type *list, ldns_rr *dnskey)
void keylist_print (FILE *fd, keylist_type *kl)
void keylist_backup (FILE *fd, keylist_type *kl)
void keylist_log (keylist_type *kl, const char *name)
void keylist_cleanup (keylist_type *kl)

Function Documentation

key_type* key_create ( allocator_type allocator,
const char *  locator,
uint8_t  algorithm,
uint32_t  flags,
int  publish,
int  ksk,
int  zsk 
)
key_type* key_recover ( FILE *  fd,
allocator_type allocator 
)
void keylist_backup ( FILE *  fd,
keylist_type kl 
)

Backup key list.

Definition at line 408 of file keys.c.

References keylist_struct::first_key, and key_struct::next.

Referenced by zone_backup().

void keylist_cleanup ( keylist_type kl)

Clean up key list.

Definition at line 482 of file keys.c.

References keylist_struct::allocator, allocator_deallocate(), keylist_struct::first_key, and key_struct::next.

Referenced by signconf_cleanup().

keylist_type* keylist_create ( allocator_type allocator)
void keylist_log ( keylist_type kl,
const char *  name 
)

Log key list.

Definition at line 431 of file keys.c.

References keylist_struct::first_key, and key_struct::next.

Referenced by signconf_log().

key_type* keylist_lookup ( keylist_type list,
const char *  locator 
)

Lookup a key in the key list by locator.

Definition at line 330 of file keys.c.

References keylist_struct::count, keylist_struct::first_key, key_struct::locator, key_struct::next, and ods_strcmp().

Referenced by parse_sc_keys(), and signconf_compare_keys().

key_type* keylist_lookup_by_dnskey ( keylist_type list,
ldns_rr *  dnskey 
)

Lookup a key in the key list by dnskey.

Definition at line 359 of file keys.c.

References keylist_struct::count, key_struct::dnskey, keylist_struct::first_key, and key_struct::next.

Referenced by rrset_diff().

void keylist_print ( FILE *  fd,
keylist_type kl 
)

Print key list.

Definition at line 388 of file keys.c.

References keylist_struct::first_key, and key_struct::next.

Referenced by signconf_print().

ods_status keylist_push ( keylist_type kl,
key_type key 
)