- can now open multiple shells per peer (change LAIKA_MAX_SHELLS)
- more sanity checking for public keys (new peers with duplicate keys are killed
- misc. refactoring, added cnc/cpeer.[ch]
- since the shell task is only ran when the shell is open, i decreased the delta to 50ms. this should improve latancy while improving performance for 99% of the time. yay!
- shell now has it's own task service, it's polled in shellC_poll()
- default timeout for peers is 60 seconds, to change this edit the LAIKA_PEER_TIMEOUT in cnc.h
- LAIKAPKT_HANDSHAKE_REQ now only sends the bot's pub key
a shared key is generated using the other peer's pub key,
allowing for fully encrypted packet bodies, (packet ID is
left in plain-text)
- laikaS_startOutPacket(), laikaS_endOutPacket(),
laikaS_startInPacket() & laikaS_endInPacket() have been
added.
- laikaS_setSecure() has been added to turn on/off encrypted packets.
- genKey now generates kx keypairs
- major refactoring for relevant packet handlers
- variadic packets have been temporarily disabled