From 7f06f7fb26ee52547d30b620a4137bca0395da6d Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 16 May 2024 01:44:50 +0200 Subject: open handler moved to the end of open message; conn authenticator has access to remainder of open req msg; improved logging and error handling; removed extensions --- ecp/test/dir.c | 2 +- ecp/test/init.c | 2 +- ecp/test/init_vconn.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ecp/test') diff --git a/ecp/test/dir.c b/ecp/test/dir.c index 099ecbb..9c04432 100644 --- a/ecp/test/dir.c +++ b/ecp/test/dir.c @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { if (argc != 3) usage(argv[0]); - rv = ecp_ctx_init(&ctx, NULL, NULL, NULL, handle_err); + rv = ecp_ctx_init(&ctx, NULL, NULL, NULL, handle_err, printf); LOG("ecp_ctx_init", rv); rv = ecp_dir_set_handler(&ctx, &dir_handler, print_list); diff --git a/ecp/test/init.c b/ecp/test/init.c index fbf17c6..7004794 100644 --- a/ecp/test/init.c +++ b/ecp/test/init.c @@ -26,6 +26,6 @@ static void conn_free(ECPConnection *conn) { int ecp_init(ECPContext *ctx) { int rv; - rv = ecp_ctx_init(ctx, NULL, conn_new, conn_free, handle_err); + rv = ecp_ctx_init(ctx, NULL, conn_new, conn_free, handle_err, printf); return rv; } diff --git a/ecp/test/init_vconn.c b/ecp/test/init_vconn.c index ba72c01..273ae5d 100644 --- a/ecp/test/init_vconn.c +++ b/ecp/test/init_vconn.c @@ -51,7 +51,7 @@ static void conn_free(ECPConnection *conn) { int ecp_init(ECPContext *ctx, ECPConnHandler *vconn_handler, ECPConnHandler *vlink_handler) { int rv; - rv = ecp_ctx_init(ctx, NULL, conn_new, conn_free, handle_err); + rv = ecp_ctx_init(ctx, NULL, conn_new, conn_free, handle_err, printf); if (rv) return rv; rv = ecp_vconn_handler_init(ctx, vconn_handler); -- cgit v1.2.3