|
Data Structures |
struct | ldns_struct_key |
| general key structure, can contain all types of keys More...
|
struct | ldns_struct_key_list |
| same as rr_list, but now for keys More...
|
Defines |
#define | LDNS_KEY_ZONE_KEY 0x0100 |
#define | LDNS_KEY_SEP_KEY 0x0001 |
Typedefs |
typedef enum ldns_enum_algorithm | ldns_algorithm |
typedef enum ldns_enum_signing_algorithm | ldns_signing_algorithm |
typedef ldns_struct_key | ldns_key |
typedef ldns_struct_key_list | ldns_key_list |
Enumerations |
enum | ldns_enum_algorithm {
LDNS_RSAMD5 = 1,
LDNS_DH = 2,
LDNS_DSA = 3,
LDNS_ECC = 4,
LDNS_RSASHA1 = 5,
LDNS_INDIRECT = 252,
LDNS_PRIVATEDNS = 253,
LDNS_PRIVATEOID = 254
} |
| algorithms used in dns More...
|
enum | ldns_enum_signing_algorithm { LDNS_SIGN_RSAMD5 = LDNS_RSAMD5,
LDNS_SIGN_RSASHA1 = LDNS_RSASHA1,
LDNS_SIGN_DSA = LDNS_DSA,
LDNS_SIGN_HMACMD5 = 150
} |
| algorithms used in dns for signing More...
|
Functions |
ldns_key_list * | ldns_key_list_new () |
| creates a new empty key list
|
ldns_key * | ldns_key_new () |
| creates a new empty key structure
|
ldns_key * | ldns_key_new_frm_algorithm (ldns_signing_algorithm a, uint16_t size) |
| creates a new key based on the algorithm
|
ldns_key * | ldns_key_new_frm_fp (FILE *fp) |
| creates a new priv key based on the contents of the file pointed by fp
|
ldns_key * | ldns_key_new_frm_fp_l (FILE *fp, int *line_nr) |
| creates a new priv key based on the contents of the file pointed by fp
|
RSA * | ldns_key_new_frm_fp_rsa (FILE *fp) |
| frm_fp helper function.
|
RSA * | ldns_key_new_frm_fp_rsa_l (FILE *fp, int *line_nr) |
| frm_fp helper function.
|
DSA * | ldns_key_new_frm_fp_dsa (FILE *fp) |
| frm_fp helper function.
|
DSA * | ldns_key_new_frm_fp_dsa_l (FILE *fp, int *line_nr) |
| frm_fp helper function.
|
void | ldns_key_set_algorithm (ldns_key *k, ldns_signing_algorithm l) |
void | ldns_key_set_rsa_key (ldns_key *k, RSA *r) |
void | ldns_key_set_dsa_key (ldns_key *k, DSA *d) |
void | ldns_key_set_hmac_key (ldns_key *k, unsigned char *hmac) |
void | ldns_key_set_origttl (ldns_key *k, uint32_t t) |
void | ldns_key_set_inception (ldns_key *k, uint32_t i) |
void | ldns_key_set_expiration (ldns_key *k, uint32_t e) |
void | ldns_key_set_pubkey_owner (ldns_key *k, ldns_rdf *r) |
void | ldns_key_set_keytag (ldns_key *k, uint16_t tag) |
void | ldns_key_set_flags (ldns_key *k, uint16_t flags) |
void | ldns_key_list_set_key_count (ldns_key_list *key, size_t count) |
bool | ldns_key_list_push_key (ldns_key_list *key_list, ldns_key *key) |
| pushes a key to a keylist
|
size_t | ldns_key_list_key_count (ldns_key_list *key_list) |
| returns the number of keys in the key list
|
ldns_key * | ldns_key_list_key (ldns_key_list *key, size_t nr) |
| returns a pointer to the key in the list at the given position
|
RSA * | ldns_key_rsa_key (ldns_key *k) |
| returns the (openssl) RSA struct contained in the key
|
DSA * | ldns_key_dsa_key (ldns_key *k) |
| returns the (openssl) DSA struct contained in the key
|
ldns_signing_algorithm | ldns_key_algorithm (ldns_key *k) |
unsigned char * | ldns_key_hmac_key (ldns_key *k) |
uint32_t | ldns_key_origttl (ldns_key *k) |
uint32_t | ldns_key_inception (ldns_key *k) |
uint32_t | ldns_key_expiration (ldns_key *k) |
uint16_t | ldns_key_keytag (ldns_key *k) |
ldns_rdf * | ldns_key_pubkey_owner (ldns_key *k) |
uint16_t | ldns_key_flags (ldns_key *k) |
ldns_key * | ldns_key_list_pop_key (ldns_key_list *key_list) |
| pops the last rr from a keylist
|
ldns_rr * | ldns_key2rr (ldns_key *k) |
| converts a ldns_key to a public key rr
|
void | ldns_key_print (FILE *output, ldns_key *k) |
| print a private key to the file ouput
|
void | ldns_key_free (ldns_key *key) |
| frees a key structure
|
void | ldns_key_deep_free (ldns_key *key) |
| frees a key structure and all it's internal data
|
void | ldns_key_list_free (ldns_key_list *key_list) |
| Frees a key list structure.
|
Variables |
ldns_lookup_table | ldns_signing_algorithms [] |