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