Commit Graph

550 Commits

Author SHA1 Message Date
csoler
948b88bccd fixed bug caused by calling clear in constructor which would reset the TS in GXS when saving... 2016-12-19 21:40:04 +01:00
csoler
dd2a3c26de fixed serialisation bug in new UpdateMap code, and removed debug info from RsGxsNetService 2016-12-12 22:52:55 +01:00
csoler
0d94b683dd removed duplicate peerID/grpId in msg/grp update maps 2016-12-12 21:01:24 +01:00
csoler
a4c14c2212 improved serialisation methods in RsGxsNet items, and added serialisation for RsGrpConfigItem 2016-12-06 22:17:03 +01:00
csoler
661038d9b2 added a function to check keep/req times for consistency 2016-12-05 23:42:44 +01:00
csoler
5612647672 added new GrpServerConfigMap to store additional data on groups for net service. Removed pointers to simplify the code 2016-12-04 23:40:52 +01:00
csoler
143829c881 moved constants for GXS group management into rsgxs.h 2016-12-04 23:40:39 +01:00
csoler
f3a34bf5a3 created a new item to hold/save per gxs group information (statistics, update delays) 2016-12-04 23:39:45 +01:00
csoler
c6d21e4abc changed old msg update default strategy to one month 2016-12-04 23:39:10 +01:00
Phenom
674b6de381 Fix Some gcc warnings 383 to 208 lines
Left explicit #warning and deprecated.
Some lines are wrong indented and produce mal formed code.
2016-11-30 22:01:01 +01:00
csoler
4bdfc6e74e removed unused old file 2016-11-18 17:56:42 +01:00
Gio
633a6cf8c2 Fixed a bunch of warnings in safe ways 2016-10-13 00:01:33 +02:00
mr-alice
0757fb303c merged upstream/master 2016-09-20 20:51:50 +02:00
mr-alice
679c53b0b0 added load/save of directory hierarchies. Fixed bug in loading of hash cache (caused y non initialisation of dest string in GetRawString()) 2016-09-05 21:22:11 +02:00
mr-alice
ade6017f74 merged with upstream/master 2016-09-01 19:52:31 +02:00
Gio
746f4d7292 libretroshare remove unuseful code from RsRawItem 2016-08-25 15:11:58 +02:00
mr-alice
edc602f68f added infrastructure for synchronisation of file lists 2016-08-20 16:23:11 +02:00
csoler
7545ad4d11 simplied/improved reputation system. Now ids can be banned based on their owner node using a single checkbox in the Person tab, with immediate effect 2016-08-04 11:43:35 +02:00
csoler
c4ef4d7743 saved owner node ID in GXS reputation item 2016-08-03 14:52:37 +02:00
mr-alice
5b9fd74d85 removed most of CacheStrapper stuff from ftServer, replaced fimonitor by p3FileDatabase 2016-07-30 21:52:42 +02:00
Phenom
3152ecaa9b Fix UnitTests and run it in windows too. 2016-07-15 15:36:06 +02:00
csoler
0125f91b2d fixed deserialise bug in FileItem 2016-07-06 22:36:59 -04:00
csoler
269f9457be fixed load/save of new group ids and backward compatibility with FriendList 2016-07-06 22:02:56 -04:00
csoler
01c0d2f0f1 finished conversion to RsNodeGroupId for file transfer and GUI 2016-07-05 23:49:43 -04:00
csoler
4ee9effc4e changed internal storage of groups of friend nodes so as to use an abstract ID instead of a string (phase 1 of local circles) 2016-07-04 23:55:48 -04:00
Phenom
d84fdff2e1 Fix GxsChannelPostItem when received comment. 2016-06-18 20:10:14 +02:00
csoler
25c0c9d4ce added systematic consistency checking of public/private RSA keys at deserialisation time 2016-06-16 23:06:07 -04:00
csoler
dbd78d2401 merged with upstream/master 2016-06-16 20:19:03 -04:00
csoler
c3eba4a72d added missing serialisation call for peer bandwidth limits 2016-06-14 21:54:24 -04:00
Cyril Soler
56e079739c Merge pull request #413 from csoler/v0.6-Circles
V0.6 circles
2016-06-13 23:06:10 -04:00
csoler
fa29dd7332 changed the way RsGxsSyncMsgReqItem are sent for circle-restricted groups, using a hash of the group ID instead of encrypting the whole item, hense saving a lot of bandwidth on msg sync. 2016-06-12 21:41:09 -04:00
csoler
34f49d4ae8 removed compilation warning 2016-06-11 18:07:07 -04:00
csoler
a07805be1d moved bandwidth limits to the pgp level 2016-06-09 20:41:27 -04:00
csoler
20b6745f70 added GUI and storage for max up/dn rates per peer 2016-06-07 21:48:22 -04:00
csoler
c2ae4fc904 merged upstream/master 2016-06-05 10:06:11 -04:00
csoler
a2ca0385db fixed compilation and several problems following separation of public/private keys 2016-06-04 21:39:40 -04:00
csoler
590be092e5 separated RsTlvSecurityKey into two incompatible classes to enforce the correct usage of private vs. public keys 2016-06-02 23:47:57 -04:00
sehraf
4f60c8cc9b libretroshare: fix comparison between signed and unsigned integer 2016-06-02 14:54:23 +02:00
sehraf
cfc0e7071a libretroshare: remove unused variables 2016-06-02 14:54:07 +02:00
Cyril Soler
dafb2e6bc2 Merge pull request #396 from csoler/v0.6-Circles
V0.6 circles
2016-05-27 17:35:23 -04:00
csoler
59aef8ab7b added packet slicing for large broadcast chat items, and output warning when chat of serialised item is too big. Also fixed a couple of bugs in the handling of chat packets 2016-05-26 20:33:24 -04:00
csoler
55cb15caa9 fixed updating of membership when loading circle cache entry 2016-05-22 20:35:51 -04:00
csoler
69573d19b4 fixed serialisation of circle subscription requests 2016-05-22 18:49:54 -04:00
csoler
722609a3e6 finished implementing the backend part for the subscription system 2016-05-18 21:13:54 -04:00
csoler
d01c61fde8 added items for encoding subscription requests and the logic to create them from GUI calls 2016-05-11 17:59:42 -04:00
csoler
5ab9aed371 added placeholder service ID for packet slicing probe 2016-04-29 18:40:28 -04:00
csoler
ebf54d1340 fixed unit tests 2016-03-26 17:25:15 -04:00
csoler
d1b09b93b9 removed some debug info 2016-03-25 18:54:13 -04:00
csoler
6a4add8806 implemented per-item encryption and Vetting method compatibility layer 2016-02-20 17:53:03 -05:00
csoler
763108f5fa debugged transport of encrypted items. Still needs work. 2016-02-15 23:24:18 -05:00
csoler
fd04f0b3bb updated to upstream/master 2016-01-13 20:27:08 -05:00
csoler
d55993d1e4 removed two instances of malloc(0) captured by new rs_malloc funtion 2016-01-12 21:43:04 -05:00
csoler
d13526facd added a new method rs_malloc that checks its arguments and prints a stacktrace on error/weird call. Changed the code everywhere to use this instead of malloc. Removed some mallocs and replaced with RsTemporaryMemory 2016-01-12 21:10:11 -05:00
csoler
3094b52e8f fixed potential integer overflow / Out of bounds read in rsbaseserial.cc. Also added a few more error output. 2016-01-11 19:08:52 -05:00
csoler
ee84ab732d fixed serialisation error (missing call) for received Distant msg hash map 2016-01-09 10:58:49 -05:00
csoler
0c591f08ae added auto re-send of distant messages after global router notified the message cannot be sent. Added a map n p3msgService to avoid receiving multiple times the same message. 2016-01-07 22:22:05 -05:00
csoler
9da8a8abc3 fixed compilation of RsNxsTransaction encryption code 2016-01-01 21:37:27 -05:00
csoler
6ecd2991e7 merged with latest trunk 2016-01-01 15:15:19 -05:00
csoler
672ab256d7 added safeguard against absurdly large packets in rsserial.cc and output of the beginning of the packet. 2015-12-27 10:03:07 -05:00
csoler
5d9272055f merged with upstream/master 2015-12-22 18:33:01 -05:00
csoler
5fcaa36736 fixed some serialising bugs, and added proper notification of observer 2015-12-19 19:00:06 -05:00
csoler
6910ad3695 added stats exchange system to gather number of posts in unsubscribed groups without the need to actually DL the messages (reduced bw a lot) 2015-12-19 17:38:52 -05:00
csoler
7be7233b29 fixed a number of timing issues in rsgxsnetservice. To be tested. 2015-12-11 22:38:17 -05:00
csoler
0c1e6301b3 merged with latest upstream trunk 2015-12-05 16:49:00 -05:00
csoler
9193d3579b merged with latest master before creating PR 2015-12-04 21:24:51 -05:00
csoler
bca89c63c6 fixed serialisation bug and added new GUI bits 2015-11-25 18:08:53 -05:00
csoler
1347ee4b37 added regular contacts list and method to move RsGxsIds from/into this list 2015-11-19 22:58:28 -05:00
csoler
cb97ce6f72 half-way through GxsTunnel service 2015-11-18 23:56:35 -05:00
csoler
b009c1135f changed RsGenExchange strategy to use a threshold on reputation when validating posts 2015-10-25 23:45:33 -04:00
csoler
e60ac99994 added bias to reputation score for known and signed ids. Changed computation formula to an exp 2015-10-25 22:54:56 -04:00
csoler
f24bddf6f1 merged with upstream head 2015-10-25 20:42:41 -04:00
csoler
47dd70fbe8 added non selective tracking for GXS messages 2015-10-25 17:26:34 -04:00
csoler
21c31fb446 modifications to item encryption so as to match APIs 2015-10-22 20:24:36 -04:00
Phenom
47c47d144e Fix Compilation on Win32 after PR#143 merged. 2015-10-12 23:21:17 +02:00
csoler
71c8dfdc58 manual merge before creating a conflict-free PR 2015-10-12 14:45:11 -04:00
csoler
ce96e88925 debugging of reputation system 2015-10-09 17:51:10 -04:00
csoler
bb7a8f2732 fixed some reputation sending bugs 2015-10-08 23:54:18 -04:00
csoler
8c6c9344fe fixed a few bugs in reputation items serialisation code and GUI display 2015-10-08 23:02:34 -04:00
csoler
b0940890cd fixed compilation 2015-10-06 22:39:14 -04:00
csoler
9f6bc0c3fc added code for all reputation items 2015-10-06 00:11:18 -04:00
csoler
1c12178874 finished implementing decryption routines. Still needs fixing compilation 2015-10-01 23:37:50 -04:00
csoler
6626538cab half way through RsNxsItem encryption 2015-09-27 23:53:55 -04:00
csoler
22d4893721 removed a few compilation warning that might cause compilation errors on some systems 2015-09-24 18:03:19 -04:00
csoler
85e6eca2f0 added serialisation for encrypted items 2015-09-12 16:27:01 -04:00
csoler
d304c7fea6 fixed bug in deserialisation causing the wrong method to be called 2015-09-12 09:37:36 -04:00
csoler
225e8f130b changed serialisation methods to use c++ in rsnxsitems, added two new items for encrypted data, renamed classes RsNxsSyncGrp and RsNxsSyncMsg to RsNxsSyncGrp/MsgReqItem 2015-09-12 00:39:35 -04:00
AsamK
3cfe69787f Fix subtle bug in tlv deserialization of TLV_TYPE_KEYSIGNATURETYPE
When using -O2, the variable currType is optimized out, so the
signature is added with the wrong sign type. Then when verifying the
data the signature is not found and verification fails.

