| /programs/ssl/ |
| A D | ssl_test_lib.h | 99 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 D | ssl_test_common_source.c | 198 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 D | ssl_test_lib.c | 23 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 D | ssl_server2.c | 1111 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 D | ssl_client1.c | 44 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 D | dtls_client.c | 60 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 D | ssl_server.c | 55 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 D | ssl_fork_server.c | 57 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 D | dtls_server.c | 68 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 D | ssl_pthread_server.c | 69 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 D | ssl_mail_client.c | 141 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 D | generate_cpp_dummy_build.sh | 82 mbedtls_platform_context *ctx = NULL; 83 mbedtls_platform_setup(ctx); 85 mbedtls_platform_teardown(ctx);
|
| A D | udp_proxy.c | 371 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 D | cert_app.c | 91 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()
|