Add session, value as string and expiration
authorJose Bollo <jose.bollo@iot.bzh>
Wed, 19 Sep 2018 12:52:03 +0000 (14:52 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Thu, 20 Sep 2018 21:39:57 +0000 (23:39 +0200)
commit4123ffb189acd0c18cddd0df75a58cbc3276ad80
treea393e83dce5f57c7db0ab5475841c86829468ebe
parent7ae3477d84ae13c5e9ef9bb1980a8f70f8b7e9bf
Add session, value as string and expiration

The DB now records sessions. It has expiration
management (currently coarse: ~16s, see db.c)
that is propagated to caches.

Values are now strings. Default values are
"yes" and "no" for allowed or denied permissions.

new program: cynadm

Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
20 files changed:
cynara.initial
src/.gitignore [deleted file]
src/CMakeLists.txt
src/Makefile [deleted file]
src/cache.c
src/cache.h
src/cyn.c
src/cyn.h
src/db.c
src/db.h
src/lib-compat.c
src/main-cynadm.c [new file with mode: 0644]
src/main-cynarad.c
src/main-test-old-cynara.c [moved from src/test-lib-compat.c with 100% similarity]
src/queue.c
src/queue.h
src/rcyn-client.c
src/rcyn-client.h
src/rcyn-protocol.txt
src/rcyn-server.c