Lines Matching refs:datalen
230 ber_len_t datalen;
236 if ((tag = kmfber_skip_tag(ber, &datalen)) == KMFBER_DEFAULT)
238 if (datalen > (*len - 1))
242 * datalen is being demoted to a long here -- possible conversion error
245 if (kmfber_read(ber, buf, datalen) != (ber_slen_t)datalen)
248 buf[datalen] = '\0';
251 if (datalen > 0 && (ber->ber_options & KMFBER_OPT_TRANSLATE_STRINGS)
255 ++datalen;
256 if ((*(ber->ber_decode_translate_proc))(&transbuf, &datalen,
260 if (datalen > *len) {
264 (void) memmove(buf, transbuf, datalen);
266 --datalen;
270 *len = datalen;
277 ber_len_t datalen;
280 if ((tag = kmfber_skip_tag(ber, &datalen)) == KMFBER_DEFAULT)
283 if ((*buf = (char *)malloc((size_t)datalen + 1)) == NULL)
287 * datalen is being demoted to a long here -- possible conversion error
289 if (kmfber_read(ber, *buf, datalen) != (ber_slen_t)datalen)
291 (*buf)[datalen] = '\0';
400 ber_len_t datalen;
404 if ((tag = kmfber_skip_tag(ber, &datalen)) == KMFBER_DEFAULT)
407 if ((*buf = (char *)malloc((size_t)datalen - 1)) == NULL)
414 datalen--;
417 * datalen is being demoted to a long here -- possible conversion error
419 if (kmfber_read(ber, *buf, datalen) != (ber_slen_t)datalen)
422 *blen = datalen * 8 - unusedbits;