OpenDNSSEC-signer
1.4.7
|
#include "shared/allocator.h"
#include "shared/status.h"
#include <ldns/ldns.h>
#include <libhsm.h>
#include <libhsmdns.h>
Go to the source code of this file.
Data Structures | |
struct | key_struct |
struct | keylist_struct |
Typedefs | |
typedef struct key_struct | key_type |
typedef struct keylist_struct | keylist_type |
Functions | |
keylist_type * | keylist_create (void *sc) |
key_type * | keylist_lookup_by_locator (keylist_type *kl, const char *locator) |
key_type * | keylist_lookup_by_dnskey (keylist_type *kl, ldns_rr *dnskey) |
key_type * | keylist_push (keylist_type *kl, const char *locator, uint8_t algorithm, uint32_t flags, int publish, int ksk, int zsk) |
void | keylist_print (FILE *fd, keylist_type *kl) |
void | keylist_log (keylist_type *kl, const char *name) |
void | keylist_cleanup (keylist_type *kl) |
key_type * | key_recover2 (FILE *fd, keylist_type *kl) |
void | keylist_backup (FILE *fd, keylist_type *kl, const char *version) |
typedef struct key_struct key_type |
typedef struct keylist_struct keylist_type |
key_type* key_recover2 | ( | FILE * | fd, |
keylist_type * | kl | ||
) |
Recover key from backup.
[in] | fd | file descriptor of key backup file |
[in] | kl | key list to print |
Recover key from backup.
Definition at line 305 of file keys.c.
References backup_read_check_str(), backup_read_int(), backup_read_str(), backup_read_uint32_t(), backup_read_uint8_t(), keylist_push(), and ods_log_assert.
Referenced by zone_recover2().
void keylist_backup | ( | FILE * | fd, |
keylist_type * | kl, | ||
const char * | version | ||
) |
Backup key list.
[in] | fd | file descriptor |
[in] | kl | key list to print |
[in] | version | version string |
Backup key list.
Definition at line 344 of file keys.c.
References keylist_struct::count, and keylist_struct::keys.
Referenced by zone_backup2().
void keylist_cleanup | ( | keylist_type * | kl | ) |
Clean up key list.
[in] | kl | key list to clean up |
Clean up key list.
Definition at line 261 of file keys.c.
References signconf_struct::allocator, allocator_deallocate(), keylist_struct::count, keylist_struct::keys, and keylist_struct::sc.
Referenced by signconf_cleanup().
keylist_type* keylist_create | ( | void * | sc | ) |
Create a new key list.
[in] | sc | signer configuration reference |
Create a new key list.
Definition at line 47 of file keys.c.
References signconf_struct::allocator, allocator_alloc(), keylist_struct::count, keylist_struct::keys, ods_log_error(), and keylist_struct::sc.
Referenced by parse_sc_keys(), and zone_recover2().
void keylist_log | ( | keylist_type * | kl, |
const char * | name | ||
) |
Log key list.
[in] | kl | key list to print |
[in] | name | zone name |
Log key list.
Definition at line 225 of file keys.c.
References keylist_struct::count, and keylist_struct::keys.
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.
[in] | kl | key list |
[in] | dnskey | 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.
[in] | kl | key list |
[in] | locator | key 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().
void keylist_print | ( | FILE * | fd, |
keylist_type * | kl | ||
) |
Print key list.
[in] | fd | file descriptor |
[in] | kl | key list to print |
Print key list.
Definition at line 207 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 | ||
) |
Push a key to the keylist.
[in] | kl | key list |
[in] | locator | string that identifies location of key |
[in] | algorithm | DNSKEY algorithm field value |
[in] | flags | DNSKEY flags field value |
[in] | publish | if true, publish key as a DNSKEY |
[in] | ksk | if true, sign DNSKEY RRset with this key |
[in] | zsk | if true, sign all but DNSKEY RRset with this key |
Push a key to the key list.
Definition at line 118 of file keys.c.
References key_struct::algorithm, signconf_struct::allocator, allocator_alloc(), allocator_deallocate(), keylist_struct::count, key_struct::dnskey, key_struct::flags, key_struct::hsmkey, keylist_struct::keys, key_struct::ksk, key_struct::locator, ods_fatal_exit(), ods_log_assert, ods_log_debug(), key_struct::params, key_struct::publish, keylist_struct::sc, and key_struct::zsk.
Referenced by key_recover2(), and parse_sc_keys().