Commit Graph

6046 Commits

Author SHA1 Message Date
sehraf
591d2ad864
autoproxy: use new RS_DBG 2020-06-11 11:16:31 +02:00
sehraf
3d784e8871
remove unnecessary std::replace 2020-06-11 11:14:01 +02:00
sehraf
86c30a01dd
next attampt to use RS_DBG correctly 2020-06-11 10:55:09 +02:00
sehraf
7207e6a2c1
use RS_DBG 2020-06-10 22:06:12 +02:00
sehraf
008a4b87b3
replace std::map with std::array 2020-06-10 22:06:12 +02:00
sehraf
d0c5dc4e24
i2p: bob: convert to RS_DBG 2020-06-10 22:06:09 +02:00
sehraf
a5a2b49d99
i2p: bob: add option to disable bob CONFIG+=no_rs_bob 2020-06-10 20:05:00 +02:00
sehraf
9a5504bb47
autoproxy: make async really async 2020-06-10 20:05:00 +02:00
sehraf
b6a550b8f5
autoproxy: make use of rsdebug.h 2020-06-10 20:05:00 +02:00
sehraf
f4f08f0379
i2p: bob: rework recv() to check for new line character as EOL indicator 2020-06-10 20:05:00 +02:00
sehraf
1da3d262d9
i2p: bob: removed function name within debug output (replaced by __PRETTY_FUNCTION__) 2020-06-10 20:05:00 +02:00
sehraf
a41e10b178
i2p: bob: remove unused variables 2020-06-10 20:04:59 +02:00
sehraf
c20d92f04c
i2p: bob: convert to RsDbg 2020-06-10 20:04:59 +02:00
sehraf
6136416b56
i2p: bob: convert bobSettings to i2p::settings 2020-06-10 20:04:59 +02:00
sehraf
4b6e12ca45
i2p: bob: use common i2p::keyToBase32Addr() 2020-06-10 20:04:59 +02:00
sehraf
462f52585b
add helper for i2p related functions 2020-06-10 20:04:54 +02:00
G10h4ck
b49dfaead0
Merge pull request #2011 from G10h4ck/createLocationV2
Improve API to create locations
2020-06-10 10:49:32 +02:00
G10h4ck
1d8510069e
Merge pull request #1934 from PhenomRetroShare/Fix_AutoLogin
Fix AutoLogin
2020-06-10 10:19:55 +02:00
Gioacchino Mazzurco
4a34cfaf11
Improve API to create locations
Improve on top of sehraf work, add documentation for API token params
Deprecate old version and disable it once RS 0.6.6 is released
New method take relevant paramethers explicitely instead of having them
  incapsualted inside a RsLoginHelper::Location struct
New method return a proper error_condition instead of boolean + string
RsLoginHelper::attemptLogin doesn't need manual wrapper anymore
2020-06-09 20:13:22 +02:00
Gioacchino Mazzurco
275bdba132
Unify common error category message into a function 2020-06-09 20:08:23 +02:00
Gioacchino Mazzurco
4f0e18cbfd
Fix Android armv7 compilation due to narrowing 2020-06-09 20:02:40 +02:00
G10h4ck
f456389580
Merge pull request #2006 from sehraf/pr_remove_rs_pw_as_token
remove retroshare password from json tokens
2020-06-09 16:19:11 +02:00
Gioacchino Mazzurco
f99a8a0fc6
Improve homogeneity of rsdebug
Offer variadic style macros also for RsInfo...RsFatal
2020-06-09 16:10:07 +02:00
G10h4ck
680d9cde85
Merge pull request #1906 from sehraf/pr_fix_unix_fcntl_nonblock
Fix unix_fcntl_nonblock() to not overwrite any existing flags.
2020-06-07 12:36:18 +02:00
sehraf
878111d224
remove password from json tokens 2020-06-06 22:28:54 +02:00
G10h4ck
6603accf8f
Merge pull request #1992 from G10h4ck/debug_strip
Multiple improvements in debugging helpers
2020-06-06 18:26:30 +02:00
csoler
a18009413d
Merge pull request #1979 from csoler/v0.6-GxsGroup
[WIP] implementing a cache for MsgMeta
2020-06-06 15:54:35 +02:00
csoler
44324fbc98
Merge pull request #1914 from jolavillette/pqihandlerOptim
Pqihandler optim
2020-06-06 15:48:44 +02:00
csoler
f75a6424b5
fixed long-term bug due to sending an empty list of destkeys for GXSSecurity to encrypt an item 2020-06-04 13:38:57 +02:00
jolavillette
752c997f24 Merge remote-tracking branch 'upstream/master' into pqihandlerOptim 2020-06-04 07:39:59 +02:00
drbob
bcaef29d49 Merge branch 'master' into TheWire-rework-ui 2020-06-02 22:33:33 +10:00
Gioacchino Mazzurco
aef87fb1f8
Multiple improvements in debugging helpers
Add variadic style macro helpers that make debugging code disappear completely
  (also the paramethers evaluation) when debugging level is lower
