diff options
Diffstat (limited to 'code/ecp')
-rw-r--r-- | code/ecp/vconn/vconn.c | 5 | ||||
-rw-r--r-- | code/ecp/vconn/vconn.h | 2 |
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); |