2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

digest support

This commit is contained in:
Bob Halley 1999-08-31 22:08:19 +00:00
parent 0513f89e68
commit 477437f48d

View File

@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: gen.c,v 1.23 1999/08/12 01:32:42 halley Exp $ */ /* $Id: gen.c,v 1.24 1999/08/31 22:08:19 halley Exp $ */
#include <config.h> #include <config.h>
@ -86,6 +86,13 @@
#define ADDITIONALDATATYPE "rdata->type" #define ADDITIONALDATATYPE "rdata->type"
#define ADDITIONALDATADEF "use_default = ISC_TRUE" #define ADDITIONALDATADEF "use_default = ISC_TRUE"
#define DIGESTDECL \
"dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg"
#define DIGESTARGS "rdata, digest, arg"
#define DIGESTCLASS "rdata->rdclass"
#define DIGESTTYPE "rdata->type"
#define DIGESTDEF "use_default = ISC_TRUE"
char copyright[] = char copyright[] =
"/*\n\ "/*\n\
* Copyright (C) 1998%s Internet Software Consortium.\n\ * Copyright (C) 1998%s Internet Software Consortium.\n\
@ -444,6 +451,7 @@ main(int argc, char **argv) {
dodecl("dns_result_t", "tostruct", TOSTRUCTDECL); dodecl("dns_result_t", "tostruct", TOSTRUCTDECL);
dodecl("void", "freestruct", FREESTRUCTDECL); dodecl("void", "freestruct", FREESTRUCTDECL);
dodecl("dns_result_t", "additionaldata", ADDITIONALDATADECL); dodecl("dns_result_t", "additionaldata", ADDITIONALDATADECL);
dodecl("dns_result_t", "digest", DIGESTDECL);
doswitch("FROMTEXTSWITCH", "fromtext", FROMTEXTARGS, doswitch("FROMTEXTSWITCH", "fromtext", FROMTEXTARGS,
FROMTEXTTYPE, FROMTEXTCLASS, FROMTEXTDEF); FROMTEXTTYPE, FROMTEXTCLASS, FROMTEXTDEF);
@ -464,6 +472,9 @@ main(int argc, char **argv) {
doswitch("ADDITIONALDATASWITCH", "additionaldata", doswitch("ADDITIONALDATASWITCH", "additionaldata",
ADDITIONALDATAARGS, ADDITIONALDATATYPE, ADDITIONALDATAARGS, ADDITIONALDATATYPE,
ADDITIONALDATACLASS, ADDITIONALDATADEF); ADDITIONALDATACLASS, ADDITIONALDATADEF);
doswitch("DIGESTSWITCH", "digest",
DIGESTARGS, DIGESTTYPE,
DIGESTCLASS, DIGESTDEF);
fprintf(stdout, "\n#define TYPENAMES%s\n", fprintf(stdout, "\n#define TYPENAMES%s\n",
types != NULL ? " \\" : ""); types != NULL ? " \\" : "");