summaryrefslogtreecommitdiff
path: root/ecp/test/vc_inb.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/test/vc_inb.c')
-rw-r--r--ecp/test/vc_inb.c6
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]);