Home
last modified time | relevance | path

Searched refs:io_ctx (Results 1 – 3 of 3) sorted by relevance

/mbedtls-3.5.0/programs/ssl/
Dssl_test_common_source.c212 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in recv_cb() local
217 ret = delayed_recv(io_ctx->net, buf, len); in recv_cb()
219 ret = mbedtls_net_recv(io_ctx->net, buf, len); in recv_cb()
230 if (ssl_check_record(io_ctx->ssl, buf, recv_len) != 0) { in recv_cb()
241 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in recv_timeout_cb() local
245 ret = mbedtls_net_recv_timeout(io_ctx->net, buf, len, timeout); in recv_timeout_cb()
255 if (ssl_check_record(io_ctx->ssl, buf, recv_len) != 0) { in recv_timeout_cb()
265 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in send_cb() local
268 return delayed_send(io_ctx->net, buf, len); in send_cb()
271 return mbedtls_net_send(io_ctx->net, buf, len); in send_cb()
Dssl_client2.c735 io_ctx_t io_ctx; in main() local
2084 io_ctx.ssl = &ssl; in main()
2085 io_ctx.net = &server_fd; in main()
2086 mbedtls_ssl_set_bio(&ssl, &io_ctx, send_cb, recv_cb, in main()
Dssl_server2.c1471 io_ctx_t io_ctx; in main() local
3252 io_ctx.ssl = &ssl; in main()
3253 io_ctx.net = &client_fd; in main()
3254 mbedtls_ssl_set_bio(&ssl, &io_ctx, send_cb, recv_cb, in main()