summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-20 19:14:12 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-20 19:14:12 +0100
commit3e50c4990f4703e2c04d0f959d33e36504d43716 (patch)
tree4fa40713831e4920ed69ee7f6c9f147c658be560 /code
parent1847482a7bc975e8a171cd1df9257647ab6b66f5 (diff)
fixed vconn interface
Diffstat (limited to 'code')
-rw-r--r--code/ecp/vconn/vconn.c5
-rw-r--r--code/ecp/vconn/vconn.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/code/ecp/vconn/vconn.c b/code/ecp/vconn/vconn.c
index a11f8fd..9980855 100644
--- a/code/ecp/vconn/vconn.c
+++ b/code/ecp/vconn/vconn.c
@@ -513,9 +513,12 @@ static ssize_t vconn_pack_raw(ECPSocket *sock, ECPConnection *parent, ECPBuffer
}
*/
-int ecp_ctx_vconn_init(ECPContext *ctx) {
+int ecp_ctx_create_vconn(ECPContext *ctx) {
int rv;
+ rv = ecp_ctx_create(ctx);
+ if (rv) return rv;
+
rv = ecp_conn_handler_init(&handler_vc);
if (rv) return rv;
diff --git a/code/ecp/vconn/vconn.h b/code/ecp/vconn/vconn.h
index 07832c7..dbf51f1 100644
--- a/code/ecp/vconn/vconn.h
+++ b/code/ecp/vconn/vconn.h
@@ -16,7 +16,7 @@ typedef struct ECPVConnIn {
unsigned char key_out[ECP_ECDH_SIZE_KEY];
} ECPVConnIn;
-int ecp_ctx_vconn_init(ECPContext *ctx);
+int ecp_ctx_create_vconn(ECPContext *ctx);
int ecp_vconn_init(ECPConnection *conn, ECPNode *conn_node, ECPVConnection vconn[], ECPNode vconn_node[], int size);
int ecp_vconn_open(ECPConnection *conn, ECPNode *conn_node, ECPVConnection vconn[], ECPNode vconn_node[], int size);