diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-05-23 04:12:25 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-05-23 04:12:25 +0200 |
commit | 922e8313f2b3f6157a61b3c867fdc3832bb92a68 (patch) | |
tree | e139071e3d012eb70627e83e314e1f02eab5e1db /code/core.c | |
parent | db066407cbcc5905c21314000acbe34e5d6968ef (diff) |
implemented exec
Diffstat (limited to 'code/core.c')
-rw-r--r-- | code/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code/core.c b/code/core.c index 821487e..ed083a0 100644 --- a/code/core.c +++ b/code/core.c @@ -739,6 +739,11 @@ ssize_t ecp_conn_handle_kput(ECPConnection *conn, unsigned char mtype, unsigned return ECP_ERR; } +ssize_t ecp_conn_handle_exec(ECPConnection *conn, unsigned char mtype, unsigned char *msg, ssize_t size) { + if (size < 0) return size; + return ecp_pkt_handle(conn->sock, NULL, conn, msg, size); +} + static ssize_t _conn_send_kput(ECPConnection *conn, ECPTimerItem *ti) { unsigned char payload[ECP_SIZE_PLD(ECP_ECDH_SIZE_KEY+1)]; unsigned char *buf = ecp_pld_get_buf(payload); |