Commit Graph

904 Commits

Author SHA1 Message Date
csoler
36b0a9ee84 removed debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 13:15:33 +00:00
csoler
9004aa79f0 Made a pass on the code in p3disc. Corrected some bugs:
- suppressed an unwanted return in packet treatment
	- prevented sending info to a peer about itself
	- changed askInfoToAllPeers() such as not to discard info from peers with
	  NODISC flag (because we especially need info for these)
	- enabled receiving p3disc info even if p3discovery is disabled. Indeed,
	  disabeling p3disc is a measure of protection, so it should limit the
	  export of p3disc info, not the import.
	- removed test discarding info about dummy friends, because it is useless
	- don't discard info about peers that have the NODISC flag (meaning that we
	  especially need info for them)
	- added safety check about received GPG keys. Before we relied on this test
	  being performed by p3ConnMgr::addFriend()
	- added some debug info



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3102 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 13:14:09 +00:00
csoler
22f07fcc66 put correct (i.e. non conservative) size for RsDiscReply packets
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3101 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 12:53:30 +00:00
csoler
9e72fb31e6 suppressed debug mode
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3100 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 12:51:28 +00:00
csoler
f9ad63f74a moved operator<<(ostream&,sockaddr_in) to rsnet.h, as it is used at different places
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3099 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-10 12:39:14 +00:00
csoler
a9953c081c suppressed temp debug info
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3085 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-07 22:42:30 +00:00
csoler
737a4d0917 corrected bug in rsdiscitem that prevented RsDiscReply packets to transfer cp serialiser/rsdiscitems.cc ../../../../trunk/libretroshare/src/serialiser/rsdiscitems.cc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3084 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-07 22:23:28 +00:00
csoler
c94a5c4e67 switched ip addr finder to on by default (users seem to request it, and its not harmful)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3077 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-06 12:59:31 +00:00
csoler
0f8fae8344 automatic removal of file lists from deleted peers, at restart (After double check that this does not alter exchange of file lists in any way)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3071 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 19:10:30 +00:00
csoler
790ba02350 suppressed uninitialised memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3070 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 19:07:19 +00:00
csoler
d28c1f7cb7 set heartbeat values to intermediate values
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3069 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 19:06:21 +00:00
csoler
0095976d21 added verification for file size computation (bug correction)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3068 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 19:05:18 +00:00
csoler
2da2e29fdb augmented the heartbeat parameters, to reduce the stress on connections. Seems to help a lot when the traffic is high.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3047 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-01 20:33:27 +00:00
csoler
926dc8d78f updated version numbers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3035 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-30 14:07:44 +00:00
csoler
39969cd342 Suppressed the possibility for browsable only files to be searched by hash from turtle router.
This avoids that an attacker that captures a broadcast hash request can also ask for the file.

This needed to add back explicit sources in SearchDialog and private chat transfer. I dynamically search
for sources in file lists just before calling FileRequest.

When RS links anchorClick() will work properly with Qt, we can remove the search flag "EXTRA" from the
tunnel digging in p3turtle.cc, otherwise, people having this bug can't transfer files in private chat by
copy+paste of a RS link.

Also:
	- added missing mutexes in search requests into fimonitor.cc
	- suppressed some debug info in connect manager
	- added check for write fails when dumping config files



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3026 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-29 13:10:32 +00:00
csoler
6dce8aba18 updated doxyfile to list sources
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3022 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-29 07:36:34 +00:00
csoler
7343a7f03c ported trunk commit 3012: Fix discspace for OSX
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3019 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-28 14:06:03 +00:00
csoler
b9deaf1ea3 - added failure tests for fwrite. Some where missing.
- added a test against the IP 1.0.0.0, which pops up on MacOS (when the peer is not connected to the internet?)
- put some additional debug messages.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3017 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-28 13:57:44 +00:00
csoler
c87fbfe2cb Ported trunk commits 2968 2969 2972 2979 2986 2992 2993: implemented a free disk space checking method, with a warning when running low. Set the default to 50MB. Updated the message to be more explicit (thanks Chris)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3008 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-26 20:32:44 +00:00
csoler
971431bfa1 suppressed debug messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3007 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-26 19:52:38 +00:00
csoler
d6bb8f5f00 fixed proper sorting of IP lists.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2989 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-24 12:12:31 +00:00
csoler
88018d4512 suppressed debug messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2982 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 22:16:20 +00:00
csoler
cb535dd73d cleaned the code in IP address lists management. Removed some bugs. Changed the strategy a bit: only keep the most recent port for identical ips. Changed the interface of extAddrFinder to make it mroe secure.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2981 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-23 22:14:13 +00:00
csoler
f78e25521b put back an exit when the local address+port are already in use. Otherwise this corrupts file lists, config files etc.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2952 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-19 20:05:31 +00:00
csoler
a63b5262d8 cleaned up some desastrous code in rsdiscitems.cc, causing crashes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2951 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-19 20:04:23 +00:00
csoler
ffd1d15ad4 fixed win32 compilation issue
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2948 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-19 11:33:18 +00:00
csoler
3509e0beb9 improved the security of size determination for file lists (suppresses a small bug that caused a chain reaction ending in crash of client peers when downloading file lists)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2944 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-18 21:12:50 +00:00
csoler
f24b3c61f4 added a workaround for a bug in the cache system that asks for files of size 2^64-1. This results into a division by zero in ftChunkMap. Bu the time I find this bug, the workaroudn should avoid crashes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2931 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-17 21:02:51 +00:00
csoler
c92cf925e4 added missign lock in ftcontroller. This is likely to correct a bug.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2919 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-16 21:20:02 +00:00
csoler
37a2bfb8de added a check to avoid (possibly rare) data races
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2901 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-14 11:29:15 +00:00
csoler
69f2381a06 updated version numbers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2896 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-13 17:04:46 +00:00
csoler
ac693595c9 Ported trunk Commit 2882 (Thunder)
Memory leak:
	- getLocalInterfaces -> iptable = (MIB_IPADDRTABLE *) malloc(dwSize);
	- main -> RshareSettings  *_settings = new RshareSettings();

	ExtAddrFinder::~ExtAddrFinder - use free for pointer allocated with malloc

