update to 9.7.2rc1
[tridge/bind9.git] / contrib / zkt / dnssec-zkt.c
index bfc92d9c0d72fe2eeb0668530c5f81a3a4f6dfcf..744a6f865f9c990a7932d26a1dcf77dc7c35e5f2 100644 (file)
@@ -307,6 +307,7 @@ int main (int argc, char *argv[])
        /* it's better to do this before we read the whole directory tree */
        if ( action == 'Z' )
        {
+               fprintf (stderr, "The use of -Z is deprecated. Please use zkt-conf instead\n");
                printconfig ("stdout", config);
                return 0;
        }
@@ -758,7 +759,7 @@ static      int     parsedirectory (const char *dir, dki_t **listp)
                        {
                                // fprintf (stderr, "parsedir: tssearch (%d %s)\n", dkp, dkp->name);
 #if defined (USE_TREE) && USE_TREE
-                               dki_tadd (listp, dkp);
+                               dki_tadd (listp, dkp, 1);
 #else
                                dki_add (listp, dkp);
 #endif
@@ -780,7 +781,7 @@ static      void    parsefile (const char *file, dki_t **listp)
        {
                if ( (dkp = dki_read (path, file)) )    /* read DNS key file ... */
 #if defined (USE_TREE) && USE_TREE
-                       dki_tadd (listp, dkp);          /* ... and add to tree */
+                       dki_tadd (listp, dkp, 1);               /* ... and add to tree */
 #else
                        dki_add (listp, dkp);           /* ... and add to list */
 #endif