unbound: testcode/signit.c File Reference

unbound 0.1

Data Structures | Macros | Functions
signit.c File Reference

This program signs rrsets with the given keys. More...

`#include "config.h"`
`#include <ldns/ldns.h>`
`#include <assert.h>`

## Data Structures
struct | keysets
| Key settings. More...

## Macros
#define | DNSKEY_BIT_ZSK 0x0100

## Functions
static void | usage (void)
| print usage and exit
static time_t | convert_timeval (const char *str)
static void | fatal_exit (const char *format,...)
static void | parse_cmdline (char *argv[], struct keysets *s)
| read expi ince keytag owner from cmdline
static ldns_key_list * | read_keys (int num, char *names[], struct keysets *set)
| read all key files, exit on error
static ldns_rr_list * | read_rrs (FILE *in)
| read list of rrs from the file
static void | signit (ldns_rr_list *rrs, ldns_key_list *keys)
| sign the rrs with the keys
static void | process_keys (int argc, char *argv[])
| process keys and signit
static void | process_nsec3 (int argc, char *argv[])
| process nsec3 params and perform hashing
int | main (int argc, char *argv[])
| main program

## Detailed Description

This program signs rrsets with the given keys.

It can be used to construct input to test the validator with.