Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 14 of 14) sorted by relevance

/programs/ssl/
A Dssl_test_lib.h99 void my_debug(void *ctx, int level,
252 int delayed_recv(void *ctx, unsigned char *buf, size_t len);
253 int delayed_send(void *ctx, const unsigned char *buf, size_t len);
A Dssl_test_common_source.c198 static int recv_cb(void *ctx, unsigned char *buf, size_t len) in recv_cb() argument
200 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in recv_cb()
226 static int recv_timeout_cb(void *ctx, unsigned char *buf, size_t len, in recv_timeout_cb() argument
229 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in recv_timeout_cb()
251 static int send_cb(void *ctx, unsigned char const *buf, size_t len) in send_cb() argument
253 io_ctx_t *io_ctx = (io_ctx_t *) ctx; in send_cb()
A Dssl_test_lib.c23 void my_debug(void *ctx, int level, in my_debug() argument
36 mbedtls_fprintf((FILE *) ctx, "%s:%04d: |%d| %s", in my_debug()
38 fflush((FILE *) ctx); in my_debug()
353 int delayed_recv(void *ctx, unsigned char *buf, size_t len) in delayed_recv() argument
363 ret = mbedtls_net_recv(ctx, buf, len); in delayed_recv()
370 int delayed_send(void *ctx, const unsigned char *buf, size_t len) in delayed_send() argument
380 ret = mbedtls_net_send(ctx, buf, len); in delayed_send()
A Dssl_server2.c1111 if (ctx->slots_used >= sizeof(ctx->slots) / sizeof(*ctx->slots)) { in ssl_async_set_key()
1114 ctx->slots[ctx->slots_used].cert = cert; in ssl_async_set_key()
1115 ctx->slots[ctx->slots_used].pk = pk; in ssl_async_set_key()
1116 ctx->slots[ctx->slots_used].delay = delay; in ssl_async_set_key()
1117 ctx->slots[ctx->slots_used].pk_owned = pk_take_ownership; in ssl_async_set_key()
1118 ++ctx->slots_used; in ssl_async_set_key()
1195 ctx = mbedtls_calloc(1, sizeof(*ctx)); in ssl_async_start()
1196 if (ctx == NULL) { in ssl_async_start()
1199 ctx->slot = slot; in ssl_async_start()
1240 ctx->slot, ctx->remaining_delay); in ssl_async_resume()
[all …]
A Dssl_client1.c44 static void my_debug(void *ctx, int level, in my_debug() argument
50 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
51 fflush((FILE *) ctx); in my_debug()
A Ddtls_client.c60 static void my_debug(void *ctx, int level, in my_debug() argument
66 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
67 fflush((FILE *) ctx); in my_debug()
A Dssl_server.c55 static void my_debug(void *ctx, int level, in my_debug() argument
61 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
62 fflush((FILE *) ctx); in my_debug()
A Dssl_fork_server.c57 static void my_debug(void *ctx, int level, in my_debug() argument
63 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
64 fflush((FILE *) ctx); in my_debug()
A Ddtls_server.c68 static void my_debug(void *ctx, int level, in my_debug() argument
74 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
75 fflush((FILE *) ctx); in my_debug()
A Dssl_pthread_server.c69 static void my_mutexed_debug(void *ctx, int level, in my_mutexed_debug() argument
78 mbedtls_fprintf((FILE *) ctx, "%s:%04d: [ #%ld ] %s", in my_mutexed_debug()
80 fflush((FILE *) ctx); in my_mutexed_debug()
A Dssl_mail_client.c141 static void my_debug(void *ctx, int level, in my_debug() argument
147 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
148 fflush((FILE *) ctx); in my_debug()
/programs/test/
A Dgenerate_cpp_dummy_build.sh82 mbedtls_platform_context *ctx = NULL;
83 mbedtls_platform_setup(ctx);
85 mbedtls_platform_teardown(ctx);
A Dudp_proxy.c371 mbedtls_net_context *ctx; member
394 ret = mbedtls_net_send(buf->ctx, buf->data, buf->len); in ctx_buffer_flush()
451 static int dispatch_data(mbedtls_net_context *ctx, in dispatch_data() argument
459 if (outbuf[0].ctx == ctx) { in dispatch_data()
461 } else if (outbuf[1].ctx == ctx) { in dispatch_data()
473 ret = mbedtls_net_send(ctx, data, len); in dispatch_data()
868 outbuf[0].ctx = &server_fd; in main()
873 outbuf[1].ctx = &client_fd; in main()
/programs/x509/
A Dcert_app.c91 static void my_debug(void *ctx, int level, in my_debug() argument
97 mbedtls_fprintf((FILE *) ctx, "%s:%04d: %s", file, line, str); in my_debug()
98 fflush((FILE *) ctx); in my_debug()

Completed in 33 milliseconds