summaryrefslogtreecommitdiff
path: root/ecp/test/vc_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/test/vc_client.c')
-rw-r--r--ecp/test/vc_client.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ecp/test/vc_client.c b/ecp/test/vc_client.c
index 41c364d..af4a3cd 100644
--- a/ecp/test/vc_client.c
+++ b/ecp/test/vc_client.c
@@ -63,22 +63,25 @@ int main(int argc, char *argv[]) {
rv = ecp_sock_create(&sock, &ctx, &key_perma);
printf("ecp_sock_create RV:%d\n", rv);
+ rv = ecp_vconn_sock_create(&sock);
+ printf("ecp_vconn_htable_init RV:%d\n", rv);
+
rv = ecp_sock_open(&sock, NULL);
printf("ecp_sock_open RV:%d\n", rv);
rv = ecp_start_receiver(&sock);
printf("ecp_start_receiver RV:%d\n", rv);
- rv = ecp_util_load_pub(&node_pub, argv[1]);
- printf("ecp_util_load_pub RV:%d\n", rv);
+ rv = ecp_util_load_key(argv[1], &node_pub, NULL);
+ printf("ecp_util_load_key RV:%d\n", rv);
ecp_node_init(&node, &node_pub, NULL);
rv = ecp_node_set_addr(&node, argv[2]);
printf("ecp_node_set_addr RV:%d\n", rv);
for (i=3; i<argc; i++) {
- rv = ecp_util_load_pub(&vconn_pub[i-3], argv[i]);
- printf("ecp_util_load_pub RV:%d\n", rv);
+ rv = ecp_util_load_key(argv[i], &vconn_pub[i-3], NULL);
+ printf("ecp_util_load_key RV:%d\n", rv);
}
ecp_conn_init(&conn, &sock, CTYPE_TEST);