2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-03 08:05:21 +00:00

[master] setup tsig in dig/host/nslookup

(Change #3813 had broken some system tests.)
This commit is contained in:
Evan Hunt
2014-04-18 07:27:50 -07:00
parent ec3b216506
commit 58e291cb8d
5 changed files with 17 additions and 2 deletions

View File

@@ -1976,6 +1976,10 @@ main(int argc, char **argv) {
setup_libs();
setup_system();
parse_args(ISC_FALSE, ISC_FALSE, argc, argv);
if (keyfile[0] != 0)
setup_file_key();
else if (keysecret[0] != 0)
setup_text_key();
if (domainopt[0] != '\0') {
set_search_domain(domainopt);
usesearch = ISC_TRUE;

View File

@@ -944,7 +944,7 @@ requeue_lookup(dig_lookup_t *lookold, isc_boolean_t servers) {
}
static void
void
setup_text_key(void) {
isc_result_t result;
dns_name_t keyname;
@@ -1192,7 +1192,7 @@ read_confkey(void) {
return (result);
}
static void
void
setup_file_key(void) {
isc_result_t result;
dst_key_t *dstkey = NULL;

View File

@@ -894,6 +894,10 @@ main(int argc, char **argv) {
setup_libs();
setup_system();
parse_args(ISC_FALSE, argc, argv);
if (keyfile[0] != 0)
setup_file_key();
else if (keysecret[0] != 0)
setup_text_key();
result = isc_app_onrun(mctx, global_task, onrun_callback, NULL);
check_result(result, "isc_app_onrun");
isc_app_run();

View File

@@ -432,6 +432,9 @@ chase_sig(dns_message_t *msg);
void save_opt(dig_lookup_t *lookup, char *code, char *value);
void setup_file_key(void);
void setup_text_key(void);
ISC_LANG_ENDDECLS
#endif

View File

@@ -911,6 +911,10 @@ main(int argc, char **argv) {
setup_system();
parse_args(argc, argv);
if (keyfile[0] != 0)
setup_file_key();
else if (keysecret[0] != 0)
setup_text_key();
if (domainopt[0] != '\0')
set_search_domain(domainopt);
if (in_use)