Lines Matching defs:sr
73 isc_region_t sr;
83 dns_rdata_toregion(rdata, &sr);
86 flags = uint16_fromregion(&sr);
87 isc_region_consume(&sr, 2);
101 snprintf(buf, sizeof(buf), "%u", sr.base[0]);
102 isc_region_consume(&sr, 1);
107 algorithm = sr.base[0];
109 isc_region_consume(&sr, 1);
120 dns_name_fromregion(&name, &sr);
134 RETERR(isc_base64_totext(&sr, 60, "", target));
136 RETERR(isc_base64_totext(&sr, tctx->width - 2,
174 isc_region_t sr;
181 isc_buffer_activeregion(source, &sr);
182 if (sr.length < 4)
185 algorithm = sr.base[3];
186 RETERR(mem_tobuffer(target, sr.base, 4));
187 isc_region_consume(&sr, 4);
202 if (algorithm == DST_ALG_RSAMD5 && sr.length < 3)
205 isc_buffer_activeregion(source, &sr);
206 isc_buffer_forward(source, sr.length);
207 return (mem_tobuffer(target, sr.base, sr.length));
239 isc_region_t sr;
247 dns_rdata_toregion(rdata, &sr);
248 return (mem_tobuffer(target, sr.base, sr.length));
296 isc_region_t sr;
306 dns_rdata_toregion(rdata, &sr);
309 if (sr.length < 2)
311 key->flags = uint16_fromregion(&sr);
312 isc_region_consume(&sr, 2);
315 if (sr.length < 1)
317 key->protocol = uint8_fromregion(&sr);
318 isc_region_consume(&sr, 1);
321 if (sr.length < 1)
323 key->algorithm = uint8_fromregion(&sr);
324 isc_region_consume(&sr, 1);
327 key->datalen = sr.length;
328 key->data = mem_maybedup(mctx, sr.base, key->datalen);