From 38fdc24c2cc0c942337481e825c69004c93fc358 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 27 Apr 2024 01:23:43 +0200 Subject: updated tests --- ecp/test/vc_inb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecp/test/vc_inb.c') diff --git a/ecp/test/vc_inb.c b/ecp/test/vc_inb.c index 13b493c..825d948 100644 --- a/ecp/test/vc_inb.c +++ b/ecp/test/vc_inb.c @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) { ecp_conn_handler_init(&handler, handle_msg, handle_open, NULL, NULL); ecp_ctx_set_handler(&ctx, CTYPE_TEST, &handler); - rv = ecp_util_load_key(&key_perma.public, &key_perma.private, argv[1]); + rv = ecp_util_load_key(argv[1], &key_perma.public, &key_perma.private); printf("ecp_util_load_key RV:%d\n", rv); key_perma.valid = 1; @@ -106,8 +106,8 @@ int main(int argc, char *argv[]) { rv = ecp_start_receiver(&sock); printf("ecp_start_receiver RV:%d\n", rv); - rv = ecp_util_load_pub(&dir_pub, argv[2]); - printf("ecp_util_load_pub RV:%d\n", rv); + rv = ecp_util_load_key(argv[2], &dir_pub, NULL); + printf("ecp_util_load_key RV:%d\n", rv); ecp_node_init(&node_dir, &dir_pub, NULL); rv = ecp_node_set_addr(&node_dir, argv[3]); -- cgit v1.2.3