The main sympton of this bug was receiving no more forum/channel posts.

Wit debug builds (-O0) this worked, that's why not every one was affected
by this.

This bug was introduced in 2012 (19e856c2a8)
2015-09-02 02:03:46 +02:00
csoler
168eb45539 removed debug info about missing keys; added debug info about deserialization checking of string 2015-08-05 20:51:34 +02:00
csoler
260da99955 improved filtering method against lol bombs. Thx to ConcernedCitizen for pointing this out 2015-07-31 17:27:42 +02:00
thunder2
c76141ed65 Added missing initialization in
- pqissl
- pqissludp
- PeerConnectStateBox
- RsTlvBanListEntry
- RsServer
- TcpStream
- PGPCertificateInfo
- peerConnectAddress
- AudioInputConfig
- SpeexInputProcessor
- xProgressBar
- TBoard

Removed unused member:
- xProgressBar


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8611 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-07-13 11:03:18 +00:00
thunder2
090148cea2 Fixed possible crash in RsGxsIdSerialiser by checking return value of dynamic_cast.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8599 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-07-12 01:43:10 +00:00
thunder2
63d85f8077 Fixed possible crash in RsFileTransferSerialiser by checking return value of dynamic_cast.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8592 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-07-12 00:58:05 +00:00
csoler
249c827f95 improved debug info in a few places
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8584 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-07-09 20:55:11 +00:00
electron128
d870b13a49 fixed potential integer problems in de-serialization of different TLV items (patch from Henry)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8574 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-07-01 12:17:03 +00:00
csoler
8e0b6b95c5 fixed potential integer problem in image de-serialization (reported by HM)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8568 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-29 12:00:40 +00:00
csoler
e1dcdd78b6 auto-cleaning of strings for types that cannot contain chars < 0x20 by design
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8547 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-23 19:25:13 +00:00
csoler
ab95a6c865 removed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8503 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-16 19:17:52 +00:00
electron128
f5843faef0 added missing size check in RsGxsRecognSerialiser
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-13 08:03:58 +00:00
electron128
eb7a52a2a7 fixed bug reporting wrong IP for connection (patch from Cyril)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8367 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-04 13:25:19 +00:00
csoler
777c915be2 load/save of banlist comments. Removed unused menu entries. Added auto-fill of input fields on sleection
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8343 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-02 13:02:20 +00:00