Lines Matching defs:buflen
266 const unsigned char *buf, size_t buflen,
280 if (csr == NULL || buf == NULL || buflen == 0) {
289 p = mbedtls_calloc(1, len = buflen);
295 memcpy(p, buf, buflen);
435 const unsigned char *buf, size_t buflen)
437 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, NULL, NULL);
444 const unsigned char *buf, size_t buflen,
448 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, cb, p_ctx);
454 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen)
465 if (csr == NULL || buf == NULL || buflen == 0) {
471 if (buf[buflen - 1] == '\0') {
488 ret = mbedtls_x509_csr_parse_der(csr, pem.buf, pem.buflen);
497 return mbedtls_x509_csr_parse_der(csr, buf, buflen);