csoler
461ccf3b84
removed aliasing in storeMessages/storeGroups, removed several memory leaks in unittests, improved auto-delete structures in rsgxsutil, added deletion for members of RsGenExchange, removed shared pointers from unittests (they cause a memory leak and are only used in unittests)
2017-07-25 00:07:53 +02:00
csoler
02424240a0
reverting last commit that causes crashes
2017-07-22 12:08:28 +02:00
csoler
9e2241a940
attempt to fix memory leak in RsGenExchange. To be tested.
2017-07-21 23:15:50 +02:00
Phenom
f193af2865
Fix warning: unused parameter ‘size’
...
/libretroshare/src/gxs/rsgenexchange.cc:3079: warning: unused parameter
‘size’ [-Wunused-parameter]
bool RsGenExchange::acceptNewMessage(const RsGxsMsgMetaData* /
*grpMeta*/,uint32_t size ) { return true; }
2017-07-16 20:41:01 +02:00
csoler
c1e18c7fe6
fixed bug causing an infinite subscribe/unsubscribe loop in GxsTrans
2017-07-05 22:12:56 +02:00
csoler
dc605c02f1
added a last modif TS in GrpNetworkStats, that is inited from network Grp statistics, and used to provide a value for unsubscribed groups
2017-06-29 13:15:39 +02:00
csoler
f37ba83c07
moved msg keep period settings to netService and made the initialisation obei the default settings of the service
2017-06-28 23:12:33 +02:00
csoler
25565a7ecd
merged upstream/master
2017-06-15 23:58:29 +02:00
csoler
26bb865d29
added code to reject messages based on existing per-user statistics
2017-06-15 19:32:31 +02:00
csoler
09ff94c9ec
added new virtual method to refuse incoming msgs (similar to groups) in RsGenExchange, and used it in p3GxsTrans to refuse msgs from peers who send too much
2017-06-14 23:19:52 +02:00
csoler
79825eb2e2
fixed thread issue in RsGxsCleanupThread that caused random crashes
2017-06-12 20:36:02 +02:00
csoler
4cb7522feb
added deleted gxs messages to the reject list of GxsNetService to avoid re-downloading them right away
2017-06-07 21:41:00 +02:00
Gioacchino Mazzurco
ccaf4881a8
Merge branch 'master' into qmlapp_pex_alpha
2017-05-08 13:38:29 +02:00
Gioacchino Mazzurco
8f306346a4
Merge branch 'gxs_mail_experiments' into qmlapp_pex_alpha
2017-05-08 12:33:40 +02:00
csoler
59ac5a5bfa
added on-the-fly fix of group privacy flags, so that edited groups with old un-set flags will be set automatically. Also fixes the bug preventing to grant membership on old circles
2017-05-06 16:51:38 +02:00
Gioacchino Mazzurco
5159e326c7
Merge branch 'master' into gxs_mail_experiments
2017-05-05 15:44:22 +02:00
csoler
99d8b7d5d8
switched service control items to new serialization
2017-05-01 21:23:34 +02:00
csoler
cecd9a3368
merged upstream/master
2017-04-30 20:14:23 +02:00
csoler
8f97647246
fixed bug in RsGxsId deserialization
2017-04-26 15:43:00 +02:00
Gioacchino Mazzurco
5ee517b64f
Expose libresapi for GXS contacts import/export
...
To import contact
/identity/import_key
{"radix":"AgIRBAAABd..."}
To export contact
/identity/export_key
{"gxs_id":"ffffffffffffffffffffffffffffffff"}
In both cases if everithing went fine the answer is something like
{"data":{"radix":"AgIRBAAABd...", "gxs_id":"fff..."}, "returncode":"ok"}
Some retrocompatible adaptations were necessary to libretroshare
RsGenExchange::deserializeGroupData
p3IdService::deserialiseIdentityFromMemory
Now accept an extra optional pointer parameter to return the id of the
key so we can return it back from libresapi too and can be used to
request more information about the key to the API.
2017-04-19 23:48:25 +02:00
Gioacchino Mazzurco
4455bfa92d
Merge branch 'master' into merge_alpha_master
2017-04-18 21:30:25 +02:00
csoler
d66e653204
fixed bug in deserialisation of group informaiton
2017-04-08 23:39:05 +02:00
csoler
4f5da86aca
added method to serialise/deserialise groups to/from memory and export of GxsIdentities to memory chunk in radix format
2017-04-08 19:07:33 +02:00
csoler
44f297156e
Merge pull request #682 from csoler/v0.6-EditPosts
...
V0.6 edit posts
2017-03-14 20:04:22 +01:00
Gioacchino Mazzurco
2630ed4573
Merge branch 'master' into gxs_mail_experiments
2017-03-13 22:57:33 +01:00
cyril soler
c377bf3efa
fixed debug output for groups with no data
2017-03-10 15:12:10 +01:00
cyril soler
fd84639a45
removed some debug info
2017-03-10 15:05:41 +01:00
csoler
cf2edb50b4
fixed memory leak in deleteGroup and removed unnecessary pointer in the functions called below
2017-03-09 22:47:06 +01:00
Gioacchino Mazzurco
fcdb3d6c88
RsGenExchange enum for create status
2017-02-21 11:43:18 +01:00
csoler
22f2edb5ad
removed debug info and added comment
2017-02-11 10:45:30 +01:00
Gioacchino Mazzurco
54a0f87369
GxsMail implemented RSA encrypted mails sending
...
Add notice about param not being checked in GxsSecurity
Use proper types for RsGenExchange::getMsg* params
Implement bitwise or and not operators for t_RsGenericIdType
GxsMail unsubscribe old unused groups
GxsMail initial work on supporting client services
Implemented p3IdService::encryptData(...) for multiple recipients
2017-02-08 13:39:29 +01:00
csoler
37f3e1a62a
fixed problem in ID creation code.
2017-02-07 20:15:55 +01:00
csoler
ee4d722225
fixed cache deletion of GXS grp meta that caused deleted groups to not come back when available
2017-01-20 23:27:18 +01:00
csoler
d1af2e09dc
merged with upstream/master
2017-01-20 00:00:47 +01:00
csoler
b52ab0f542
added auto-clean of unused groups when grpAutoSync is enabled (so it does not touch identities)
2017-01-19 23:59:26 +01:00
csoler
06265f2b54
added consistency check in meta data in publishGroup() and updateGroup() in order to avoid bad data supplied from GXS services
2017-01-19 11:13:06 +01:00
cyril soler
8568199497
fixed mistake that prevented GXS posts to propagate
2017-01-17 12:40:09 +01:00
Gioacchino Mazzurco
a881441384
Some cleanup and deprecation
...
RsGxsDataAccess deprecate unused ansType
RsGxsDataAccess::setReq(...) use proper types for params
RsGxsDataAccess::getGroupData(...) print useful information in case of error
GxsRequest proper initialization in constructor
GxsRequest deprecate meaningless ansType
RsGroupMetaData Fix comment to avoid confusion
Deprecated meaningless RS_TOKREQ_ANSTYPE_* common source of confusion
p3GxsCircles::request_CircleIdList() removed unused variable
p3GxsCircles::request_CircleIdList() preper return value
2017-01-14 23:12:50 +01:00
Gioacchino Mazzurco
cdd39736d4
Documentation and code cleanup
...
Fix a warning in RsGenExchange::messagePublicationTest(...)
Fix documentation for RsGenExchange::{generatePublicToken(), acknowledgeTokenGrp(...)}
Properly initialize RsGroupMetaData, RsMsgMetaData and p3GxsForums members
Cleanup RsGxsNotify
2017-01-12 22:34:28 +01:00
csoler
f72399f2a8
merged upstream/master
2017-01-04 20:24:08 +01:00
csoler
a9670a569a
Second stage in abstracting GXS identities usage cases (almost done)
2017-01-02 23:53:39 +01:00
csoler
17fc89e3c0
First stage in abstracting GXS identities usage cases (half done)
2017-01-02 15:58:37 +01:00
csoler
00613d433c
made sure we have the public keys for msg validation, as only the private key is available when we are admin/publisher of a group
2017-01-02 14:00:23 +01:00
csoler
e883a32711
added more debug info in msg validation code
2017-01-01 21:10:14 +01:00
csoler
bb7d8297ee
fixed compilaiton in debug mode for rsgenexchange
2017-01-01 20:54:00 +01:00
csoler
1a9f19145e
Merge pull request #617 from csoler/v0.6-Circles2
...
V0.6 circles2
2017-01-01 18:22:01 +01:00
csoler
c71cf7a5ee
removed timestamping of key that was in the wrong place
2017-01-01 17:47:24 +01:00
Phenom
41386c64b7
Fix some new warnings
2016-12-31 15:17:51 +01:00
csoler
9d82a3ff16
replace mNbAttempts in signature and validation of posts by a timeout, which allows to wait for missing keys more robustly
2016-12-29 15:24:31 +01:00
csoler
d8233bb101
merged updatream/master
2016-12-26 16:59:52 +01:00