mirror of https://github.com/getdnsapi/getdns.git
Some more unused variables in stub only mode
This commit is contained in:
parent
eeca7b32b1
commit
8de9976a2b
|
@ -1882,11 +1882,13 @@ getdns_context_set_tls_authentication(getdns_context *context,
|
|||
return GETDNS_RETURN_GOOD;
|
||||
} /* getdns_context_set_tls_authentication_list */
|
||||
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
static void
|
||||
set_ub_limit_outstanding_queries(struct getdns_context* context, uint16_t value) {
|
||||
set_ub_limit_outstanding_queries(getdns_context* context, uint16_t value) {
|
||||
/* num-queries-per-thread */
|
||||
set_ub_number_opt(context, "num-queries-per-thread:", value);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* getdns_context_set_limit_outstanding_queries
|
||||
*
|
||||
|
@ -1896,7 +1898,9 @@ getdns_context_set_limit_outstanding_queries(struct getdns_context *context,
|
|||
uint16_t limit)
|
||||
{
|
||||
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
set_ub_limit_outstanding_queries(context, limit);
|
||||
#endif
|
||||
if (limit != context->limit_outstanding_queries) {
|
||||
context->limit_outstanding_queries = limit;
|
||||
dispatch_updated(context,
|
||||
|
@ -2268,11 +2272,13 @@ getdns_context_set_dnssec_trust_anchors(
|
|||
return GETDNS_RETURN_GOOD;
|
||||
} /* getdns_context_set_dnssec_trust_anchors */
|
||||
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
static void
|
||||
set_ub_dnssec_allowed_skew(struct getdns_context* context, uint32_t value) {
|
||||
set_ub_number_opt(context, "val-sig-skew-min:", value);
|
||||
set_ub_number_opt(context, "val-sig-skew-max:", value);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* getdns_context_set_dnssec_allowed_skew
|
||||
*
|
||||
|
@ -2282,7 +2288,9 @@ getdns_context_set_dnssec_allowed_skew(struct getdns_context *context,
|
|||
uint32_t value)
|
||||
{
|
||||
RETURN_IF_NULL(context, GETDNS_RETURN_INVALID_PARAMETER);
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
set_ub_dnssec_allowed_skew(context, value);
|
||||
#endif
|
||||
if (value != context->dnssec_allowed_skew) {
|
||||
context->dnssec_allowed_skew = value;
|
||||
dispatch_updated(context, GETDNS_CONTEXT_CODE_DNSSEC_ALLOWED_SKEW);
|
||||
|
@ -2550,6 +2558,7 @@ error:
|
|||
} /* getdns_context_set_upstream_recursive_servers */
|
||||
|
||||
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
static void
|
||||
set_ub_edns_maximum_udp_payload_size(struct getdns_context* context,
|
||||
int value) {
|
||||
|
@ -2557,6 +2566,7 @@ set_ub_edns_maximum_udp_payload_size(struct getdns_context* context,
|
|||
if (value >= 512 && value <= 65535)
|
||||
set_ub_number_opt(context, "edns-buffer-size:", (uint16_t)value);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* getdns_context_set_edns_maximum_udp_payload_size
|
||||
|
@ -2573,7 +2583,9 @@ getdns_context_set_edns_maximum_udp_payload_size(struct getdns_context *context,
|
|||
if (value < 512)
|
||||
value = 512;
|
||||
|
||||
#ifdef HAVE_LIBUNBOUND
|
||||
set_ub_edns_maximum_udp_payload_size(context, value);
|
||||
#endif
|
||||
if (value != context->edns_maximum_udp_payload_size) {
|
||||
context->edns_maximum_udp_payload_size = value;
|
||||
dispatch_updated(context,
|
||||
|
|
Loading…
Reference in New Issue