OpenDNSSEC-signer  1.4.8.2
Functions
keys.c File Reference
#include "shared/file.h"
#include "shared/log.h"
#include "shared/util.h"
#include "signer/backup.h"
#include "signer/keys.h"
#include "signer/signconf.h"
Include dependency graph for keys.c:

Go to the source code of this file.

Functions

keylist_typekeylist_create (void *sc)
 
key_typekeylist_lookup_by_locator (keylist_type *kl, const char *locator)
 
key_typekeylist_lookup_by_dnskey (keylist_type *kl, ldns_rr *dnskey)
 
key_typekeylist_push (keylist_type *kl, const char *locator, uint8_t algorithm, uint32_t flags, int publish, int ksk, int zsk, int rfc5011)
 
void keylist_print (FILE *fd, keylist_type *kl)
 
void keylist_log (keylist_type *kl, const char *name)
 
void keylist_cleanup (keylist_type *kl)
 
key_typekey_recover2 (FILE *fd, keylist_type *kl)
 
void keylist_backup (FILE *fd, keylist_type *kl, const char *version)
 

Function Documentation

key_type* key_recover2 ( FILE *  fd,
keylist_type kl 
)
void keylist_backup ( FILE *  fd,
keylist_type kl,
const char *  version 
)

Backup key list.

Definition at line 353 of file keys.c.

References keylist_struct::count, and keylist_struct::keys.

Referenced by zone_backup2().

void keylist_cleanup ( keylist_type kl)
keylist_type* keylist_create ( void *  sc)
void keylist_log ( keylist_type kl,
const char *  name 
)

Log key list.

Definition at line 230 of file keys.c.

References keylist_struct::count, key_struct::hsmkey, keylist_struct::keys, key_struct::locator, and key_struct::params.

Referenced by signconf_log().

key_type* keylist_lookup_by_dnskey ( keylist_type kl,
ldns_rr *  dnskey 
)

Lookup a key in the key list by dnskey.

Definition at line 96 of file keys.c.

References keylist_struct::count, key_struct::dnskey, and keylist_struct::keys.

key_type* keylist_lookup_by_locator ( keylist_type kl,
const char *  locator 
)

Lookup a key in the key list by locator.

Definition at line 74 of file keys.c.

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

Referenced by parse_sc_keys(), and rrset_del_rrsig().

void keylist_print ( FILE *  fd,
keylist_type kl 
)

Print key list.

Definition at line 212 of file keys.c.

References keylist_struct::count, and keylist_struct::keys.

Referenced by signconf_print().

key_type* keylist_push ( keylist_type kl,
const char *  locator,
uint8_t  algorithm,
uint32_t  flags,
int  publish,
int  ksk,
int  zsk,
int  rfc5011 
)