Commit Graph

186 Commits

Author SHA1 Message Date
Gioacchino Mazzurco
b093848789
Update bdbood.txt plus add a script to keep it fresh 2020-08-31 21:56:58 +02:00
hunbernd
cd751f12d4 Clang support 2020-05-30 02:16:59 +02:00
Gioacchino Mazzurco
655582e970
Improve license according to REUSE 3.0
FSFE licensing checking program lint is now happy

$ reuse lint

* Bad licenses:
* Missing licenses:
* Unused licenses:
* Used licenses: AGPL-3.0-only, AGPL-3.0-or-later, Apache-2.0, CC-BY-SA-4.0, CC0-1.0, GPL-3.0-or-later, LGPL-3.0-or-later, MIT
* Read errors: 0
* Files with copyright information: 6324 / 6324
* Files with license information: 6324 / 6324

Congratulations! Your project is compliant with version 3.0 of the REUSE Specification :-)
2019-12-18 17:57:20 +01:00
csoler
6a18e242bb
added compile option to use sanitizer and already fixed a few misalignment errors with it 2019-05-11 22:25:02 +02:00
csoler
11abdb7bae
attempt to fix compilation of MacOS 2019-01-23 20:21:44 +01:00
csoler
d9683459d6
more license fixes and updated version in Debian control files 2018-12-27 15:47:58 +01:00
csoler
630609c11c
fixed retroshare.project email in licenses 2018-11-11 20:42:48 +01:00
hunbernd
3e3adf7337
Removed some old build scripts 2018-11-11 14:24:44 +01:00
csoler
9a2bbe339a
fixed uninitialized memory read due to not checking the result of beMsgGetNodeId() in bitdht 2018-11-01 21:40:56 +01:00
Gioacchino Mazzurco
77d938bf52
Remove _USE_32BIT_TIME_T windows define
Why did we added it in first place?
2018-10-07 13:07:22 +02:00
csoler
6848a586f3
merged upstream/master 2018-07-08 21:17:48 +02:00
Gioacchino Mazzurco
6805875333
Finally get rid of the annoying MASQUARADING typo 2018-06-10 15:10:13 +02:00
csoler
b3277824eb
license fix in pqi 2018-05-28 22:03:39 +02:00
csoler
8b8eb6b597
re-licenced libbitdht to AGPLv3+ 2018-05-21 18:23:52 +02:00
Phenom
4d748bd079 Fix CppCheck duplInheritedMember warning in bdNode
/libbitdht/src/bitdht/bdnode.h:259: warning:
Cppcheck(duplInheritedMember): The class 'bdNodeManager' defines member
variable with name 'mFns' also defined in its parent class 'bdNode'.
2018-05-07 18:05:14 +02:00
Gioacchino Mazzurco
4876a0ea3b
Multiple improvements to build process
Restructure and document retroshare.pri variables and helper functions
Link sqlite statically like other libraries on Android
qmake has multiple win32-* specs match them correctly
Move a buch of generic thing to retroshare.pri instead of having them replocated
  accross project specific .pro
Fix retroshare-gui too many symbols exported on windows liking error by adding
  QMAKE_LFLAGS+=-Wl,--exclude-libs,ALL
Rename retroshare-gui/src/util/win32.h because the name is too prone to
  confusion and build conflicts
libreasapi avoid usage of cretar_prl link_prl that seems unreliable on some
  platforms
libreasapi rename LIBRESAPI_QT to more understendable LIBRESAPI_SETTINGS
Use use_*.pri instead of copy pasting error prone qmake snippets around
Expose bitdht option to retroshare.pri
Add RS_THREAD_LIB qmake variable for better crossplatform support
Move debug and profiling generic options to retroshare.pri (avoid copy/pasting)
Remove Qt script module in qmake as it is not available anymore
2018-04-18 07:56:43 +02:00
Gioacchino Mazzurco
fa71ed25ba Install bdboot.txt in Android
DHT now works on android as bdboot.txt is bundled as android asset
Update Android documentation as DHT works on Android after this commit
2018-01-29 16:14:14 +01:00
csoler
a9c43627ab removed debug info. Added explaination about the new method 2017-11-01 20:31:49 +01:00
csoler
69278e6e87 only print non empty buckets 2017-10-30 11:07:36 +01:00
csoler
9f9c34ca13 tried to improve DHT size estimation code 2017-10-30 10:58:48 +01:00
Phenom
e718070dbd Fix warning: this statement may fall through
/libbitdht/src/bitdht/bdconnection.cc:1288: warning: this statement may
fall through [-Wimplicit-fallthrough=]
      if (errsrc == BITDHT_CONNECT_ERROR_SOURCE_END)
