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