Lines Matching refs:edata
51 static int charstr(const u_char *rdata, const u_char *edata,
109 const u_char *edata = rdata + rdlen;
174 T(len = charstr(rdata, edata, &buf, &buflen));
182 if (type == ns_t_isdn && rdata == edata)
185 T(len = charstr(rdata, edata, &buf, &buflen));
203 if ((edata - rdata) != 5*NS_INT32SZ)
298 T(len = charstr(rdata, edata, &buf, &buflen));
306 while (rdata < edata) {
307 T(len = charstr(rdata, edata, &buf, &buflen));
311 if (rdata < edata)
354 T(len = charstr(rdata, edata, &buf, &buflen));
361 T(len = charstr(rdata, edata, &buf, &buflen));
368 T(len = charstr(rdata, edata, &buf, &buflen));
430 while (rdata < edata) {
463 key_id = dst_s_dns_key_id(rdata, edata-rdata);
472 len = b64_ntop(rdata, edata - rdata,
536 len = b64_ntop(rdata, edata - rdata,
563 n = edata - rdata;
585 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
591 len = b64_ntop(rdata, edata-rdata, base64_cert, siz);
677 if (rdata + pbyte >= edata) goto formerr;
688 if (rdata >= edata) goto formerr;
723 while (rdata < edata) {
827 while (rdata < edata) {
851 while (rdata < edata) {
876 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
881 len = b64_ntop(rdata, edata-rdata, base64_dhcid, siz);
964 if (rdata >= edata)
967 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
972 len = b64_ntop(rdata, edata-rdata, base64_key, siz);
1029 while (rdata < edata) {
1050 len = SPRINTF((tmp, "\\# %u%s\t; %s", (unsigned)(edata - rdata),
1053 while (rdata < edata) {
1057 n = MIN(16, edata - rdata);
1115 * charstr(rdata, edata, buf, buflen)
1125 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) {
1132 if (rdata < edata) {
1135 if (rdata + 1 + n <= edata) {