Gioacchino Mazzurco
cd5dad6a75
Rename GXS pullFromPeers to pullFromPeers
...
According to what discussed with Cyril
2021-11-12 19:11:02 +01:00
Gioacchino Mazzurco
ebbd8cf938
Forums expose API to request syncronization
2021-11-12 18:46:36 +01:00
Gioacchino Mazzurco
fc404bd5d8
RsGxsNetService trigger pulling on group subscribe
2021-11-12 18:43:52 +01:00
Gioacchino Mazzurco
6295e91304
Request pull from peers when GXS message is created
2021-11-12 18:43:52 +01:00
Gioacchino Mazzurco
b42323013e
Fix includes in rsnxs.h
2021-11-12 18:43:49 +01:00
Gioacchino Mazzurco
a7f1e94cea
Request pull from peers when GXS group is created
2021-11-12 18:42:55 +01:00
Gioacchino Mazzurco
a374f1dc6b
Implement RsNxsSerialiser::create_item for RsNxsPullRequestItem
2021-11-12 18:41:18 +01:00
Gioacchino Mazzurco
e4f25a558d
Implement pull request mechanism in RsGxsNetService
...
This could be used to request the online peers to pull updates from us
ASAP, as an exaple when a group is created a pull request can be
emitted too so the online peers pull the groups from us ASAP instead
of waiting for the usual 60 seconds. A mechanism like this is
especially useful on mobile phones where the internet connection is
usually turned on only in a few moments (as an example while the user
is interacting with the app).
Cleanup a few old corners in the code keeping retro-compatibility and
make the code more welcoming to new developers.
Put a bunch of dead code under #ifdef.
2021-11-12 18:41:10 +01:00
Gioacchino Mazzurco
11f17fef40
libretroshare Android Qt network dependency optional
...
One of the reason libretroshare dependend on Qt on Android
and in particular in networking module is the lack of
`getifaddrs` with API level < 24, we included Android
Gingerbread internal implementation so this dependency can be avoided
at compile time.
The code depending on Qt has been placed under `#if` and can be enabled
at compile time by appending `DEFINES+=LIBRETROSHARE_ANDROID_IFADDRS_QT`
to `qmake` command line.
2021-11-12 16:02:53 +01:00
csoler
4d06ab2b4a
Merge remote-tracking branch 'upstream/master' into v0.6-TorControl
2021-11-11 18:28:02 +01:00
Phenom
4cc0b9f492
Fix rsGetHostByNameSpecDNS by closing socket.
2021-11-08 10:20:44 +01:00
Phenom
a072b151f5
Add ConnectFriendWizard improvement.
...
Add cert details in friendCertCleanLabel tooltip.
Use qss for background color of friendCertCleanLabel.
Add Known IP in final view.
2021-11-06 14:10:17 +01:00
Gioacchino Mazzurco
e8b97405b9
Fix android build due missing include
2021-11-06 11:35:28 +01:00
Phenom
91a35f4a21
Change some code according G10h4ck remarks.
2021-11-06 00:32:36 +01:00
Phenom
7755f85c4c
Move DNS stuff to single new file rsdnsutils.cc.
2021-11-05 22:48:41 +01:00
Phenom
81d2ddd7c7
Enable IPv6 DNS ExtIpFinder
...
Now empty node with only IPv6 can connect to other.
2021-11-05 22:48:41 +01:00
Phenom
a09db6717b
Add ability to retrieve External IP using DNS server.
...
IPV6 compatible.
2021-11-05 22:48:41 +01:00
Gioacchino Mazzurco
fa48b03fac
mark single argument RsStackMutex costructor explicit
2021-11-05 15:31:08 +01:00
Gioacchino Mazzurco
a9fe1ba6de
Make DirStub serialization consistent on all architectures
...
Thanks elRepo.io developers to detect and report this bug with detail
https://gitlab.com/elRepo.io/elRepo.io-android/-/issues/52
2021-11-05 12:02:56 +01:00
Gioacchino Mazzurco
16ca0dc52c
RsThread fix warning and cleanup
...
Avoid compiler warning due to virtual method being called in destructor
at this point the empty default version would be called without damage
but making the compiler concernig about the semantic being different
from the one the programmer meant.
Delete old superseeded function and do not depend on it on RsThread.
2021-11-04 19:17:57 +01:00
Phenom
5e9bc9c2b8
Fix RsThread when nothing to do and run finish before start.
2021-11-03 17:14:11 +01:00
thunder2
7be575045b
Fixed git update of submodule supportlibs/libsam3 for MinGW compile
2021-11-01 18:45:10 +01:00
csoler
7821b29893
fixed additional GPG->Pgp names
2021-10-29 20:29:18 +02:00
csoler
7672ffa0ec
fixed casing of PGP into Pgp
2021-10-29 19:05:54 +02:00
csoler
fdac22f49c
renamed remaining *GPG* names into *PGP*
2021-10-29 19:02:09 +02:00
csoler
5e37bd42e4
renamed isGPGAccepted into isPGPAccepted
2021-10-29 18:57:58 +02:00
csoler
b328c3a493
renamed AuthGPG into AuthPGP
2021-10-29 18:51:40 +02:00
Gioacchino Mazzurco
62810d32e1
deep_search: fix compilation with old Xapian versions
2021-10-28 09:53:55 +02:00
Gioacchino Mazzurco
0b58740174
Properly avoid private forum leak in deep search
...
mGroupFlags & GXS_SERV::FLAG_PRIVACY_PUBLIC is always true for forums
even if they are circle restricted, use circle flags to check if it
is really public
2021-10-28 09:53:55 +02:00
Gioacchino Mazzurco
2196505d19
RsGxsForumsDistantSearchEvent fix event type
2021-10-28 09:53:54 +02:00
Gioacchino Mazzurco
bf8ddf498e
Fix Android compilation
2021-10-28 09:53:54 +02:00
Gioacchino Mazzurco
dcb2bee8cc
Epurate this branch from channels deep search changes
2021-10-28 09:53:54 +02:00
Gioacchino Mazzurco
9c38eed648
Implement deep indexing and search for forums
...
RsGxsNetTunnelService::receiveSearchRequest handle no results case
properly
RsNxsObserver::handleDistantSearchRequest improve method behaviour
documentation
RsTurtleClientService Improve documentation
2021-10-28 09:53:48 +02:00
Gioacchino Mazzurco
1b551d809f
First working prototype of GXS service search
...
Channels are now able to take advantage of the new deep search
goodies
Rebase on top of master 2021/10/19
2021-10-28 09:51:29 +02:00
Gioacchino Mazzurco
ab349a8157
Use unannotated pointer as per Cyril taste
2021-10-28 09:51:29 +02:00
Gioacchino Mazzurco
cef43fe048
Notify one deletion per event as Cyril suggested
2021-10-28 09:51:29 +02:00
Gioacchino Mazzurco
045069c3e6
Implement proper GXS message deletion notification
...
GxsForums propagate message deletion notification as RsEvent
2021-10-28 09:51:29 +02:00
G10h4ck
b920263947
Merge pull request #2442 from G10h4ck/notify_hashing_file_completed
...
Emit an event when a shared file hashing complete
2021-10-28 09:24:45 +02:00
Gioacchino Mazzurco
b659643748
Attempt to fix non sam3 builds
2021-10-25 15:50:19 +02:00
csoler
dbb6a7471e
fixed compilation (fix by sehraf)
2021-10-24 22:26:10 +02:00
csoler
3ddf3d0853
Merge pull request #2132 from sehraf/pr_add_i2p_sam3
...
Replace I2P BOB with SAMv3
2021-10-24 20:39:22 +02:00
Gioacchino Mazzurco
34593d1b6f
Emit an event when a shared file hashing complete
...
Properly notify when a shared file has been hashed
Deprecate event with arbitrary data packed in std::string
2021-10-19 18:23:55 +02:00
G10h4ck
58016fff65
Merge pull request #2444 from G10h4ck/single_file_share_plus_cleanup
...
Single file share plus cleanup
2021-10-19 15:45:32 +02:00
csoler
9a440e077e
automatically close ongoing uploads when we stop sharing an extra file
2021-09-21 20:47:25 +02:00
csoler
0ca399ebf5
Merge pull request #2467 from csoler/v0.6-BugFixing_13
...
V0.6 bug fixing 13
2021-09-06 10:08:23 +02:00
Gioacchino Mazzurco
19915a8eb4
Fix broken line endings
2021-09-03 14:56:45 +02:00
Gioacchino Mazzurco
a18d6aaa1e
Add JSON API to get/set storage and sync GXS time
2021-09-03 14:55:03 +02:00
csoler
e22c5c9702
added bool return value to denyLobbyInvite() and marked overriding methods in p3msgs accordingly
2021-08-29 21:15:52 +02:00
csoler
5e851b4efd
trying to fix compilation on windows
2021-08-28 21:46:02 +02:00
csoler
f5f608dbec
trying to fix compilation on windows
2021-08-28 21:39:12 +02:00
csoler
563fc14532
Merge pull request #2459 from hunbernd/fix/partialfiles
...
Fix: additional / when combining file paths
2021-08-22 21:30:01 +02:00
csoler
3de68bf5e5
Merge remote-tracking branch 'upstream/master' into v0.6-TorControl
2021-08-15 15:07:58 +02:00
csoler
8b586412c2
Merge remote-tracking branch 'upstream/master' into v0.6-PGPHandler
2021-08-15 10:09:45 +02:00
csoler
020ef61297
fixed compilation
2021-08-15 09:41:30 +02:00
csoler
b084b20280
removed getAuthGPG and replaced AuthGPG with a class with static members
2021-08-14 14:56:28 +02:00
csoler
b8f4e64393
initial split of PHPHandler into two classes
2021-08-11 16:02:02 +02:00
csoler
4db6ac92e7
initial split of PHPHandler into two classes
2021-08-11 16:01:45 +02:00
Gioacchino Mazzurco
8bed99cc9f
Fix compilation with C++17
2021-08-06 12:15:34 +02:00
Gioacchino Mazzurco
e850e00a82
Optimization, cleanup, compiler warning fix
...
Chores I have made while working on single file share
2021-07-19 16:40:13 +02:00
Gioacchino Mazzurco
817a961013
Improve RsDirUtil::lastWriteTime error reporting
2021-07-18 22:41:14 +02:00
Gioacchino Mazzurco
9970f9d22f
Avoid leaking single shared file path in search results
...
Single shared files are a bit special and contain the full path in the
name because they are not shared as part of a directory, epurate the
path component from matching process and from search result
2021-07-18 21:16:46 +02:00
Gioacchino Mazzurco
e1580868dc
Avoid leaking non browsable shared single files to friends
2021-07-18 21:16:46 +02:00
Gioacchino Mazzurco
fc198d4e6d
libretroshare: add share single files (no dir, no extra)
...
Add capability to libretroshare to share single files without sharing
the whole folder containing it, this is expecially useful in Android
where files are organized in a peculiar way that render classic way of
sharing folder almost unusable. Using extra files which was already
implemented doesn't solve this use case as extra files are limited in
time and dosn't support search and sharing permissions.
RetroShare GUI works fine if a single file is added as shared dir via
JSON API, but probably would need tweaking some flags in file picker
to give the ability to the user.
2021-07-18 21:16:45 +02:00
csoler
1f10be1c90
Merge pull request #2439 from csoler/v0.6-BugFixing_12
...
fixed errors in libretroshare.pro
2021-07-15 17:18:36 +02:00
csoler
0c98b7f178
Merge pull request #2438 from csoler/v0.6-rsHistory
...
[WIP] Documenting rsHistory.h to bring history to JSON api
2021-07-04 23:39:26 +02:00
csoler
abf481b0a1
removal of slignal/slots
2021-07-04 18:27:12 +02:00
csoler
b6156bff00
fixed compilation for appveyor
2021-07-04 14:06:37 +02:00
csoler
4e4427f0bd
fixed errors in libretroshare.pro
2021-07-03 22:01:07 +02:00
csoler
8505544294
removed signals in HiddenService class
2021-07-03 21:54:44 +02:00
csoler
4833a8fdc4
added json api description for the rest of RsHistory
2021-07-03 20:48:47 +02:00
csoler
d6ccd75a7f
started documenting rsHistory.h to bring history to JSON api
2021-07-03 00:31:09 +02:00
csoler
ae79261cbc
fixed bootstrapping of Tor in retroshare-service
2021-07-02 00:11:10 +02:00
csoler
da86da29ff
attempt at fixing tor bootstrap. Not working yet
2021-06-29 00:23:32 +02:00
csoler
139b22b41a
added rstor.h file
2021-06-27 18:14:22 +02:00
csoler
a23ad41b11
fixed event handling in Tor bootstrap process
2021-06-26 23:13:17 +02:00
csoler
607c1896e5
progress in event handling in RsTor
2021-06-26 18:52:48 +02:00
csoler
43e8ed3d98
fixed compilation
2021-06-26 17:12:17 +02:00
csoler
f13b0cbe9f
keeping Qt internally for a while and making RsTor Qt-free
2021-06-25 21:46:00 +02:00
Gioacchino Mazzurco
7bf4da0691
Avoid JSON operations on RsGxsIdGroup::mPgpIdSign
...
The field is actually a raw memory chunk even if declared as an
std::string as result the produced JSON is broken and JSON API clients
cannot parse the output of methods like rsIdentity/getIdentitiesInfo
A proper fix would be refactoring the whole code to use a proper raw
memory buffer for that field but given there is no usage for a raw PGP
signature on a client app as RetroShare library already verify it internally
workaround the issue by just ignoring that field in JSON serial operations.
2021-06-22 08:24:11 +02:00
csoler
d7fb3d8bf4
moved TorControl files into libretroshare. Not compiling yet.
2021-06-19 15:34:46 +02:00
Gioacchino Mazzurco
476180dc14
Files extra list optimization and cleanup
...
Improve performances and fix compiler warnings
2021-06-14 11:53:27 +02:00
csoler
8539dd503a
fixed deadlock caused by wrong order in mutex lock
2021-05-04 19:49:47 +02:00
csoler
e22e1c1a8b
Merge pull request #2393 from hunbernd/fix/WebUI-binary-files
...
Fix: WebUI truncating binary files
2021-03-26 20:15:33 +01:00
hunbernd
bb6841370f
Fix: WebUI truncating binary files.
...
Fixes font files not loading properly in the webui problem.
2021-03-25 18:20:11 +01:00
Gioacchino Mazzurco
67c607cb32
Fix Android compilation
2021-03-23 23:16:31 +01:00
Mohammed Saud
bf41f8ad92
add CORS headers to rsEvents/registerEventsHandler
2021-03-19 23:10:43 +05:30
sehraf
911cbeb61a
fix key generation and cleanup
2021-03-16 21:15:31 +01:00
sehraf
5418483934
fixed wrong size check
2021-03-16 21:15:31 +01:00
sehraf
aef993de55
reduce log
2021-03-16 21:15:31 +01:00
sehraf
8a2efe3e58
use libsam3 git submodule
2021-03-16 21:15:31 +01:00
sehraf
9c71177d3b
add workaround for i2p/libsam3#15
2021-03-16 21:15:31 +01:00
sehraf
719adaae9b
update i2psam3
2021-03-16 21:15:31 +01:00
sehraf
36e238951f
update p3i2psam
2021-03-16 21:15:31 +01:00
sehraf
1fa16aa6eb
SAM3: fix double free
2021-03-16 21:15:31 +01:00
sehraf
c869b9757f
drop BOB code
2021-03-16 21:15:31 +01:00
sehraf
25cb152a7e
make pqissl notice bad file descriptor
2021-03-16 21:15:31 +01:00
sehraf
eb0aa340e3
remove i2psam (library) support
2021-03-16 21:15:30 +01:00
sehraf
10189ba4d0
add i2psam3
2021-03-16 21:15:30 +01:00
sehraf
76f0678820
add fork of libsam3
...
add funtion to get i2p certificate crypto algo names
2021-03-16 21:15:26 +01:00
csoler
4420575a9a
removed debug info about superseded groups
2021-03-13 22:28:26 +01:00