ldns_struct_key Struct Reference

General key structure, can contain all types of keys that are used in DNSSEC. More...


Data Fields

ldns_signing_algorithm _alg
struct {
   RSA *   rsa
   DSA *   dsa
   struct {
      unsigned char *   key
      size_t   size
   }   hmac
_key
union {
   struct {
      uint32_t   orig_ttl
 The TTL of the rrset that is currently signed.
      uint32_t   inception
 The inception date of signatures made with this key.
      uint32_t   expiration
 The expiration date of signatures made with this key.
      uint16_t   keytag
 The keytag of this key.
      uint16_t   flags
 The dnssec key flags as specified in RFC4035, like ZSK and KSK.
   }   dnssec
_extra
ldns_rdf_pubkey_owner
 Owner name of the key.


Detailed Description

General key structure, can contain all types of keys that are used in DNSSEC.

Mostly used to store private keys, since public keys can also be stored in a ldns_rr with type LDNS_RR_TYPE_DNSKEY.

This structure can also store some variables that influence the signatures generated by signing with this key, for instance the inception date.

Definition at line 83 of file keys.h.


Field Documentation

ldns_signing_algorithm ldns_struct_key::_alg

Definition at line 84 of file keys.h.

RSA* ldns_struct_key::rsa

Definition at line 89 of file keys.h.

DSA* ldns_struct_key::dsa

Definition at line 90 of file keys.h.

unsigned char* ldns_struct_key::key

Definition at line 93 of file keys.h.

size_t ldns_struct_key::size

Definition at line 94 of file keys.h.

struct { ... } ldns_struct_key::hmac

struct { ... } ldns_struct_key::_key

uint32_t ldns_struct_key::orig_ttl

The TTL of the rrset that is currently signed.

Definition at line 102 of file keys.h.

uint32_t ldns_struct_key::inception

The inception date of signatures made with this key.

Definition at line 104 of file keys.h.

uint32_t ldns_struct_key::expiration

The expiration date of signatures made with this key.

Definition at line 106 of file keys.h.

uint16_t ldns_struct_key::keytag

The keytag of this key.

Definition at line 108 of file keys.h.

uint16_t ldns_struct_key::flags

The dnssec key flags as specified in RFC4035, like ZSK and KSK.

Definition at line 110 of file keys.h.

struct { ... } ldns_struct_key::dnssec

union { ... } ldns_struct_key::_extra

ldns_rdf* ldns_struct_key::_pubkey_owner

Owner name of the key.

Definition at line 114 of file keys.h.


Generated on Wed Feb 20 06:40:46 2008 for ldns by  doxygen 1.5.4