Lines Matching defs:sr
134 isc_region_t sr;
148 dns_rdata_toregion(rdata, &sr);
154 dns_name_fromregion(&name, &sr);
158 isc_region_consume(&sr, name_length(&name));
163 sigtime = ((isc_uint64_t)sr.base[0] << 40) |
164 ((isc_uint64_t)sr.base[1] << 32) |
165 ((isc_uint64_t)sr.base[2] << 24) |
166 ((isc_uint64_t)sr.base[3] << 16) |
167 ((isc_uint64_t)sr.base[4] << 8) |
168 (isc_uint64_t)sr.base[5];
169 isc_region_consume(&sr, 6);
183 n = uint16_fromregion(&sr);
184 isc_region_consume(&sr, 2);
191 n = uint16_fromregion(&sr);
192 isc_region_consume(&sr, 2);
199 REQUIRE(n <= sr.length);
200 sigr = sr;
211 isc_region_consume(&sr, n);
216 n = uint16_fromregion(&sr);
217 isc_region_consume(&sr, 2);
224 n = uint16_fromregion(&sr);
225 isc_region_consume(&sr, 2);
231 n = uint16_fromregion(&sr);
232 isc_region_consume(&sr, 2);
239 return (isc_base64_totext(&sr, 60, " ", target));
244 isc_region_t sr;
262 isc_buffer_activeregion(source, &sr);
266 if (sr.length < 8)
268 RETERR(mem_tobuffer(target, sr.base, 8));
269 isc_region_consume(&sr, 8);
275 if (sr.length < 2)
277 n = uint16_fromregion(&sr);
278 if (sr.length < n + 2)
280 RETERR(mem_tobuffer(target, sr.base, n + 2));
281 isc_region_consume(&sr, n + 2);
287 if (sr.length < 4)
289 RETERR(mem_tobuffer(target, sr.base, 4));
290 isc_region_consume(&sr, 4);
296 if (sr.length < 2)
298 n = uint16_fromregion(&sr);
299 if (sr.length < n + 2)
302 return (mem_tobuffer(target, sr.base, n + 2));
307 isc_region_t sr;
316 dns_rdata_toregion(rdata, &sr);
318 dns_name_fromregion(&name, &sr);
320 isc_region_consume(&sr, name_length(&name));
321 return (mem_tobuffer(target, sr.base, sr.length));
428 isc_region_t sr;
439 dns_rdata_toregion(rdata, &sr);
445 dns_name_fromregion(&alg, &sr);
449 isc_region_consume(&sr, name_length(&tsig->algorithm));
454 INSIST(sr.length >= 6);
455 tsig->timesigned = ((isc_uint64_t)sr.base[0] << 40) |
456 ((isc_uint64_t)sr.base[1] << 32) |
457 ((isc_uint64_t)sr.base[2] << 24) |
458 ((isc_uint64_t)sr.base[3] << 16) |
459 ((isc_uint64_t)sr.base[4] << 8) |
460 (isc_uint64_t)sr.base[5];
461 isc_region_consume(&sr, 6);
466 tsig->fudge = uint16_fromregion(&sr);
467 isc_region_consume(&sr, 2);
472 tsig->siglen = uint16_fromregion(&sr);
473 isc_region_consume(&sr, 2);
478 INSIST(sr.length >= tsig->siglen);
479 tsig->signature = mem_maybedup(mctx, sr.base, tsig->siglen);
482 isc_region_consume(&sr, tsig->siglen);
487 tsig->originalid = uint16_fromregion(&sr);
488 isc_region_consume(&sr, 2);
493 tsig->error = uint16_fromregion(&sr);
494 isc_region_consume(&sr, 2);
499 tsig->otherlen = uint16_fromregion(&sr);
500 isc_region_consume(&sr, 2);
505 INSIST(sr.length == tsig->otherlen);
506 tsig->other = mem_maybedup(mctx, sr.base, tsig->otherlen);