Lines Matching defs:buf
266 const unsigned char *buf, size_t buflen,
280 if (csr == NULL || buf == NULL || buflen == 0) {
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') {
476 buf, NULL, 0, &use_len);
481 buf, NULL, 0, &use_len);
488 ret = mbedtls_x509_csr_parse_der(csr, pem.buf, pem.buflen);
497 return mbedtls_x509_csr_parse_der(csr, buf, buflen);
508 unsigned char *buf;
510 if ((ret = mbedtls_pk_load_file(path, &buf, &n)) != 0) {
514 ret = mbedtls_x509_csr_parse(csr, buf, n);
516 mbedtls_zeroize_and_free(buf, n);
528 int mbedtls_x509_csr_info(char *buf, size_t size, const char *prefix,
536 p = buf;