for startup scripts to get the full pathname(s) of anchor file(s).
git-svn-id: file:///svn/unbound/trunk@4447
be551aaa-1e26-0410-a405-
d3ace91eadb9
+23 January 2018: Wouter
+ - Fix that unbound-checkconf -f flag works with auto-trust-anchor-file
+ for startup scripts to get the full pathname(s) of anchor file(s).
+
22 January 2018: Wouter
- Accept tls-upstream in unbound.conf, the ssl-upstream keyword is
also recognized and means the same. Also for tls-port,
free(p);
return;
}
+ if(strcmp(opt, "auto-trust-anchor-file") == 0 && final) {
+ struct config_strlist* s = cfg->auto_trust_anchor_file_list;
+ for(; s; s=s->next) {
+ char *p = fname_after_chroot(s->str, cfg, 1);
+ if(!p) fatal_exit("out of memory");
+ printf("%s\n", p);
+ free(p);
+ }
+ return;
+ }
if(!config_get_option(cfg, opt, config_print_func, stdout))
fatal_exit("cannot print option '%s'", opt);
}