Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Nacl requires an implementation of randombytes. The version offered by
nacl has a strange behaviour (e.g. indefinite blocking in case
/dev/urandom is unavailable) and is hard to portably link (.o file in
some lib directory). It is thus replaced with an own implementation
(that does proper error handling by the way).
|
|
|
|
|
|
|
|
|
|
- handler is moved to example/handler
- example keys can be found in example/keys (which is intended as root
for HBBP_KEYDIR)
|
|
hbbp_keygen generates all four keys private, public for sender and
receiver with the file names used in hbbp[cd] in the current working
directory.
|
|
This patch uses the NaCL library to en-/decrypt and authenticate the
payload suitable private and public keys are found. It
- adds crypto.h, containing all crypto logic (including the detection
if the packet is to be en-/decrypted)
- adds nacl dependency to Makefile (including a switch between
internal and external nacl)
It also
- changes Makefile to build with -Werror -Wextra
- builds warning-free
|
|
|
|
referring to the implemented home brew broadcast protocol
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To allow binary save payload transmission:
- broadcaster reads the payload from stdin if the 2nd param is "-"
- listener passes the payload via stdin to all handlers
|
|
|
|
|
|
builds now when placed in backfire/package
untested if used with feeds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Service multiplexing
Broadcaster call signature is changed to
broadcaster host service [message]
to acommodate multiple sevices listening on the same port for
broadcast information.
* Receiver Loop
Listener now loops infinitely instead of returning after the first
packet. For each packet with the content service[,message] the
programm
service [message]
will be executed. Upward directory traversal is prohibited (and
detected).
To prevent DoS only one service program runs concurrently.
* Common.h
Port numbers and maximum message sizes are now stored in
common.h. Broascaster respects max. message size.
|
|
|