Lines Matching defs:sr

126 	isc_region_t sr;
140 dns_rdata_toregion(rdata, &sr);
146 dns_name_fromregion(&name, &sr);
150 isc_region_consume(&sr, name_length(&name));
155 sigtime = ((isc_uint64_t)sr.base[0] << 40) |
156 ((isc_uint64_t)sr.base[1] << 32) |
157 ((isc_uint64_t)sr.base[2] << 24) |
158 ((isc_uint64_t)sr.base[3] << 16) |
159 ((isc_uint64_t)sr.base[4] << 8) |
160 (isc_uint64_t)sr.base[5];
161 isc_region_consume(&sr, 6);
175 n = uint16_fromregion(&sr);
176 isc_region_consume(&sr, 2);
183 n = uint16_fromregion(&sr);
184 isc_region_consume(&sr, 2);
191 REQUIRE(n <= sr.length);
192 sigr = sr;
206 isc_region_consume(&sr, n);
211 n = uint16_fromregion(&sr);
212 isc_region_consume(&sr, 2);
219 n = uint16_fromregion(&sr);
220 isc_region_consume(&sr, 2);
226 n = uint16_fromregion(&sr);
227 isc_region_consume(&sr, 2);
235 return (isc_base64_totext(&sr, 60, "", target));
237 return (isc_base64_totext(&sr, 60, " ", target));
242 isc_region_t sr;
260 isc_buffer_activeregion(source, &sr);
264 if (sr.length < 8)
266 RETERR(mem_tobuffer(target, sr.base, 8));
267 isc_region_consume(&sr, 8);
273 if (sr.length < 2)
275 n = uint16_fromregion(&sr);
276 if (sr.length < n + 2)
278 RETERR(mem_tobuffer(target, sr.base, n + 2));
279 isc_region_consume(&sr, n + 2);
285 if (sr.length < 4)
287 RETERR(mem_tobuffer(target, sr.base, 4));
288 isc_region_consume(&sr, 4);
294 if (sr.length < 2)
296 n = uint16_fromregion(&sr);
297 if (sr.length < n + 2)
300 return (mem_tobuffer(target, sr.base, n + 2));
305 isc_region_t sr;
314 dns_rdata_toregion(rdata, &sr);
316 dns_name_fromregion(&name, &sr);
318 isc_region_consume(&sr, name_length(&name));
319 return (mem_tobuffer(target, sr.base, sr.length));
426 isc_region_t sr;
437 dns_rdata_toregion(rdata, &sr);
443 dns_name_fromregion(&alg, &sr);
447 isc_region_consume(&sr, name_length(&tsig->algorithm));
452 INSIST(sr.length >= 6);
453 tsig->timesigned = ((isc_uint64_t)sr.base[0] << 40) |
454 ((isc_uint64_t)sr.base[1] << 32) |
455 ((isc_uint64_t)sr.base[2] << 24) |
456 ((isc_uint64_t)sr.base[3] << 16) |
457 ((isc_uint64_t)sr.base[4] << 8) |
458 (isc_uint64_t)sr.base[5];
459 isc_region_consume(&sr, 6);
464 tsig->fudge = uint16_fromregion(&sr);
465 isc_region_consume(&sr, 2);
470 tsig->siglen = uint16_fromregion(&sr);
471 isc_region_consume(&sr, 2);
476 INSIST(sr.length >= tsig->siglen);
477 tsig->signature = mem_maybedup(mctx, sr.base, tsig->siglen);
480 isc_region_consume(&sr, tsig->siglen);
485 tsig->originalid = uint16_fromregion(&sr);
486 isc_region_consume(&sr, 2);
491 tsig->error = uint16_fromregion(&sr);
492 isc_region_consume(&sr, 2);
497 tsig->otherlen = uint16_fromregion(&sr);
498 isc_region_consume(&sr, 2);
503 INSIST(sr.length == tsig->otherlen);
504 tsig->other = mem_maybedup(mctx, sr.base, tsig->otherlen);