Lines Matching refs:buflen
284 const unsigned char *buf, size_t buflen)
325 if (buflen == 0) {
329 p = mbedtls_calloc(1, buflen);
334 memcpy(p, buf, buflen);
337 crl->raw.len = buflen;
339 end = p + buflen;
505 int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen)
522 if (buflen == 0 || buf[buflen - 1] != '\0') {
537 buflen -= use_len;
541 pem.buf, pem.buflen)) != 0) {
552 /* In the PEM case, buflen is 1 at the end, for the terminated NULL byte.
554 while (is_pem && buflen > 1);
560 return mbedtls_x509_crl_parse_der(chain, buf, buflen);