Find room to store key-id and digest-type in DS records.

->uid is now overloaded to store key length
This commit is contained in:
Simon Kelley committed 2012-04-27 10:30:49 +01:00
1 parent 7b4ad2eb34
commit cdbee9a40b
2 files changed
+19 -7

No files matched your search

+6 -4
View File
@@ -305,8 +305,7 @@ struct keydata {
struct crec {
struct crec *next, *prev, *hash_next;
time_t ttd; /* time to die */
int uid;
/* union is 16 bytes when doing IPv6, 8 bytes on 32 bit machines without IPv6 */
union {
struct all_addr addr;
struct {
@@ -316,10 +315,13 @@ struct crec {
struct {
struct keydata *keydata;
unsigned char algo;
unsigned char flags;
unsigned short keylen;
unsigned char digest; /* DS only */
unsigned short flags_or_keyid; /* flags for DNSKEY, keyid for DS */
} key;
} addr;
time_t ttd; /* time to die */
/* used as keylen if F_DS or F_DNSKEY, index to source for F_HOSTS */
int uid;
unsigned short flags;
union {
char sname[SMALLDNAME];