/libbitdht/src/bitdht/bdconnection.cc:1308: here
     case BITDHT_CONNECT_ERROR_DUPLICATE: // similar attempt. delay/
recycle (ANY/ANY)
2017-07-16 20:23:39 +02:00
Phenom
ff1908eda6 Fix Clang Static Analyser: Undefined allocation of 0 bytes
Unix API: Undefined allocation of 0 bytes (CERT MEM04-C; CWE-131): Call
to 'malloc' has an allocation size of 0 bytes
 1: Loop body executed 0 times in /home/phenom/GIT/RetroShare/trunk/
libbitdht/src/util/bdbloom.cc:223
 2: Calling 'bloomFilter::getFilter' in /home/phenom/GIT/RetroShare/
trunk/libbitdht/src/util/bdbloom.cc:240
 3: 'bytes' initialized to 0 in /home/phenom/GIT/RetroShare/trunk/
libbitdht/src/util/bdbloom.cc:141
 4: Call to 'malloc' has an allocation size of 0 bytes in /home/phenom/
GIT/RetroShare/trunk/libbitdht/src/util/bdbloom.cc:148
2017-04-25 09:47:10 +02:00
Phenom
7d9a80326d Fix Clang warnings: bdnet_inet_ntoa C-linkage
/libbitdht/src/util/bdnet.h:107: warning: 'bdnet_inet_ntoa' has C-
linkage specified, but returns user-defined type 'std::string' (aka
'basic_string<char>') which is incompatible with C [-Wreturn-type-c-
linkage]
std::string bdnet_inet_ntoa(struct in_addr in);
            ^
2017-04-18 11:18:10 +02:00
Phenom
da4b168a04 Fix Clang warnings: mFns is not used
warning: private field 'mFns' is not used [-Wunused-private-field]
        bdDhtFunctions *mFns;
                        ^
2017-04-17 21:09:40 +02:00
dimqua
90abd2fff1 bdboot update 2016-11-29 19:05:02 +03:00
Gio
5274b8aa97 Solve some compiler warnings:
usage of memory after free (false positive)
unused variable (stacked mutex)
malloc parameter type mismatch
2016-08-26 13:10:09 +02:00
csoler
bf28ea7ac7 removed debug info in udpstack.cc 2016-07-03 18:49:02 -04:00
sehraf
3bb03ff89d Added new (optional) callback to libbitdht to ask upper layer if an IP is banned.
In case this callback is implemented it will be used in favour of the built-in ban list.
2016-06-20 22:30:51 +02:00
sehraf
4a07e3cb30 remove compiler warnings libbitdht 2016-06-01 21:20:50 +02:00
Julian Ospald
ed867c52bd
Don't hardcode g++ in the toolchain settings
Although it's already quite ugly that we overwrite QMAKE_CC like this,
hardcoding 'g++' can break the build where prefixed versions of
the toolchain are expected and where QMAKE_CXX is already properly
defined. So we just use QMAKE_CXX variable here.