Ported trunk commit 2810 (Thunder):
	RetroShare stopped responding during signing a key and asking for password.
	The QSingleShotTimer of ConfCertDialog wants to update the gui and 
	stopped in  PeerItem::updateItem.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2883 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-10 17:49:19 +00:00
csoler
d82e1ba63c fixed chat bug that was truncating some messages, due to using a uint16_t to store a local size. Totally backward compatible. This fix might also affect blog messages.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2879 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-09 20:01:29 +00:00
csoler
d8e4430052 implemented a short circuit to local cache transfers. This saves a large number of file descriptors, and improves reactivity of the software
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2875 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-09 13:49:44 +00:00
csoler
d7d5997d86 suppressed unused files
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2865 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-08 14:43:55 +00:00
csoler
9ff8a8ae66 added a checkpoint to file hashing, to save intermediate results every 10 GB
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2861 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-07 21:15:57 +00:00
csoler
7abb59bca2 Ported branch commit 2852:
- corrected memory leak in p3disc heart-beat system.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2854 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-06 07:38:06 +00:00
csoler
198a1b925d corrected bug about persistence of default chunk strategy
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2816 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-30 21:00:28 +00:00
csoler
ed73533862 Ported trunk commits:
2781: 
		- fix a gui bug
	2786: 
		- The settings in the settings window are only loaded once.
		- Saving the settings without changing the network settings doesn't
		  shutdown the connections
	6788:
		- Forwarding a message keep the attached recommended files.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2803 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-27 19:07:00 +00:00
csoler
502e006352 - ported trunk commit 2801 into branch
Currently the only way to induce a bug is start rs for an ssl_id which
	which does not have a password saved, then try use an ssl id at start
	dialog  which does or does not have a pword (help_pword:bool enters an
	illegal state) 

	I have fixed it by checking if rsinit::passwd == "" then trying to load for
	that ssl_id, if that fails then i set help_pword to false; does not have
	password and pass flow to gpg to ask for passwd. (problem was rs thought
	user had help/pass file and they didn't).

	i have checked it in and tested for
	1. starting with ssl_id which has saved pword, and switching ids at start
		dialog
	2. secondary id may or may not have saved pword. 

- added check for the result of fscanf



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2802 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-27 18:50:37 +00:00
csoler
d451adc1a6 fixed compatibility issue with dyndns patch
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2785 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-25 20:03:40 +00:00
csoler
c7db07c37b - Ported trunk commit 2780: Set the trust lvl to 3 when accepting a friend and the trust lvl is unknown.
- Removed some potentially harmful (deadlock) code.
- Put some printf into debugging #ifdef



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2783 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-25 19:00:33 +00:00
csoler
a44280e267 Ported patch from thunder2 (http://sourceforge.net/tracker/index.php?func=detail&aid=2991827&group_id=178712&atid=886241)
- Bug fix: Checkbox for automatic share of the incoming directory doesn't correctly set with setDown, use setChecked
- ShareManager and RSettingsWin doesn't need to be created all the time
- RSettingsWin: Save the last active page for the current runtime
- ShareManager and DirectoryPage: Show changed shared directories direct after the change



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2776 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-24 22:06:12 +00:00
csoler
4695237eb3 updated version numbers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2771 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-24 13:46:23 +00:00
csoler
6cf65eb9fb corrected handling of null strings in RsTlvBase::GetTlvString()
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2766 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-23 13:42:01 +00:00
csoler
fd5523ae0a suppressed uninitialized memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2765 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-23 13:13:36 +00:00
csoler
f04535522f added security check against malformed packets
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2763 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-23 12:57:39 +00:00
csoler
3cca133e1c added a security check to avoid core dump when a bad p3discReply packet is received
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2761 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-22 21:31:14 +00:00
csoler
91f3aabdfe included patch for openssl-1.0.0 compatibility
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2748 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-21 08:54:10 +00:00
csoler
d7f555ff5c corrected other mismatched free/delete in avatar items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2741 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-20 14:30:53 +00:00