Commit Graph

23 Commits

Author SHA1 Message Date
CPunch 13398dbdf6 lsocket.[ch] & lpeer.c: migrated to new vector API 2022-09-01 19:05:56 -05:00
CPunch a7a938c9e8 Bot: fix shell header includes (x2) 2022-06-27 19:48:43 -05:00
CPunch 692b3c6137 Lib: fix windows headers 2022-06-27 19:11:43 -05:00
CPunch 48fa8935c3 Added .clang-format, formatted codebase 2022-06-27 18:57:00 -05:00
CPunch c4c5bc9ce5 Lib: Added support for IPV6 connections 2022-06-04 10:11:28 -05:00
CPunch 83002faa62 Lib: minor refactoring, more lcontent.c boilerplate 2022-05-17 10:37:58 -05:00
CPunch c4fc1a1fe6 misc. refactoring, updated comments and minor documentation 2022-05-10 21:03:23 -05:00
CPunch 5ece351025 Moved setPollIn flag to sLaika_socket from sLaika_peer 2022-03-27 17:32:32 -05:00
CPunch 7baced7b8f Refactored polling, lpolllist.c now handles poll events & flushes the poll queue
- Sockets now have event callbacks, onPollIn, onPollOut & onPollFail. If these are set to NULL they're ignored
2022-03-24 10:26:06 -05:00
CPunch 6f60c7a5b7 Added OSTYPE, added OS info to handshake & peer-related packets 2022-03-17 23:05:18 -05:00
CPunch 0c2d4968d9 Refactored LAIKAPKT_HANDSHAKE_REQ, laikaS_acceptFrom
- added inet member to peer structs
2022-03-04 20:17:03 -06:00
CPunch c092d5a9a0 Deprecated panel, added shell, lrsa.h -> lsodium.h
- Refactoring
2022-02-24 22:13:05 -06:00
CPunch c21be8dfee Added hostname, ip info to handshake
- Panel now lists bots by hostname & ip instead of public key
2022-02-15 16:57:21 -06:00
CPunch 49a992c70a Added panel-specific packets
- laikaP_iterList for iterating over pollList
- laikaS_consumeRead for throwing away padding or otherwise unneeded bytes
	in the socket's inbuffer
- incremented minor version
2022-02-10 16:56:40 -06:00
CPunch 85d6cdcba1 refactored laikaS_*Packet functions, added debugging output 2022-02-03 20:51:32 -06:00
CPunch dd173ee422 Key exchange refactoring!
- 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
2022-02-03 16:25:49 -06:00
CPunch 56c6db1d62 Added laikaS_readENC laikaS_writeENC, minor refactoring 2022-01-29 00:26:15 -06:00
CPunch 2a0e34dd5a Added LAIKAPKT_HANDSHAKE_REQ support to cnc.c
- minor refactoring
- fixed CMakeLists.txt for cnc & bot
2022-01-25 12:13:04 -06:00
CPunch 1bccc78117 First actual runnable version
- many warnings & bug fixes
- added bot/ source
2022-01-24 21:46:29 -06:00
CPunch ed3efdaf11 Added laikaS_readInt() & laikaS_writeInt()
- new member for the sLaika_sock struct, 'flipEndian'
2022-01-24 20:50:14 -06:00
CPunch c0aa8d2724 started cnc.[ch], lpeer.c no longer catches errors, instead cnc.c handles error events 2022-01-24 10:34:30 -06:00
CPunch 48eebc1951 Added laikaS_acceptFrom() to lsocket.h, added LAIKA_MAGIC & LAIKA_MAGICLEN 2022-01-24 10:17:54 -06:00
CPunch 8133a8d3cb Inital commit
lib/ is just [FoxNet](https://git.openpunk.com/CPunch/FoxNet) ported to C99
2022-01-23 21:28:16 -06:00