Commit Graph

873 Commits

Author SHA1 Message Date
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
csoler
4b49ef34ec corrected mismatched free/delete in avatar items. Might have caused random crashes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2740 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-20 14:15:30 +00:00
csoler
76144c89e8 removed double definition of fingerprint
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2733 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-19 21:32:26 +00:00
csoler
97359c93f9 - Fixed deadlock when asking for GPG passwd with gpg callback during session.
- Added a method lockAllEvents()/unlockAllEvents() to remove timer updates in RsAutoUpdatePage
- Updated passwd message to be more user-friendly
- removed some warnings in authgpg.cc

- Trunk to branch portage:

  2703: added commandline option '-U' to allow user to access different profile 
         - in the situation where autologin is enabled 
         - BUG found (or rather autologin induced it), if one asks to make friends to a 
  	     peer (in ConfCertDialg) 'within' a session that uses autologin it freezes 
  
  2697: add the internal counter mutex lock. Move the code of the rw mutec to the rsthreads.cc file
  2696: fix a code bug
  2695: add a read / write lock and refactor authgpg with it
  2694: Add own key to p3disc clients


WARNING: this commit needs a clean compilation




git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2732 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-19 20:17:33 +00:00
joss17
9eccfef9c1 Fix a bug when adding a cert
Conflicts:

	libretroshare/src/pqi/authgpg.cc

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2730 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-19 11:42:59 +00:00
joss17
976cafe564 add commentary for openssl 1.0 compilation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2714 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-15 09:36:04 +00:00
csoler
504d6654b2 ported trunk commit 2689,90,91,92 into branch
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2701 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-10 14:53:18 +00:00
joss17
9f7e9517a6 block the notify callback of authgpg when the main windows is launched
Conflicts:

	libretroshare/src/pqi/authgpg.cc

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2699 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-08 19:27:44 +00:00
joss17
12050089da Add own key to p3disc clients
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2684 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-05 19:51:00 +00:00
csoler
ae09f71d59 added -D_FILE_OFFSET_BITS=64 to allow compilation on lucid i386
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2682 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-05 14:11:15 +00:00
csoler
1901ac10ef updated rsversions
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2678 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-04 14:46:11 +00:00
csoler
c307d8bb9a added a state message for examining files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2672 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-03 16:04:35 +00:00
csoler
37124b0f9c suppressed notify callback in main thread, resulting in deadlock, and explicitely askes for queued message passing for notifyError
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2666 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-29 19:08:53 +00:00
joss17
4aaf6feffa update timings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2656 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-28 19:33:33 +00:00
joss17
15e85e50f0 change the timings and add some randomness for tcp connections
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2655 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-28 19:33:17 +00:00
csoler
f0e1d2afc3 corrected one nasty bug due to missing return
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2654 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-28 18:56:30 +00:00
csoler
9abbe935b3 added security to fd management, corrected bug causing bad fseeks
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2651 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-28 10:03:44 +00:00
csoler
a7358e060a suppressed some uninitialized memory reads
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2646 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-27 15:44:18 +00:00
csoler
d246ff2d7b suppressed uninitialized memory read in file transfer, also made the TransferDialog more secure
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2643 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-26 22:41:13 +00:00
csoler
058f965b71 cleaned some debug text, suppressed a few memory leaks
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2624 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-24 21:46:41 +00:00
csoler
3b1006bfa4 fixed a bug in download queue when ticking inactive files. Added a checkbox for showing cache transfers. Cleaned the dialog cleaning method.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2583 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-21 15:35:20 +00:00
csoler
20fd24d7b8 suppresed bad lookup in _queue causing SIGV
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-21 13:50:11 +00:00
csoler
589711d482 cleaned the config->Transfers tab, made the default chunk strategy combobox effective.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2576 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-17 21:10:10 +00:00
csoler
8305fe0bf7 - fixed copy/paste of RS links in public and private chat
- cleaned the code for anchorClick() in private chat
- added return false for FileRequest of already have files
- suppressed sources when the file is complete, in TransfersDialog.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2574 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-17 15:01:00 +00:00
csoler
1d016a6ceb added proper close for file transfers. This drops down the number of FDs from 250 to ... 50 svn status
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2562 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-16 13:33:49 +00:00
csoler
a914e463d3 added missing locks, that caused random crashes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2561 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-16 12:42:52 +00:00
joss17
09b2633b01 avoid sending bad gpg cert in p3disc
Conflicts:

	libretroshare/src/services/p3disc.cc

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2557 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-15 19:14:43 +00:00
joss17
e9d42e1965 improve the recieving of bad gpg keys
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2556 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-15 19:13:43 +00:00
csoler
928a06c17e trunk/branch uniformisation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2552 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-15 16:26:41 +00:00
joss17
814c06eb7a increase udp ttl
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2542 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-14 19:08:43 +00:00
joss17
7de56f3b1f change ssl binary encryption to aes debug code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2536 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-13 11:48:05 +00:00
joss17
2abed326bd change ssl binary encryption to aes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2535 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-03-13 11:47:24 +00:00