Commit Graph

142 Commits (28c5dc759e8fae298eb07ab982d18b5f831f2880)

Author SHA1 Message Date
Roker 9c52f13bcc *sigh* okay, due to strange Engine's API we have to give a function ptr to JsonAdapter::startup(). 4 years ago
Roker 3bea2ea578 make the JsonAdapter a proper singleton: private default c'tor. mutexed getInstance() method instead. 4 years ago
Roker 70ed7749b7 big refactoring. move all non-library stuff from JsonAdapter into mini-adapter-impl. But injectSyncMsg is still an issue, because the JsonAdapter calls init() and init() has this fn ptr as parameter. :-/ 4 years ago
Roker 042bfe038c remove JsonAdapter::first_session (moved into and call_with_lock(): moved into libpEpAdapter. 4 years ago
Roker 549a512732 rename all "pep" in file names etc. into "pEp" as required by pEp branding rules. 4 years ago
Roker 5489f9bd27 JSON-118 JsonAdapter is singleton, so ignore the "arg" and "obj" and "management" pointer parameters. Just use that goddam singleton. *sigh* 4 years ago
Roker 20ff971c51 add some more checks and see why JSON-118 might crash 4 years ago
Roker 7abef2257a messageToSend() never worked. Now it is used by the Engine and ... crashed. Oops... 4 years ago
Roker 4b658f04a6 remove my own slurp(), because it is in the Lib now. Adopt API change from time_t to unsigned. 5 years ago
Roker 74b82b5aa5 libpEpAdapter header now in /pEp/ subdir. :-) 5 years ago
Roker e9a24da8ac move status_to_string() to libpEpAdapter. 5 years ago
Roker b238e44cc9 remove keserver_lookup_session from do_keymanagement(). 5 years ago
Roker 9d9306f58a notifyHandshake() is now also without obj ptr :-( 5 years ago
Roker 58f237f03f merge "default" into JSON-107 5 years ago
Roker 1a87238d13 move the register_sync_callback() into the thread function 5 years ago
Roker 5fa7f8040d register_sync_callbacks() with normal session now, because there is no sync_session anymore? 5 years ago
Roker 331a54b098 okay. JsonAdapter is a singleton now. :-( What about startSync() and stopSync()? 5 years ago
Roker 1a69ebaba2 merge default into JSON-107. 5 years ago
Roker bb05a4637f unfinished 5 years ago
Claudio Luck cd94572a41 speed things up, a lot 5 years ago
Roker 3b80057ae0 make HTML & JS delivery optional 5 years ago
Roker 7f67dad613 Use the Logger class in ev_server 5 years ago
Roker b43edf229a use the Logger class in the JsonAdapter class incl. different log levels for debug/info/errors etc. 5 years ago
Lars Rohwedder 2f2466a8ca Less segfaults. More run. 5 years ago
Lars Rohwedder 41221140ca Let's the JsonAapter class use the new Logger. 5 years ago
Roker ebc53502c3 okay, MSVC still insits to have symbols that nobody needs, not even MSVC itself. Braindead. m( 5 years ago
Roker 72a28e40a7 big refactoring for ParamFlag parameter of In<> and Out<> 5 years ago
Claudio Luck 618fc4bfe9 simpler workaround for strange try/non-catch problem 5 years ago
Claudio Luck 502729de14 merge default up to release_enigmail_2.0.0 5 years ago
Claudio Luck 5b1566a0fe true daemon, copy-up retvals, wait for init complete via pipe
- fork first, then initialize in daemon process
 - use intermediate processes to copy up return values
 - use transient pipe to get feedback from daemon
5 years ago
Roker dab4f13aaa fix the fork() problem on MacOS (it existed on Linux, too, but ad no impact). New version 0.12.2 "(35) Bad Berleburg". 5 years ago
Roker 1cb4ad307f Don't log to stderr if not necessary. ev_server methods now also uses the configured logfile. :-) 5 years ago
Roker 1d316ddb75 add set_own_key(). new API version 0.11.0 5 years ago
Claudio Luck 085f537336 daemonize(): double-fork and use pipe(2) to report back 5 years ago
Claudio Luck 024603cf92 Revert make a call to init() before daemonize() 5 years ago
Lars Rohwedder 141d93ef50 new version "(34) Erndtebrück": remove apiVersion(), change version() to return a semver-compatible version number in a JSON object. 5 years ago
Roker 9ea26ebf88 make a call to init() before daemonize() so we can still print errors to stderr. Needed by Enigmail. 5 years ago
Roker d22cbb0323 #fix JSON-70 again: "Cannot create session!" is now _always_ printed to stderr, regardless of log settings, because Enigmail needs this. 5 years ago
Roker d124def6e8 okay, don't share event_base and evhttp objects between threads. :-/ 5 years ago
Roker ef6d9e0c98 refactored. now it compiles great again! 5 years ago
Roker 185f084f00 change log output, add -levent_pthread for Linux 5 years ago
Roker 43700d1d1e JSON-69: separate binding and run(). 5 years ago
Roker 673e78f82c JSON-70: print verbose error message to stderr befor throw std::runtime_error(), because the exception message is not printed to stderr on all platforms. -.- 5 years ago
Roker f0b92e310b JSON-70: add command line parameter --ignore-missing-session to ignore session errors. UNTESTED, YET. USE AT OWN RISK! 5 years ago
Roker ade541d7bc okay, lambda functions are a bad idea when you try to access the this ptr… lession learned. 5 years ago
Roker d38e9612b9 just call exit(0) in JsonAdapter::shutdown(). Should be enough that JSON-41 can be considered als "done so far..." 5 years ago
Roker 670418969b 5 years ago
Roker b78b9ae62c unify logging of session registry. strange, the bug vanished… 5 years ago
Roker e1d6b5a37e merge "default" into JSON-54 and solve some merge conflicts. I hope, I got all of them. 6 years ago
Roker b616feb7d2 add function shutdown() to the API. but it does not work, yet! 6 years ago