This fixes build failures on some distributions, e.g.
https://galileo.mailstation.de/jenkins/job/lipidity/36/console
2016-05-27 18:07:28 +02:00
csoler
fa8a585e20 removed some debug info 2016-04-15 18:25:53 -04:00
Cyril Soler
d878334551 Merge pull request #206 from realityfabric/master
Added top level license file for GPL 2.0
2016-02-16 17:45:49 -05:00
Phenom
7d21666098 Fix compilation of bencode.c for C compilator.
Remove C++ in this C file.
2016-02-14 17:40:10 +01:00
csoler
9c6e7dfc13 added checks after mallocs in several files 2016-01-11 23:49:00 -05:00
electron128
22c00fc638 fixed free() in UdpLayer::recv_loop 2016-01-01 14:07:15 +01:00
Jessie RealityFabric
d0a01166a4 Create LICENSE.md 2015-12-16 02:09:35 -08:00
realityfabric
e003f561e3 Made it so that sys/select.h is only included if the operating system is not Windows 2015-12-13 08:27:32 -08:00
Sergei Reznikov
34758be52a Add Haiku support 2015-10-20 20:32:44 +03:00
csoler
7293cd3afa updated ubuntu changelog 2015-09-21 22:58:58 -04:00
AsamK
571336e1f4 Move duplicate common stuff out of platform parts 2015-09-06 22:27:22 +02:00
AsamK
66b9557833 Use PKGCONFIG instead of manually specifying LIBS for Linux
- The advantage is that this method automatically includes additional
  dependencies of LIBS (e.g. libupnp needs -lixml).
- Also if some distribution moves headers to non default locations the
  correct locations get added by PKGCONFIG
2015-09-06 22:27:22 +02:00
AsamK
b66f466c7a Move all INSTALLS to the subproject they belong to
Allows installation of for example only retroshare-nogui, without
installing files only relevant for gui

$ qmake
$ make retroshare-nogui
$ make retroshare-nogui-install_subtargets
2015-08-31 22:49:46 +02:00
AsamK
e135e3441c Create retroshare.pri for common configurations in .pro files
So far it only contains the default values for installation paths
2015-08-31 21:09:28 +02:00
thunder2
5aa8de3e62 Fixed uninitialized members of bdProxyId and bdConnectionRequest.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8515 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-18 10:19:36 +00:00
thunder2
825e723a32 Fixed uninitialised member in bdNodeManager
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8447 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-14 18:43:40 +00:00
csoler
5116042cf0 fixed uninitialised memory in bdfilter
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-14 15:32:49 +00:00
csoler
1541a2a0ad added missing FilterFlags causing uninitialised memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8374 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-06-04 20:25:13 +00:00
csoler
047977b645 Started implementation of ban list. For now, just gathers the list of banned IPs from
the DHT and is not used to reject IPs yet (the DHT list is, even if DHT is desactivated).
Next steps: GUI with switch controls, exchange of IP ban lists between friends, handling IP ranges.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8297 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-05-26 21:17:09 +00:00
csoler
5b2ba1e81c - added more debug info to p3LinkMgr
- added check for banned IP from DHT at connection time
- added regular removal of banned IPs from friend IP lists
- increased time of banned IP storage to 1 week (previously 6 hours)
- added save for banned IPs to keep them after restart (in bdfilter.cc) to file bdfilter.txt (can be manually updated)
- changed mFiltered into a std::map for increased search efficiency
- added secondary check of cert ID at connection time.-This line, and those below, will be ignored--

M    libretroshare/src/pqi/p3netmgr.cc
M    libretroshare/src/pqi/pqimonitor.h
M    libretroshare/src/pqi/p3peermgr.cc
M    libretroshare/src/pqi/p3linkmgr.h
M    libretroshare/src/pqi/pqissllistener.cc
M    libretroshare/src/pqi/p3peermgr.h
M    libretroshare/src/pqi/p3linkmgr.cc
M    libretroshare/src/pqi/pqiperson.cc
M    libretroshare/src/pqi/pqissl.cc
M    libretroshare/src/rsserver/rsinit.cc
M    libretroshare/src/dht/p3bitdht_relay.cc
M    libretroshare/src/dht/p3bitdht.cc
M    libretroshare/src/dht/p3bitdht.h
M    libretroshare/src/retroshare/rsdht.h
M    libbitdht/src/udp/udpbitdht.h
M    libbitdht/src/udp/udpbitdht.cc
M    libbitdht/src/bitdht/bdmanager.cc
M    libbitdht/src/bitdht/bdmanager.h
M    libbitdht/src/bitdht/bdnode.h
M    libbitdht/src/bitdht/bdfilter.h
M    libbitdht/src/bitdht/bdfilter.cc
M    libbitdht/src/bitdht/bdnode.cc
M    libbitdht/src/bitdht/bdstore.h


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-05-25 14:02:45 +00:00
csoler
77a33cd445 removed unnecessary debug output
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8153 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-04-21 20:09:20 +00:00