update to 9.7.2rc1
[tridge/bind9.git] / contrib / zkt / zconf.h
index a0c919e33e3d8fa7d1b49a27edf56bb95f67daf3..f35d8f75430645b67bea94d17b283ea8aef075a5 100644 (file)
@@ -79,6 +79,7 @@
 /* # define    ZSK_ALGO        (DK_ALGO_RSASHA1)       ZSK_ALGO has to be the same as KSK, so this is no longer used (v0.99) */
 # define       ZSK_BITS        (512)
 # define       ZSK_RANDOM      "/dev/urandom"
+# define       NSEC3           0               /* by default nsec3 is off */
 # define       SALTLEN         24              /* salt length in bits (resolution is 4 bits)*/
 
 # define       ZONEDIR         "."
 # define       PRINTTIME       1
 # define       PRINTAGE        0
 # define       LJUST           0
+# define       LSCOLORTERM     NULL    /* or "" */
 # define       KEYSETDIR       NULL    /* keysets */
 # define       LOGFILE         ""
 # define       LOGLEVEL        "error"
+# define       LOGDOMAINDIR    ""
 # define       SYSLOGFACILITY  "none"
 # define       SYSLOGLEVEL     "notice"
 # define       VERBOSELOG      0
 # define       SIG_RANDOM      NULL    /* "/dev/urandom" */
 # define       SIG_PSEUDO      0
 # define       SIG_GENDS       1
+# define       SIG_DNSKEY_KSK  0       /* Sign DNSKEY RR with KSK only */
 # define       SIG_PARAM       ""
 # define       DIST_CMD        NULL    /* default is to run "rndc reload" */
 # define       NAMED_CHROOT    NULL    /* default is none */
@@ -121,6 +125,12 @@ typedef    enum {
        Incremental
 } serial_form_t;
 
+typedef        enum {
+       NSEC3_OFF = 0,
+       NSEC3_ON,
+       NSEC3_OPTOUT
+} nsec3_t;
+
 typedef        enum {
        none = 0,
        user,
@@ -133,6 +143,7 @@ typedef     struct zconf    {
        int     printtime;
        int     printage;
        int     ljust;
+       char    *colorterm;
        long    sigvalidity;    /* should be less than expire time */
        long    max_ttl;        /* should be set to the maximum used ttl in the zone */
        long    key_ttl;
@@ -152,6 +163,7 @@ typedef     struct zconf    {
        /* int  z_algo;         no longer used; renamed to k2_algo (v0.99) */
        int     z_bits;
        char    *z_random;
+       nsec3_t nsec3;          /* 0 == off; 1 == on; 2 == on with optout */
        int     saltbits;
 
        char    *view;
@@ -159,6 +171,7 @@ typedef     struct zconf    {
        // char *errlog;
        char    *logfile;
        char    *loglevel;
+       char    *logdomaindir;
        char    *syslogfacility;
        char    *sysloglevel;
        int     verboselog;
@@ -170,16 +183,21 @@ typedef   struct zconf    {
        char    *sig_random;
        int     sig_pseudo;
        int     sig_gends;
+       int     sig_dnskeyksk;
        char    *sig_param;
        char    *dist_cmd;      /* cmd to run instead of "rndc reload" */
        char    *chroot_dir;    /* chroot directory of named */
 } zconf_t;
 
+extern const char      *timeint2str (unsigned long val);
 extern zconf_t *loadconfig (const char *filename, zconf_t *z);
 extern zconf_t *loadconfig_fromstr (const char *str, zconf_t *z);
 extern zconf_t *dupconfig (const zconf_t *conf);
+extern zconf_t *freeconfig (zconf_t *conf);
 extern int     setconfigpar (zconf_t *conf, char *entry, const void *pval);
 extern int     printconfig (const char *fname, const zconf_t *cp);
+extern int     printconfigdiff (const char *fname, const zconf_t *ref, const zconf_t *z);
 extern int     checkconfig (const zconf_t *z);
+extern void    setconfigversion (int version);
 
 #endif