Chained style << is now atomic like variadic style, still can't benefit
  of paramethers eveluation stripping
Reduced to minimum the difference between Android and other platform
  debugging code
Port debugging code to new helpers, expecially a few corner cases to
  test it, and as examples of how to use it.
2020-06-01 00:53:58 +02:00
Gioacchino Mazzurco
295ecf368e
ExtraFileHash check for integer overflow
When passing large periods 2038 problems was silently triggered due to
  time being stored as int in FileInfo::age, thus causing erratic
  behaviour in extra files timeout. Now period is checked and if too
  large an error is reported.
Deprecate FileDetails which is confusing dummy wrapper of FileInfo
Remove ftExtraList::cleanupEntry deadcode
2020-05-31 15:19:00 +02:00
Gioacchino Mazzurco
0c1785b0d3
Merge branch 'atomic_variadic_log' 2020-05-30 22:11:04 +02:00
Phenom
d256595aa7 Fix Message Sent keeps Tags 2020-05-30 18:20:17 +02:00
hunbernd
cd751f12d4 Clang support 2020-05-30 02:16:59 +02:00
G10h4ck
97a60865b4
Merge pull request #1981 from G10h4ck/RsMemoryWrapper_JSON_fixup
Change raw memory JSON representation
2020-05-29 19:16:00 +02:00
Gioacchino Mazzurco
43f7b6c0ba
RsFiles::alreadyHaveFile look into extra list too 2020-05-29 11:03:57 +02:00
csoler
d1e95f94a8
added method to print cache size 2020-05-29 09:49:07 +02:00
Gioacchino Mazzurco
2ae21ca800
rsdebug supports variadic style for atomic log 2020-05-29 01:09:10 +02:00
csoler
1dbc0c1fcf
fixed long-term bug due to sending an empty list of destkeys for GXSSecurity to encrypt an item 2020-05-28 23:58:07 +02:00
Gioacchino Mazzurco
c1c303218c
Change raw memory JSON representation
Fix bug reported by b1rdG
The new way permits to add more formats in the future without breaking
  retro-compatibility again.
