isc_result_t
named_server_reloadcommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%<
* Act on a "reload" command from the command channel.
*/
isc_result_t
named_server_resetstatscommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%<
* Act on a "reset-stats" command from the command channel.
*/
isc_result_t
named_server_notifycommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%<
* Act on a "notify" command from the command channel.
*/
isc_result_t
named_server_refreshcommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%<
* Act on a "refresh" command from the command channel.
*/
isc_result_t
named_server_retransfercommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%<
* Act on a "retransfer" command from the command channel.
*/
* Dump the current cache to the dump file.
*/
isc_result_t
-named_server_dumpdb(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+named_server_dumpdb(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Dump the current security roots to the secroots file.
*/
isc_result_t
named_server_dumpsecroots(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Change or increment the server debug level.
* Report the server's status.
*/
isc_result_t
-named_server_status(named_server_t *server, isc_buffer_t **text);
+named_server_status(named_server_t *server, isc_buffer_t *text);
/*%
* Enable or disable updates for a zone.
*/
isc_result_t
named_server_freeze(named_server_t *server, bool freeze, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Dump zone updates to disk, optionally removing the journal file
*/
isc_result_t
-named_server_sync(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text);
+named_server_sync(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Update a zone's DNSKEY set from the key repository. If
* take place incrementally.
*/
isc_result_t
-named_server_rekey(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text);
+named_server_rekey(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Dump the current recursive queries.
*/
isc_result_t
named_server_validation(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Add a zone to a running process, or modify an existing zone
*/
isc_result_t
named_server_changezone(named_server_t *server, char *command,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Deletes a zone from a running process
*/
isc_result_t
named_server_delzone(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Show current configuration for a given zone
*/
isc_result_t
named_server_showzone(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Show the full current user configuration.
*/
isc_result_t
named_server_showconf(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Lists the status of the signing records for a given zone.
*/
isc_result_t
named_server_signing(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Lists the DNSSEC status for a given zone.
*/
isc_result_t
-named_server_dnssec(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+named_server_dnssec(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Lists status information for a given zone (e.g., name, type, files,
*/
isc_result_t
named_server_zonestatus(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Adds/updates a Negative Trust Anchor (NTA) for a specified name and
*/
isc_result_t
named_server_nta(named_server_t *server, isc_lex_t *lex, bool readonly,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Generates a test sequence that is only for use in system tests. The
* argument is the size of required output in bytes.
*/
isc_result_t
-named_server_testgen(isc_lex_t *lex, isc_buffer_t **text);
+named_server_testgen(isc_lex_t *lex, isc_buffer_t *text);
/*%
* Force fefresh or print status for managed keys zones.
*/
isc_result_t
-named_server_mkeys(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text);
+named_server_mkeys(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Close and reopen DNSTAP output file.
*/
isc_result_t
-named_server_dnstap(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+named_server_dnstap(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Display or update tcp-{initial,idle,keepalive,advertised}-timeout options.
*/
isc_result_t
-named_server_tcptimeouts(isc_lex_t *lex, isc_buffer_t **text);
+named_server_tcptimeouts(isc_lex_t *lex, isc_buffer_t *text);
/*%
* Control whether stale answers are served or not when configured in
*/
isc_result_t
named_server_servestale(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Report fetch-limited ADB server addresses.
*/
isc_result_t
named_server_fetchlimit(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text);
+ isc_buffer_t *text);
/*%
* Import SKR file for offline KSK signing.
*/
isc_result_t
-named_server_skr(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text);
+named_server_skr(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text);
/*%
* Toggle memory profiling if supported.
goto cleanup; \
} while (0)
-#define TCHECK(op) \
- do { \
- tresult = (op); \
- if (tresult != ISC_R_SUCCESS) { \
- isc_buffer_clear(*text); \
- goto cleanup; \
- } \
+#define TCHECK(op) \
+ do { \
+ tresult = (op); \
+ if (tresult != ISC_R_SUCCESS) { \
+ isc_buffer_clear(text); \
+ goto cleanup; \
+ } \
} while (0)
#define CHECKM(op, msg) \
typedef struct {
unsigned int magic;
#define DZARG_MAGIC ISC_MAGIC('D', 'z', 'a', 'r')
- isc_buffer_t **text;
+ isc_buffer_t *text;
isc_result_t result;
} ns_dzarg_t;
add_keydata_zone(dns_view_t *view, const char *directory, isc_mem_t *mctx);
static isc_result_t
-putstr(isc_buffer_t **b, const char *str);
+putstr(isc_buffer_t *b, const char *str);
static isc_result_t
-putmem(isc_buffer_t **b, const char *str, size_t len);
+putmem(isc_buffer_t *b, const char *str, size_t len);
static isc_result_t
-putuint8(isc_buffer_t **b, uint8_t val);
+putuint8(isc_buffer_t *b, uint8_t val);
static isc_result_t
-putnull(isc_buffer_t **b);
+putnull(isc_buffer_t *b);
#ifdef HAVE_LMDB
static isc_result_t
save_zoneconfig(dns_zone_t *zone, const cfg_obj_t *zconfig) {
isc_result_t result;
isc_buffer_t *text = NULL;
+
+ isc_buffer_allocate(isc_g_mctx, &text, 256);
+
ns_dzarg_t dzarg = {
.magic = DZARG_MAGIC,
- .text = &text,
+ .text = text,
};
- isc_buffer_allocate(isc_g_mctx, &text, 256);
-
cfg_printx(zconfig, CFG_PRINTER_ONELINE, emit_text, &dzarg);
- CHECK(putnull(&text));
+ CHECK(putnull(text));
dns_zone_setcfg(zone, isc_buffer_base(text));
#else /* HAVE_LMDB */
static isc_result_t
-data_to_cfg(dns_view_t *view, MDB_val *key, MDB_val *data, isc_buffer_t **text,
+data_to_cfg(dns_view_t *view, MDB_val *key, MDB_val *data, isc_buffer_t *text,
cfg_obj_t **zoneconfig) {
isc_result_t result;
const char *zone_name;
REQUIRE(text != NULL);
REQUIRE(zoneconfig != NULL && *zoneconfig == NULL);
- if (*text == NULL) {
- isc_buffer_allocate(view->mctx, text, 256);
- } else {
- isc_buffer_clear(*text);
- }
+ isc_buffer_clear(text);
zone_name = (const char *)key->mv_data;
zone_name_len = key->mv_size;
INSIST(zone_config != NULL && zone_config_len > 0);
/* zone zonename { config; }; */
- result = isc_buffer_reserve(*text, 6 + zone_name_len + 2 +
- zone_config_len + 2);
+ result = isc_buffer_reserve(text, 6 + zone_name_len + 2 +
+ zone_config_len + 2);
if (result != ISC_R_SUCCESS) {
goto cleanup;
}
snprintf(bufname, sizeof(bufname), "%.*s", (int)zone_name_len,
zone_name);
- result = cfg_parse_buffer(isc_g_mctx, *text, bufname, 0,
+ result = cfg_parse_buffer(isc_g_mctx, text, bufname, 0,
&cfg_type_addzoneconf, 0, &zoneconf);
if (result != ISC_R_SUCCESS) {
isc_log_write(NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
return ISC_R_FAILURE;
}
+ isc_buffer_allocate(view->mctx, &text, 256);
+
for (status = mdb_cursor_get(cursor, &key, &data, MDB_FIRST);
status == MDB_SUCCESS;
status = mdb_cursor_get(cursor, &key, &data, MDB_NEXT))
/*
* Create a configuration object from data fetched from NZD.
*/
- result = data_to_cfg(view, &key, &data, &text, &zconfigobj);
+ result = data_to_cfg(view, &key, &data, text, &zconfigobj);
if (result != ISC_R_SUCCESS) {
break;
}
cfg_obj_detach(&zconfigobj);
}
- if (text != NULL) {
- isc_buffer_free(&text);
- }
if (zconfigobj != NULL) {
cfg_obj_detach(&zconfigobj);
}
+
+ isc_buffer_free(&text);
mdb_cursor_close(cursor);
return result;
dzarg = (ns_dzarg_t){
.magic = DZARG_MAGIC,
- .text = &server->userconftext,
+ .text = server->userconftext,
};
cfg_printx(config, 0, emit_text, &dzarg);
isc_buffer_allocate(isc_g_mctx, &server->effectivetext, BUFSIZ);
dzarg = (ns_dzarg_t){
.magic = DZARG_MAGIC,
- .text = &server->effectivetext,
+ .text = server->effectivetext,
};
cfg_printx(effective, 0, emit_text, &dzarg);
}
* call to next_token().
*/
static char *
-next_token(isc_lex_t *lex, isc_buffer_t **text) {
+next_token(isc_lex_t *lex, isc_buffer_t *text) {
isc_result_t result;
isc_token_t token;
*/
static isc_result_t
zone_from_args(named_server_t *server, isc_lex_t *lex, const char *zonetxt,
- dns_zone_t **zonep, char *zonename, isc_buffer_t **text,
+ dns_zone_t **zonep, char *zonename, isc_buffer_t *text,
bool skip) {
char *ptr;
char *classtxt;
*/
isc_result_t
named_server_retransfercommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
const char *arg = NULL;
dns_zone_t *zone = NULL;
*/
isc_result_t
named_server_reloadcommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
dns_zone_t *zone = NULL;
dns_zonetype_t type;
*/
isc_result_t
named_server_resetstatscommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
const char *arg = NULL;
bool recursive_high_water = false;
bool tcp_high_water = false;
*/
isc_result_t
named_server_notifycommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
dns_zone_t *zone = NULL;
const char msg[] = "zone notify queued";
*/
isc_result_t
named_server_refreshcommand(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
dns_zone_t *zone = NULL, *raw = NULL;
const char msg1[] = "zone refresh queued";
isc_result_t
named_server_dumpdb(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
struct dumpcontext *dctx = NULL;
isc_result_t result;
char *ptr = NULL;
isc_result_t
named_server_dumpsecroots(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
dns_keytable_t *secroots = NULL;
dns_ntatable_t *ntatable = NULL;
isc_result_t result;
FILE *fp = NULL;
isc_time_t now;
char tbuf[64];
- unsigned int used = isc_buffer_usedlength(*text);
+ unsigned int used = isc_buffer_usedlength(text);
bool first = true;
REQUIRE(text != NULL);
CHECK(putstr(text, "secure roots as of "));
CHECK(putstr(text, tbuf));
CHECK(putstr(text, ":\n"));
- used = isc_buffer_usedlength(*text);
+ used = isc_buffer_usedlength(text);
do {
ISC_LIST_FOREACH(server->viewlist, view, link) {
result = ISC_R_SUCCESS;
continue;
}
- if (first || used != isc_buffer_usedlength(*text)) {
+ if (first || used != isc_buffer_usedlength(text)) {
CHECK(putstr(text, "\n"));
first = false;
}
CHECK(putstr(text, " Start view "));
CHECK(putstr(text, view->name));
CHECK(putstr(text, "\n Secure roots:\n\n"));
- used = isc_buffer_usedlength(*text);
+ used = isc_buffer_usedlength(text);
CHECK(dns_keytable_totext(secroots, text));
if (ntatable != NULL) {
result = ISC_R_SUCCESS;
continue;
}
- if (used != isc_buffer_usedlength(*text)) {
+ if (used != isc_buffer_usedlength(text)) {
CHECK(putstr(text, "\n"));
}
CHECK(putstr(text, " Negative trust anchors:\n\n"));
- used = isc_buffer_usedlength(*text);
+ used = isc_buffer_usedlength(text);
CHECK(dns_ntatable_totext(ntatable, NULL, text));
}
}
if (fp != NULL) {
- if (used != isc_buffer_usedlength(*text)) {
+ if (used != isc_buffer_usedlength(text)) {
(void)putstr(text, "\n");
}
- fprintf(fp, "%.*s", (int)isc_buffer_usedlength(*text),
- (char *)isc_buffer_base(*text));
- isc_buffer_clear(*text);
+ fprintf(fp, "%.*s", (int)isc_buffer_usedlength(text),
+ (char *)isc_buffer_base(text));
+ isc_buffer_clear(text);
(void)isc_stdio_close(fp);
- } else if (isc_buffer_usedlength(*text) > 0) {
+ } else if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_validation(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
char *ptr = NULL;
bool changed = false;
isc_result_t result;
}
isc_result_t
-named_server_status(named_server_t *server, isc_buffer_t **text) {
+named_server_status(named_server_t *server, isc_buffer_t *text) {
isc_result_t result;
unsigned int zonecount, xferrunning, xferdeferred, xferfirstrefresh;
unsigned int soaqueries, automatic;
}
isc_result_t
-named_server_testgen(isc_lex_t *lex, isc_buffer_t **text) {
+named_server_testgen(isc_lex_t *lex, isc_buffer_t *text) {
isc_result_t result;
char *ptr;
unsigned long count;
count = strtoul(ptr, NULL, 10);
}
- CHECK(isc_buffer_reserve(*text, count));
+ CHECK(isc_buffer_reserve(text, count));
for (i = 0; i < count; i++) {
CHECK(putuint8(text, chars[i % (sizeof(chars) - 1)]));
}
* Act on a "sign" or "loadkeys" command from the command channel.
*/
isc_result_t
-named_server_rekey(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+named_server_rekey(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text) {
isc_result_t result;
dns_zone_t *zone = NULL;
dns_zonetype_t type;
}
isc_result_t
-named_server_sync(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text) {
+named_server_sync(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text) {
isc_result_t result, tresult;
dns_zone_t *zone = NULL;
char classstr[DNS_RDATACLASS_FORMATSIZE];
*/
isc_result_t
named_server_freeze(named_server_t *server, bool freeze, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result, tresult;
dns_zone_t *mayberaw = NULL, *raw = NULL;
dns_zonetype_t type;
* is managed by smf and is also running chroot.
*/
isc_result_t
-named_smf_add_message(isc_buffer_t **text) {
+named_smf_add_message(isc_buffer_t *text) {
REQUIRE(text != NULL);
return putstr(text, "use svcadm(1M) to manage named");
}
dzarg.magic = DZARG_MAGIC;
- dzarg.text = &text;
+ dzarg.text = text;
dzarg.result = ISC_R_SUCCESS;
cfg_printx(zoptions, CFG_PRINTER_ONELINE, dumpzone, &dzarg);
if (dzarg.result != ISC_R_SUCCESS) {
isc_buffer_clear(text);
dzarg.magic = DZARG_MAGIC;
- dzarg.text = &text;
+ dzarg.text = text;
dzarg.result = ISC_R_SUCCESS;
cfg_printx(zoptions, CFG_PRINTER_ONELINE, dumpzone, &dzarg);
if (dzarg.result != ISC_R_SUCCESS) {
static isc_result_t
newzone_parse(named_server_t *server, char *command, dns_view_t **viewp,
cfg_obj_t **zoneconfp, const cfg_obj_t **zoneobjp,
- bool *redirectp, isc_buffer_t **text) {
+ bool *redirectp, isc_buffer_t *text) {
isc_result_t result;
isc_buffer_t argbuf;
bool redirect = false;
static isc_result_t
do_addzone(named_server_t *server, dns_view_t *view, dns_name_t *name,
cfg_obj_t *zoneconf, const cfg_obj_t *zoneobj, bool redirect,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result, tresult;
dns_zone_t *zone = NULL;
const cfg_obj_t *voptions = NULL;
static isc_result_t
do_modzone(named_server_t *server, dns_view_t *view, dns_name_t *name,
const char *zname, const cfg_obj_t *zoneobj, bool redirect,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result, tresult;
dns_zone_t *zone = NULL;
const cfg_obj_t *voptions = NULL;
*/
isc_result_t
named_server_changezone(named_server_t *server, char *command,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
bool addzone;
bool redirect = false;
named_g_defaultconfigtime = isc_time_now();
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
if (zoneconf != NULL) {
}
static bool
-inuse(const char *file, bool first, isc_buffer_t **text) {
+inuse(const char *file, bool first, isc_buffer_t *text) {
if (file != NULL && isc_file_exists(file)) {
if (first) {
(void)putstr(text, "The following files were in use "
*/
isc_result_t
named_server_delzone(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result, tresult;
dns_zone_t *zone = NULL;
dns_zone_t *raw = NULL;
result = ISC_R_SUCCESS;
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
if (raw != NULL) {
*/
isc_result_t
named_server_showzone(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result;
char zonename[DNS_NAME_FORMATSIZE];
dns_zone_t *zone = NULL;
result = ISC_R_SUCCESS;
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_showconf(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
const char *arg = NULL;
cfg_obj_t *config = NULL;
.text = text,
};
- REQUIRE(text != NULL && *text != NULL);
+ REQUIRE(text != NULL);
/* Skip the command name */
(void)next_token(lex, text);
}
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_signing(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
dns_zone_t *zone = NULL;
dns_name_t *origin;
isc_result_t
named_server_dnssec(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
dns_zone_t *zone = NULL;
dns_kasp_t *kasp = NULL;
}
static isc_result_t
-putmem(isc_buffer_t **b, const char *str, size_t len) {
+putmem(isc_buffer_t *b, const char *str, size_t len) {
isc_result_t result;
- result = isc_buffer_reserve(*b, (unsigned int)len);
+ result = isc_buffer_reserve(b, (unsigned int)len);
if (result != ISC_R_SUCCESS) {
return ISC_R_NOSPACE;
}
- isc_buffer_putmem(*b, (const unsigned char *)str, (unsigned int)len);
+ isc_buffer_putmem(b, (const unsigned char *)str, (unsigned int)len);
return ISC_R_SUCCESS;
}
static isc_result_t
-putstr(isc_buffer_t **b, const char *str) {
+putstr(isc_buffer_t *b, const char *str) {
return putmem(b, str, strlen(str));
}
static isc_result_t
-putuint8(isc_buffer_t **b, uint8_t val) {
+putuint8(isc_buffer_t *b, uint8_t val) {
isc_result_t result;
- result = isc_buffer_reserve(*b, 1);
+ result = isc_buffer_reserve(b, 1);
if (result != ISC_R_SUCCESS) {
return ISC_R_NOSPACE;
}
- isc_buffer_putuint8(*b, val);
+ isc_buffer_putuint8(b, val);
return ISC_R_SUCCESS;
}
static isc_result_t
-putnull(isc_buffer_t **b) {
+putnull(isc_buffer_t *b) {
return putuint8(b, 0);
}
isc_result_t
named_server_zonestatus(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
dns_zone_t *zone = NULL, *raw = NULL, *mayberaw = NULL;
const char *type, *file;
isc_result_t
named_server_nta(named_server_t *server, isc_lex_t *lex, bool readonly,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
dns_ntatable_t *ntatable = NULL;
isc_result_t result = ISC_R_SUCCESS;
char *ptr, *nametext = NULL, *viewname;
continue;
}
- if (last != isc_buffer_usedlength(*text)) {
+ if (last != isc_buffer_usedlength(text)) {
CHECK(putstr(text, "\n"));
}
- last = isc_buffer_usedlength(*text);
+ last = isc_buffer_usedlength(text);
CHECK(dns_ntatable_totext(ntatable, view->name, text));
}
}
static isc_result_t
-mkey_refresh(dns_view_t *view, isc_buffer_t **text) {
+mkey_refresh(dns_view_t *view, isc_buffer_t *text) {
isc_result_t result;
char msg[DNS_NAME_FORMATSIZE + 500] = "";
}
static isc_result_t
-mkey_destroy(dns_view_t *view, isc_buffer_t **text) {
+mkey_destroy(dns_view_t *view, isc_buffer_t *text) {
isc_result_t result;
char msg[DNS_NAME_FORMATSIZE + 500] = "";
const char *file = NULL;
}
static isc_result_t
-mkey_dumpzone(dns_view_t *view, isc_buffer_t **text) {
+mkey_dumpzone(dns_view_t *view, isc_buffer_t *text) {
isc_result_t result;
dns_db_t *db = NULL;
dns_dbversion_t *ver = NULL;
}
static isc_result_t
-mkey_status(dns_view_t *view, isc_buffer_t **text) {
+mkey_status(dns_view_t *view, isc_buffer_t *text) {
isc_result_t result;
char msg[ISC_FORMATHTTPTIMESTAMP_SIZE];
isc_time_t t;
}
isc_result_t
-named_server_mkeys(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+named_server_mkeys(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text) {
char *cmd, *classtxt, *viewtxt = NULL;
isc_result_t result = ISC_R_SUCCESS;
dns_rdataclass_t rdclass;
}
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_dnstap(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
#ifdef HAVE_DNSTAP
char *ptr;
isc_result_t result;
}
isc_result_t
-named_server_tcptimeouts(isc_lex_t *lex, isc_buffer_t **text) {
+named_server_tcptimeouts(isc_lex_t *lex, isc_buffer_t *text) {
char *ptr;
isc_result_t result = ISC_R_SUCCESS;
uint32_t initial, idle, keepalive, advertised, primaries;
CHECK(putstr(text, msg));
cleanup:
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_servestale(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
char *ptr, *classtxt, *viewtxt = NULL;
char msg[128];
dns_rdataclass_t rdclass = dns_rdataclass_in;
cleanup:
isc_loopmgr_resume();
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
isc_result_t
named_server_fetchlimit(named_server_t *server, isc_lex_t *lex,
- isc_buffer_t **text) {
+ isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
char *ptr = NULL, *viewname = NULL;
bool first = true;
}
first = false;
CHECK(putstr(text, tbuf));
- used = isc_buffer_usedlength(*text);
+ used = isc_buffer_usedlength(text);
CHECK(dns_adb_dumpquota(adb, text));
- if (used == isc_buffer_usedlength(*text)) {
+ if (used == isc_buffer_usedlength(text)) {
CHECK(putstr(text, "\n None."));
}
CHECK(ISC_R_NOSPACE);
}
CHECK(putstr(text, tbuf));
- used = isc_buffer_usedlength(*text);
+ used = isc_buffer_usedlength(text);
CHECK(dns_resolver_dumpquota(view->resolver, text));
- if (used == isc_buffer_usedlength(*text)) {
+ if (used == isc_buffer_usedlength(text)) {
CHECK(putstr(text, "\n None."));
}
dns_adb_detach(&adb);
if (adb != NULL) {
dns_adb_detach(&adb);
}
- if (isc_buffer_usedlength(*text) > 0) {
+ if (isc_buffer_usedlength(text) > 0) {
(void)putnull(text);
}
}
isc_result_t
-named_server_skr(named_server_t *server, isc_lex_t *lex, isc_buffer_t **text) {
+named_server_skr(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text) {
isc_result_t result = ISC_R_SUCCESS;
dns_zone_t *zone = NULL;
dns_kasp_t *kasp = NULL;