aboutsummaryrefslogtreecommitdiff
path: root/src/DatabaseStorage.cpp
AgeCommit message (Collapse)Author
2019-04-07Use argon2d instead of argon2iAleksi Lindeman
We want gpu-resistance instead of side-channel attack resistance since password is hashed locally.
2019-01-27Rethrow exception instead of copyAleksi Lindeman
2018-11-09Append user to group if user already exists instead of throwingAleksi Lindeman
2018-11-01Make operation callback funcs synchronousAleksi Lindeman
2018-10-21Add database object to callback funcsdec05eba
2018-10-19Fix password salt not stored, generating a new salt everytimedec05eba
2018-10-16Replace opendht with sibs pubsubdec05eba
This should fix issues with memory usage/leaks and make it easier to get peers subscribed to the same key. It will also be easier to modify and also works easier cross platform because of no additional dependencies.
2018-07-18Add method to get user lowest permission leveldec05eba
2018-05-30Add flag for data loaded from cachedec05eba
2018-05-21Ping node before sending old datadec05eba
2018-05-16Fix node raw data bug (data type mismatch), add debug statementsdec05eba
2018-05-16Fix memory leak (mismatch free/delete/delete[]), fix invalid memory accessdec05eba
2018-05-16Store node encryption key with user data, fix encryption bug when using ↵dec05eba
additional data
2018-05-16Return stored node users decrypted as hash map instead of vectordec05eba
2018-05-16Add method to get user groupsdec05eba
2018-05-15Allow storing user without nodesdec05eba
2018-05-15Add methods to store/retrieve encrypted user (using argon2 for hash)dec05eba
2018-05-15Store known remote nodes and connect to them next timedec05eba
2018-05-15Implement exception safe sqlite transaction class (rollback)dec05eba
2018-05-14Implement node load/fetch orderdec05eba
2018-05-14Only download nodes that we are missingdec05eba
2018-05-14Remove user/group classes, user public key/group id directly to database insteaddec05eba
2018-05-14Replace files with sqlitedec05eba
Using sqlite because sqlite has transactions, storing/loading from files automatically, unloading data that is not accessed often. Removed cosmetic data (node name, username). They can be added using addData by the application that uses odhtdb instead. Database callback functions can now be called with stored data using database.loadNode function. TODO: Add local user storage (with password) back, it has been temorary disabled
2018-05-03Temporary remove timestamp checkdec05eba
2018-05-01Update ntp dependency with bug fix, make error messages betterdec05eba
2018-05-01Update storage versiondec05eba
2018-04-28Add stop seeding functiondec05eba
2018-04-28Add decryption (and caching) of data, even when adding encryption key after ↵dec05eba
data has been added
2018-04-27Change local storage to fit dchat betterdec05eba
2018-04-27Add local user storage function (locally stored encrypted user private key)dec05eba
2018-04-25Store opendht identity in storage file (cached)dec05eba
2018-04-14Store database storage to files, also loadingAleksi Lindeman
2018-03-13Expose include dirAleksi Lindeman
2018-03-13Use result of set::insert to determinate if data already existsAleksi Lindeman
Instead of using .find (::insert uses find)
2018-03-13Fix add data operation not working correctlyAleksi Lindeman
Reminder: do not get reference to hash map value... duh Add thread-safe logging (log is in order now!). Store data immediately to database when WE add it instead of waiting for response from remote peers. TODO: Test with multiple peers (not only localhost)
2018-03-11Add operation to allow users to be added to groupAleksi Lindeman
WARNING! Lazy implementation everywhere, does not handle out-of-order packets
2018-03-09Partially implement 'add' operationAleksi Lindeman
2018-03-05Implement 'create' operation, add seedingAleksi Lindeman
Seeding is currently only done on the key you specify, in the future the user should request data that it can seed.
2018-03-05Add encryption functions (xchacha20)Aleksi Lindeman
Changed license to GPL 3.0 because of incompatible license with opendht. Should odhtdb stay GPL 3.0 or should opendht be replaced with libdht so license can be changed back to MIT?
2018-02-13Add database storage (in memory), need to store it on disk laterAleksi Lindeman