Add support for RsJson in rsdebug for Android
2020-05-28 23:01:04 +02:00
G10h4ck
968f234bfd
Merge pull request #1959 from G10h4ck/rsbase64_fixup
RsBase64 handle correcly 0 lenght buffer encoding and padding
2020-05-28 18:45:04 +02:00
Gioacchino Mazzurco
d76f397358
RsBase64 calculate size properly and avoid FP math 2020-05-28 17:57:42 +02:00
csoler
31e6e02a91
removed MsgMeta delete that was left 2020-05-28 17:07:33 +02:00
csoler
1a362f1cc0
moved a debug output to the right place 2020-05-28 16:06:31 +02:00
csoler
a17f5a21f8
re-enabled resultCOunt 2020-05-28 15:55:49 +02:00
csoler
eb6af15b1a
enabled MsgMetaData cache in rsgxsdataaccess.cc and witched metas to const, and removed deletion of retrieved metas since now the cache handles it 2020-05-28 15:11:14 +02:00
csoler
ebf32bf955
moved parts of the GrpMeta cache into a template to also handle MsgMeta 2020-05-27 22:27:30 +02:00
Gioacchino Mazzurco
3332c32a84
RsBase64 handle correcly 0 lenght buffer encoding 2020-05-26 19:56:17 +02:00
drbob
589bb65324 Update display of WireGroup 2020-05-26 18:31:55 +10:00
csoler
b294a34d11
Revert "Revert "bandwidth control improvement"" 2020-05-25 20:28:50 +02:00
csoler
301def6018
Revert "bandwidth control improvement" 2020-05-24 23:40:26 +02:00
defnax
d1d4b47877
Merge pull request #1974 from hunbernd/feature/msys2enhancements
[WIP] Improved msys2 build scripts
2020-05-24 22:36:21 +02:00
csoler
42a10d59b2
Merge pull request #1942 from jolavillette/UpdateRates
bandwidth control improvement
2020-05-24 21:57:31 +02:00
jolavillette
735a123a02 restore 1.1 factor in ft/fttransfermodule 2020-05-24 00:32:24 +02:00
jolavillette
ea827b180a restore 1.1 factor in ft/fttransfermodule 2020-05-23 22:20:49 +02:00
hunbernd
a11dc09790 Build webui 2020-05-23 22:05:44 +02:00
Phenom
e5e468b083 Fix AutoLogin 2020-05-23 12:54:17 +02:00
csoler
eeca7c6d3a
Merge pull request #1963 from csoler/v0.6-GxsGroup
fixed compilaiton of photoshare due to changes in GxsChange class
2020-05-22 18:21:33 +02:00
Gioacchino Mazzurco
77f818f0b3
Fix JSON API compilation error introduces in f6260a95ae 2020-05-22 17:52:05 +02:00
jolavillette
998e1a5de3 Merge remote-tracking branch 'upstream/master' into pqihandlerOptim 2020-05-22 08:12:16 +02:00
csoler
82690561b6
fixed compilaiton of photoshare due to changes in GxsChange class 2020-05-21 22:45:49 +02:00
csoler
2a5adddc3b
Merge pull request #1881 from PhenomRetroShare/Add_VotesOn_getPostData
Add Votes when calling getPostData.
2020-05-21 22:38:06 +02:00
drbob
f4457b1331 Fixup how REF message are displayed
Ensure RefImageCount is correct.
Update docs on m(Ref)GroupPtr points to
fill-in GroupPtrs on Ref Msgs.
Remove mRefAuthorName as not so useful.
Add images into Response Msgs.
Display Headshot / Images on Ref Msgs - if possible.
2020-05-19 19:40:12 +10:00
sehraf
f186422833
fix RawMemoryWrapper serialisation to json, reported by b1rdG 2020-05-17 23:43:03 +02:00
csoler
d52d9c909b
Merge pull request #1875 from csoler/v0.6-GxsGroup
Add group change notifications (e.g. circle invites, forum moderation, etc)
2020-05-17 22:37:03 +02:00
csoler
c90b72152f
Merge pull request #1945 from b1rdG/fix-createChatLobby-checks
Create chat lobby checks
2020-05-17 22:00:30 +02:00
b1rdG
dafd975b51 Verify before lock the mutex 2020-05-17 14:06:07 -05:00
b1rdG
089ea76a6e Add lobby_identity check 2020-05-17 09:18:12 -05:00
drbob
8df5a886db Move createOriginalPulse / createReplyPulse to libretroshare
message creation logic moved to libretroshare
GUI classes cleaned up.
2020-05-16 22:35:32 +10:00
csoler
dc03f8ff49
imprved readability of the logic in rstlvidset serialization 2020-05-16 13:13:48 +02:00
csoler
6008599f02
fixed wrong call to std::set::erase(iterator,iterator) where the iterator comes from another set, causing inconsistencies 2020-05-16 13:12:37 +02:00
drbob
ccf849159a update libretroshare interface for TheWire
expanded groups and msgs with additional data and images.
new interfaces for improved ui display of message
start moving fetch logic to libretroshare with blocking APIs.
2020-05-15 12:58:27 +10:00
jolavillette
51ba879bb7 bandwidth control improvement 2020-05-14 23:28:20 +02:00
jolavillette
1f547aaefe bandwidth control improvement 2020-05-14 23:13:36 +02:00
Phenom
f6260a95ae Add Votes when calling getPostData. 2020-05-13 00:36:14 +02:00
csoler
e6edae27be
Merge pull request #1922 from PhenomRetroShare/Fix_SomeWarnings
Fix some warnings
2020-05-12 23:05:34 +02:00
csoler
cb1fe154f3
removed debug info 2020-05-10 18:40:31 +02:00
csoler
766da8117a
added missing update of membership status flags when an id is removed from the invitee list 2020-05-10 18:37:03 +02:00
csoler
3ae173f104
removed debug info in circles 2020-05-10 13:47:53 +02:00
csoler
6f6e0de5f1
merged with upstreamm/master 2020-05-09 22:33:27 +02:00
csoler
e09bf7c261
added a check to prevent SEGV when sending a notification about a group we updated 2020-05-09 21:30:51 +02:00
csoler
df2899bae9
added warning about keys tht are out of range when checking a msg signature 2020-05-09 21:30:07 +02:00
jolavillette
7c2efbc630 reduce cpu load by increasing sleep before ticking pqi and core 2020-05-09 20:35:20 +02:00
csoler
0c3b8641af
fixing some bugs in circles backend 2020-05-09 18:07:56 +02:00
Phenom
b40ca53f13 Fix warning: ‘n’ may be used uninitialized in this function
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc: In member
function ‘virtual void
RsMsgTags::serial_process(RsGenericSerializer::SerializeJob,
RsGenericSerializer::SerializeContext&)’:
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc:93:22: warning:
‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   93 |             uint32_t n ;
      |                      ^
