case sec_status_indeterminate:
EDNS_OPT_LIST_APPEND_EDE(&edns->opt_list_out,
worker->scratchpad, LDNS_EDE_DNSSEC_INDETERMINATE, "");
-
+ /* fallthrough */
case sec_status_insecure:
default:
/* not secure */
* ACLs allow the snooping. */
if(!(LDNS_RD_WIRE(sldns_buffer_begin(c->buffer))) &&
acl != acl_allow_snoop ) {
- edns.opt_list = NULL;
EDNS_OPT_LIST_APPEND_EDE(&edns.opt_list_out,
worker->scratchpad, LDNS_EDE_NOT_AUTHORITATIVE, "");
error_encode(c->buffer, LDNS_RCODE_REFUSED, &qinfo,
* @param CODE: the EDE code.
* @param TXT: Additional text for the option
*/
-#define EDNS_OPT_LIST_APPEND_EDE(LIST, REGION, CODE, TXT) \
+#define EDNS_OPT_LIST_APPEND_EDE(LIST, REGION, CODE, TXT) \
do { \
struct { \
uint16_t code; \
char text[sizeof(TXT) - 1]; \
} ede = { htons(CODE), TXT }; \
- edns_opt_list_append((LIST), (REGION), LDNS_EDNS_EDE, \
+ edns_opt_list_append((LIST), LDNS_EDNS_EDE, \
sizeof(uint16_t) + sizeof(TXT) - 1, \
- (void *)&ede); \
+ (void *)&ede, (REGION)); \
} while(0)
/**
* @param txt: Additional text for the option
* @return false on failure.
*/
-int edns_opt_append_ede(struct edns_option* list, struct regional* region,
+int edns_opt_list_append_ede(struct edns_option** list, struct regional* region,
sldns_ede_code code, const char *txt);
/**