Lines Matching defs:buf
135 unsigned char const *buf, size_t len)
146 memcpy(tmp_buf, buf, len);
152 memcpy(tmp_buf, buf, len); /* Restore buffer */
198 int recv_cb(void *ctx, unsigned char *buf, size_t len)
205 ret = delayed_recv(io_ctx->net, buf, len);
207 ret = mbedtls_net_recv(io_ctx->net, buf, len);
218 if (ssl_check_record(io_ctx->ssl, buf, recv_len) != 0) {
226 int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len,
233 ret = mbedtls_net_recv_timeout(io_ctx->net, buf, len, timeout);
243 if (ssl_check_record(io_ctx->ssl, buf, recv_len) != 0) {
251 int send_cb(void *ctx, unsigned char const *buf, size_t len)
256 return delayed_send(io_ctx->net, buf, len);
259 return mbedtls_net_send(io_ctx->net, buf, len);
322 int x509_crt_verify_info(char *buf, size_t size, const char *prefix,
326 return mbedtls_x509_crt_verify_info(buf, size, prefix, flags);
330 char *p = buf;