2020-05-09 14:32:48 +02:00
defnax
38af9244a6 added spam box 2020-05-08 23:21:38 +02:00
csoler
bc69e8c1ac
forgot to update file in previous commit 2020-05-08 16:06:23 +02:00
csoler
8e52f07621
changed NO_DATA enum to NO_DATA_YET. Seems that this is an existing define on windows 2020-05-08 14:49:25 +02:00
csoler
59df44535a
put enum outside class in RsGxsCircleCache 2020-05-08 11:24:49 +02:00
csoler
5f5c2be64b
fixed a few bugs in the new circle cache system 2020-05-07 20:35:02 +02:00
csoler
11a4b6540f
cleaned-up circles cache. Needs testing. 2020-05-07 17:31:58 +02:00
jolavillette
4ead639e8c remove unneeded pqithreadstreamer and pqissl mutex locks 2020-05-06 21:29:46 +02:00
jolavillette
2c1238db2c remove unneeded lock of p3ServiceServer mutex 2020-05-06 12:11:54 +02:00
jolavillette
7634d121de Merge remote-tracking branch 'upstream/master' into mutexDivorce
Update mutexDivorce
2020-05-06 11:33:43 +02:00
jolavillette
7113d1935f finish removing pqistreamer locks, clean rates methods 2020-05-04 22:42:18 +02:00
csoler
65fa29e789
fixed notifications on circle not working due to cache reload failure. That circle cache code needs a real cleanup 2020-05-04 20:54:08 +02:00
sehraf
757e922c4f
Fix unix_fcntl_nonblock() to not overwrite any existing flags. 2020-05-04 15:13:39 +02:00
jolavillette
28458bf10a tick_send: remove unneeded lock around mBio->cansend 2020-05-04 08:11:57 +02:00