heck
7ba7ae6388
Test: test_adapter_cxx - cosmetic changes only
2 years ago
heck
04a73cce6f
Sync thread handling could be simplified.
Remove the barrier waiting for FSM init. This COULD be a problem.
But currently its not possible anymore because of the design.
IF we need to this, one option is to have another callback from the engine. Or move FSM init out of do_sync_protocol().
2 years ago
heck
3428cd1177
Session retrieval throws if the Session handling has not been initialized.
2 years ago
heck
d4bf1c1a5d
rewrite session creation function _new() / register all callbacks at session creation
remove the possibility to change SYNC/ASYNC handling of sync events at runtime.
It has to be defined at Session::initialize() and cannot be changed anymore. This is not needed.
2 years ago
heck
80d01111cf
rename refresh() to _new()
a session CANNOT be refreshed.
The reason of the whole excercise it to guarantee that all sessions created will have the same callback functions registered on the engine (the ones from the CallbackDispatcher)
2 years ago
heck
3f2de09de8
var rename only
2 years ago
heck
8cb697c31d
add logging to Session constructor
2 years ago
heck
7651712670
create sections for separate concerns Session/Sync/Passphrase/Error
to be refactored into own modules.
2 years ago
heck
7d8accd983
formatting and comments only
2 years ago
heck
7b1f8eb90a
move err-handling code to bottom
should go into own module later
2 years ago
heck
b9f9bb6cc0
standards: uniform init always
2 years ago
heck
5351251aab
Default pp-timeout set to 3h
3 years ago
heck
3976ca39f1
Test: Add resources/keys to this repo
dont use the engine test folder.
3 years ago
heck
86b96100d4
Test: Add resources/keys
3 years ago
heck
d1faffcdb8
Test: Makefile cleanup
3 years ago
heck
3bcb00ab58
Fix: call register_sync_callbacks() ONLY in sync thread.
No other session/thread will have sync callbacks registered.
This is essentially reverting a change that has been done for 3.0, but i think it was wrong
3 years ago
heck
1d259cfda4
Test: update test_ensure_passphrase.cc
3 years ago
heck
85166f524a
Test: Start merging the 2 test frameworks
3 years ago
heck
972e975374
Fix: add 'PEP_KEY_IMPORTED' to NOT 'errors'
3 years ago
heck
67e830123c
Build: Fix missing CFLAGS (used for sqlite3 amalgamation only)
3 years ago
heck
c3a8a75c48
Corrected order of initialization
The C++ standards requires the order of init to be the order of declaration
3 years ago
heck
ea156f1467
grp_driver_dummy.cc - Removed nonsensical line
3 years ago
heck
f7c2714a14
Fix: fix sqlite.h include clash on at least macOS.
macOS system sqlite.h changed and now the include guard token is _SQLITE3_H_ instead of SQLITE3_H as in the amalgamation. yay.
3 years ago
heck
104cf13e6b
Build: remove double def of -fPIC (Plus add more warnings)
3 years ago
Luca Saiu
cc6dd23337
trivial build system fix
* test/Makefile (LDLIBS): Link libraries in a different order, respecting
dependencies.
3 years ago
heck
f14567078d
.clang-tidy: allow implicit bool conversion
3 years ago
heck
2dfe331cec
passphrase_cache: coding conventions / readability
3 years ago
heck
b302a3a2cb
passphrase_cache: missing init
3 years ago
heck
f53f1d73f5
passphrase_cache: avoid copies (use const&)
3 years ago
heck
597bc1a76e
passphrase_cache: Coding conventions / formatting
3 years ago
heck
239f2de011
pEpSQLite: TODO non-copyable
3 years ago
heck
7aa3fb35a1
grp_driver_dummy: useless const in func decl
3 years ago
heck
137ef2b7c4
grp_driver_replicator: useless const in func decl
3 years ago
heck
099c0b29bf
grp_manager_interface: useless const in func decl
3 years ago
heck
32392ef307
passphrase_cache: avoid copy
3 years ago
heck
3002929d45
passphrase_cache: coding conventions (readability)
3 years ago
heck
f3b96d7881
passphrase_cache: uninitialized var
3 years ago
heck
9be03de9b9
pEpSQLite: rule of 5 (non copyable explicitly)
3 years ago
heck
687d43d02c
pEpSQLite: superflous constructs
3 years ago
heck
a540460e53
listmanager_dummy.hh: add TODO rule of 5
3 years ago
heck
60a902ee02
group_manager_api.h: useless const in func decl
3 years ago
heck
8446aa9e8b
CallbackDispatcher: use move semantics
3 years ago
heck
68c778ba1b
CallbackDispatcher: 'auto' does not AUTO declare const'ness or pointer/value semantics (use const&)
3 years ago
heck
cf8f500ba8
CallbackDispatcher: unused include
3 years ago
heck
e4ee4a9852
Adapter class: formatting and code style
3 years ago
heck
a3037609a2
Adapter class: superflous constructs
3 years ago
heck
6b76d9bf8b
Adapter class: dont call static method on object
3 years ago
heck
a9d01f54b1
Adapter class: missing initialization
3 years ago
heck
f5b82bd7dc
Adapter class: unused includes
3 years ago
heck
32b3e88a79
Adapter class: make explicitly non-copyable
3 years ago