Commit 477437f4 authored by Bob Halley's avatar Bob Halley
Browse files

digest support

parent 0513f89e
......@@ -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 ? " \\" : "");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment