diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-04-27 01:23:43 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-04-27 01:23:43 +0200 |
commit | 38fdc24c2cc0c942337481e825c69004c93fc358 (patch) | |
tree | 46835e29b2ae3db88035c26359415c22587b777c /ecp/test/vc_inb.c | |
parent | 45e53e043ea0512215316a5ba21bd4cfd0a300e1 (diff) |
updated tests
Diffstat (limited to 'ecp/test/vc_inb.c')
-rw-r--r-- | ecp/test/vc_inb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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]); |