Lines Matching refs:sr
84 isc_region_t sr;
92 dns_rdata_toregion(rdata, &sr);
95 flags = uint16_fromregion(&sr);
96 isc_region_consume(&sr, 2);
102 sprintf(buf, "%u", sr.base[0]);
103 isc_region_consume(&sr, 1);
108 algorithm = sr.base[0];
110 isc_region_consume(&sr, 1);
121 RETERR(isc_base64_totext(&sr, tctx->width - 2,
145 isc_region_t sr;
155 isc_buffer_activeregion(source, &sr);
156 if (sr.length < 4)
164 algorithm = sr.base[3];
165 if (algorithm == DST_ALG_RSAMD5 && sr.length < 3)
168 isc_buffer_forward(source, sr.length);
169 return (mem_tobuffer(target, sr.base, sr.length));
174 isc_region_t sr;
181 dns_rdata_toregion(rdata, &sr);
182 return (mem_tobuffer(target, sr.base, sr.length));
229 isc_region_t sr;
239 dns_rdata_toregion(rdata, &sr);
242 if (sr.length < 2)
244 key->flags = uint16_fromregion(&sr);
245 isc_region_consume(&sr, 2);
248 if (sr.length < 1)
250 key->protocol = uint8_fromregion(&sr);
251 isc_region_consume(&sr, 1);
254 if (sr.length < 1)
256 key->algorithm = uint8_fromregion(&sr);
257 isc_region_consume(&sr, 1);
260 key->datalen = sr.length;
261 key->data = mem_maybedup(mctx, sr.base, key->datalen);