Commit Graph

13 Commits

Author SHA1 Message Date
CPunch 9432aaf594 Minor cmake refactoring 2022-03-14 00:51:11 -05:00
CPunch 76c5899ed5 Vendored LibSodium to make compilation easier 2022-03-13 21:48:09 -05:00
CPunch f8ac74881e updated README, minor CMake improvements 2022-02-18 15:26:29 -06:00
CPunch 291c4479ff Statically link LibSodium, updated README 2022-02-17 17:57:08 -06:00
CPunch fb731cfe48 Moved vendor sources to lib/vendor 2022-02-17 17:38:34 -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 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 1630f6277f Moved CMAKE_C_STANDARD to the root CMakeLists.txt 2022-01-30 01:20:47 -06:00
CPunch 6fb8aa9b8a Refactored how CMake passes version & settings info
- keys can now be passed per-build passing -DLAIKA_PUBKEY=[pubkey] & -LAIKA_PRIVKEY=[pubkey] to `cmake -B`
- if those definitions aren't passed, the default public & private key will be used (for quick testing)
2022-01-30 01:15:51 -06:00
CPunch 203b5ce38f Added LibSodium, new tools/, genKey, sLaika_peer::type
- sLaika_peer has a new member, (PEERTYPE)type
- LibSodium dependency added
2022-01-27 13:36:36 -06:00
CPunch 04f02b4371 Protected handler calls in bot.c
- Added support for LAIKAPKT_HANDSHAKE_RES
2022-01-25 11:58:36 -06:00
CPunch 1bccc78117 First actual runnable version
- many warnings & bug fixes
- added bot/ source
2022-01-24 21:46:29 -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