add key,sig,cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8461 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -56,8 +56,9 @@
|
|||||||
#ifndef T_NAPTR
|
#ifndef T_NAPTR
|
||||||
#define T_NAPTR 35
|
#define T_NAPTR 35
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef T_CERT
|
||||||
|
#define T_CERT 37
|
||||||
|
#endif
|
||||||
|
|
||||||
struct dns_query{
|
struct dns_query{
|
||||||
char *domain;
|
char *domain;
|
||||||
@@ -77,6 +78,35 @@ struct srv_record{
|
|||||||
char target[1];
|
char target[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct key_record {
|
||||||
|
unsigned flags;
|
||||||
|
unsigned protocol;
|
||||||
|
unsigned algorithm;
|
||||||
|
size_t key_len;
|
||||||
|
u_char key_data[1];
|
||||||
|
};
|
||||||
|
|
||||||
|
struct sig_record {
|
||||||
|
unsigned type;
|
||||||
|
unsigned algorithm;
|
||||||
|
unsigned labels;
|
||||||
|
unsigned orig_ttl;
|
||||||
|
unsigned sig_expiration;
|
||||||
|
unsigned sig_inception;
|
||||||
|
unsigned key_tag;
|
||||||
|
char *signer;
|
||||||
|
unsigned sig_len;
|
||||||
|
u_char sig_data[1]; /* also includes signer */
|
||||||
|
};
|
||||||
|
|
||||||
|
struct cert_record {
|
||||||
|
unsigned type;
|
||||||
|
unsigned tag;
|
||||||
|
unsigned algorithm;
|
||||||
|
size_t cert_len;
|
||||||
|
u_char cert_data[1];
|
||||||
|
};
|
||||||
|
|
||||||
struct resource_record{
|
struct resource_record{
|
||||||
char *domain;
|
char *domain;
|
||||||
unsigned type;
|
unsigned type;
|
||||||
@@ -90,6 +120,9 @@ struct resource_record{
|
|||||||
struct srv_record *srv;
|
struct srv_record *srv;
|
||||||
struct in_addr *a;
|
struct in_addr *a;
|
||||||
char *txt;
|
char *txt;
|
||||||
|
struct key_record *key;
|
||||||
|
struct cert_record *cert;
|
||||||
|
struct sig_record *sig;
|
||||||
}u;
|
}u;
|
||||||
struct resource_record *next;
|
struct resource_record *next;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user