From 3e50c4990f4703e2c04d0f959d33e36504d43716 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 20 Jan 2018 19:14:12 +0100 Subject: fixed vconn interface --- code/ecp/vconn/vconn.c | 5 ++++- code/ecp/vconn/vconn.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'code/ecp') 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); -- cgit v1.2.3