summaryrefslogtreecommitdiff
path: root/ecp/test
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-05-16 01:44:50 +0200
committerUros Majstorovic <majstor@majstor.org>2024-05-16 01:44:50 +0200
commit7f06f7fb26ee52547d30b620a4137bca0395da6d (patch)
tree43a6bee535afcef99f6ed9c35cc5ce5f927dfd47 /ecp/test
parente870fe53f71c88c636b7c4aadd5655c0fe15bde3 (diff)
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
Diffstat (limited to 'ecp/test')
-rw-r--r--ecp/test/dir.c2
-rw-r--r--ecp/test/init.c2
-rw-r--r--ecp/test/init_vconn.c2
3 files changed, 3 insertions, 3 deletions
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);