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.
*/
/* $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>
@@ -86,6 +86,13 @@
#define ADDITIONALDATATYPE "rdata->type"
#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[] =
"/*\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("void", "freestruct", FREESTRUCTDECL);
dodecl("dns_result_t", "additionaldata", ADDITIONALDATADECL);
dodecl("dns_result_t", "digest", DIGESTDECL);
doswitch("FROMTEXTSWITCH", "fromtext", FROMTEXTARGS,
FROMTEXTTYPE, FROMTEXTCLASS, FROMTEXTDEF);
@@ -464,6 +472,9 @@ main(int argc, char **argv) {
doswitch("ADDITIONALDATASWITCH", "additionaldata",
ADDITIONALDATAARGS, ADDITIONALDATATYPE,
ADDITIONALDATACLASS, ADDITIONALDATADEF);
doswitch("DIGESTSWITCH", "digest",
DIGESTARGS, DIGESTTYPE,
DIGESTCLASS, DIGESTDEF);
fprintf(stdout, "\n#define TYPENAMES%s\n",
types != NULL ? " \\" : "");