if (result != ISC_R_SUCCESS)
goto cleanup_inc;
lctx->keep_lex = false;
+ /*
+ * If specials change update dns_test_rdatafromstring()
+ * in lib/dns/tests/dnstest.c.
+ */
memset(specials, 0, sizeof(specials));
specials[0] = 1;
specials['('] = 1;
dns_rdatacallbacks_t callbacks;
isc_buffer_t source, target;
isc_lex_t *lex = NULL;
+ isc_lexspecials_t specials = { 0 };
isc_result_t result;
size_t length;
return (result);
}
+ /*
+ * Set characters which will be treated as valid multi-line RDATA
+ * delimiters while reading the source string. These should match
+ * specials from lib/dns/master.c.
+ */
+ specials[0] = 1;
+ specials['('] = 1;
+ specials[')'] = 1;
+ specials['"'] = 1;
+ isc_lex_setspecials(lex, specials);
+
/*
* Point lexer at source.
*/