Lines Matching refs:buf
46 unsigned char *buf; in mbedtls_x509_write_set_san_common() local
91 buf = mbedtls_calloc(1, buflen); in mbedtls_x509_write_set_san_common()
92 if (buf == NULL) { in mbedtls_x509_write_set_san_common()
95 p = buf + buflen; in mbedtls_x509_write_set_san_common()
114 &p, buf, in mbedtls_x509_write_set_san_common()
117 &p, buf, unstructured_name_len)); in mbedtls_x509_write_set_san_common()
120 &p, buf, in mbedtls_x509_write_set_san_common()
126 mbedtls_x509_write_names(&p, buf, in mbedtls_x509_write_set_san_common()
131 mbedtls_asn1_write_len(&p, buf, single_san_len)); in mbedtls_x509_write_set_san_common()
133 mbedtls_asn1_write_tag(&p, buf, in mbedtls_x509_write_set_san_common()
152 MBEDTLS_ASN1_CHK_CLEANUP_ADD(len, mbedtls_asn1_write_len(&p, buf, len)); in mbedtls_x509_write_set_san_common()
154 mbedtls_asn1_write_tag(&p, buf, in mbedtls_x509_write_set_san_common()
162 buf + buflen - len, len); in mbedtls_x509_write_set_san_common()
166 if (p < buf) { in mbedtls_x509_write_set_san_common()
170 mbedtls_free(buf); in mbedtls_x509_write_set_san_common()