Commit Graph

2803 Commits

Author SHA1 Message Date
drbob
1787e50b94 Changes to get tests compiling on MacOSX.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3278 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-10 14:17:29 +00:00
drbob
2200b5b679 * Enabled test. NB: must make nodeId random!
* added bootstrap ids to test directory.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3277 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-10 12:56:35 +00:00
drbob
c415bb6158 Addition of libbitdht.
============================================================

This is intended to be a completely independent library from RS, 
(hosted at sf.net/projects/bitdht) hence is being commited at the top level.

As initial further development / testing will be driven by RS integration
it is being added to the RS repository. Equally important is ensuring
that RS can compile without requiring aux libraries.

Once libbitdht is further developed, this section of the repository
is expected to be removed... But that will not be for a while, I expect.

drbob.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3276 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-10 11:48:24 +00:00
thunder2
9b72977bba Optimized calls to p3Peers->getGPGOwnId in MessengerWindow::insertPeers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3275 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-09 22:57:44 +00:00
csoler
fbd8a33db0 added display of checking stage in GUI (at end of transfer). Gave names to the states in ftTransferModule. Added a flag for ForceCheck files (not functional yet)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3274 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-09 21:04:29 +00:00
leander-256
36a9159884 Fixes two compiler warnings:
- call of GeneralPage() with null pointer rather than the boolean false
- decomposition of a suspicious line into safe expressions (problem related to
  sequence points)


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-09 01:10:27 +00:00
thunder2
7dd79e650f Forgot to close the new invite page after sending the mail.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3269 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-07 23:54:47 +00:00
thunder2
1734ce4fdc New page in ConnectFriendWizard - "Invitation by Email"
Created by defnax and modified by me

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3268 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-07 23:13:40 +00:00
thunder2
f452304b5c Change header of MessageComposer when title edit has modified - like ThunderBird
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3267 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-07 23:03:34 +00:00
defnax
7eba601144 removed old version strings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3265 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-07 20:53:11 +00:00
thunder2
3f7ad6ebd9 ConnectFriendWizard
- Cleaned includes
- Corrected call of mailto, certificate now has new lines in mail body

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3264 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-07 18:40:38 +00:00
thunder2
9495648d16 Optimized call to p3Peers::getPeerCount in MainWindow::updateStatus
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3263 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-06 21:17:41 +00:00
leander-256
dc67b88eb1 - tidies the HEADERS and SOURCES list
- makes "make install" easier to use for source-based distros


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3262 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-06 15:02:59 +00:00
csoler
458a8faf70 - implemented post-download hash re-check. For now, if the hash does not match, the download is canceled, but in the near future, per-chunk comparison wil occur
.
- corrected a bug that caused file copy error: a closeFile() was missing when the file is complete. Because of delays in fwrite, the file would not be always co
mplete, nor exist at all for small files (e.g. cache files), which in the later case caused the copy error.

Warning: needs a make clean in libretroshare to recompile.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3261 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-06 05:04:11 +00:00
defnax
225781aa51 set a minimum size hint for the friends list in CreateChannel
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3260 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 20:20:32 +00:00
drbob
126a1d4012 Switched parent from MainPage to RsAutoUpdatePage ... in an attempt to fix GPG password freeze.
don't think it worked!



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3259 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 19:41:46 +00:00
drbob
0c4bf7be54 Fix incorrect TLV Signature DataType.
This will cause loss of all forums (again). 
 Sorry - I don't lightly change datatypes... but better to do it all at once.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3258 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 18:32:53 +00:00
defnax
e7d659946d set minimum size hint for the items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3257 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 18:17:54 +00:00
defnax
700048fd9c fixed the layout of ShareKey
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3256 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 18:12:03 +00:00
thunder2
1a9d68b536 Fixed compile on Windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3255 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 11:37:07 +00:00
defnax
54c8b2b0fa update rs version
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3254 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-05 10:52:50 +00:00
drbob
6a40e1b2f3 Switched p3distrib (forums) personal signatures from ssl to pgp.
* Changed calls from AuthSSL to AuthGPG and tested. looks like it works!
 * added extra connect addresses in p3connmgr (current[local/server]addr)
 * added mConnMgr->addFriend() call to pqissllistener to add unknown ssl certs.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3253 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 22:23:45 +00:00
drbob
8b2cb688a8 Restored p3disc functionality.
* Bugfix in correctly adding ipList.
 * restored setLocal/Ext calls from peer.
 * Added extra debugging in p3disc.
 * Cleaned up debugging in p3connmgr.
 * switched off debugging in rsdiscitems.
 * reorder ipList (most recent first).
 * removed DEBUG switches in libretroshare.pro



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3252 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 15:16:52 +00:00
drbob
6f219d4fef Bugfixes:
* Corrected mLocal -> mExt in ipset.cc
  * Added pqiipset_test
  * added both Ext and Local address to GUI display.
  * p3connmgr: Ip Addresses only updated if we connected (otherwise port is wrong).
  * p3connmgr: update external address when we get it.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3251 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 13:19:09 +00:00
drbob
518de7b8c8 'open' Complained it needed 3rd argment (don't know why???)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3250 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:59:04 +00:00
drbob
ae4ee9df00 Networking REWORK: Changes for other bits
* Fixed #includes in upnp
 * switched p3disc over to the new data types.
 * added new source to .pro file
 * minor changes to other code.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3249 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:42:17 +00:00
drbob
8745c2fe2e Network REWORK: Partial tests for p3ConnectMgr behaviour..
* Added new test harnesses for pqiPersonGrp and pqiconnect.
 * Added 2 p3connmgr tests.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3248 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:38:54 +00:00
drbob
f4331da483 Networking REWORK: Major cleanup of p3ConnectMgr.
(Sorry for the ridiculously large check-in, wants to fix lots of stuff.)

Other Changes:
 * Added SSL Test Harness. (authssltest)
 * Added GPG Test Harness. (authssltest)
 * Reworked SSL/GPG startup to enable test harnesses
 * pqiperson: added notify of FAIL if connection method unavailable.
 * added p3tunnel to pqissltunnel init.
 * pqimonitor: added ipHistory to connect callback.
 
p3ConnectMgr Changes:
 * removed STUN system - wasn't operating correctly anyway without DHT.
 * switched to new IpAddress history data types. (removed lots of code)
 * Added Addr history for both Local and Ext addresses.
 * removed p3tunnel references in p3connmgr
 * fixed up mUseTunnelConnection flags (now used!)
 * fixed up mUseExtFinder flags (now used!)
 * added improved Net Status.
 * corrected UPNP / EXT / UDP startup. (was always UPNP).
 * fixed netReset() and netStartup().
 * removed unnecessary DEBUG code.
 * added UPNP timeout code (600 secs - why does it take so long?)
 * added improved netExtCheck().
 * removed wierd netConsistencyCheck() ... to rework.
 * corrected connect / reconnect code.
 * removed DHT notify code.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3247 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:35:38 +00:00
drbob
85e1b4b111 Network REWORK.
* Removed nasty list of ip addresses from rsPeerNetItem
 * create TLV type to handle ip address history instead.
 * switched to new data type. (should be seemless?)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3246 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:17:37 +00:00
drbob
3575f12240 Network REWORK
* Added separate classes to handle IpAddress History.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3245 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 10:15:56 +00:00
leander-256
c0ba17fce3 Several fixes:
- stores an iterator rather than searching a map twice
- deletes a message when it can't be routed in routeGenericTunnelItem()
- deletes a message when its contents allocation failed in sendFileData()


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3244 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-04 05:50:33 +00:00
defnax
4b1a42a4c5 added resource icon for the windows binary
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3243 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-01 21:56:56 +00:00
thunder2
4001c76ff7 fixed compile of retroshare-nogui on windows
must be started from cmd

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3242 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-01 21:11:25 +00:00
leander-256
fe46d7618a Prevent multiple instances from running on Unix systems.
Every call to RsInit::LoadCertificates() now creates a file:
~/.retroshare/xxxxxxxxxxxxxxxxxxxx/lock
which is then bound to a system lock (fcntl F_SETLK).

If the lock request fails, it means another instance is already
running with the same profile.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3241 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-01 20:30:36 +00:00
thunder2
840f077826 finished add a Friend with RetroShare ID in ConnectFriendWizard
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3240 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-07-01 19:04:41 +00:00
defnax
6008ef5e22 Added to display RetroShare ID on Peer Details
Added to display for each Signers Peer Name + (PeerId)
Added first basic add a Friend with RetroShare ID, not yet finished

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3239 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-30 21:57:46 +00:00
thunder2
17723df2c8 - set items in TrustView to not editable
- don't show the own gpgid in FofPage in ConnectFriendWizard

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3238 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-30 14:52:41 +00:00
defnax
852d82e287 update German translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3237 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-30 12:21:15 +00:00
csoler
c8fc75c75c added some safety checks to setting chunk strategy against inconsistent values.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3236 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-29 20:51:16 +00:00
csoler
f7ff141a37 restored the retroshare-nogui executable
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-27 16:28:44 +00:00
thunder2
918decfd0d fixed compile on Windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3224 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-27 00:18:33 +00:00
defnax
c1ae6c9773 enabled root decoration for Channels tree and renamed some items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3223 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-26 22:28:04 +00:00
drbob
863a29fda1 NETWORK REWORK (cont)
Rework of AuthSSL: cleanup and split up.

 * Split out independent SSL functions into sslfns.h / sslfns.cc
 * Reworked SSL certificate storage.
 * Reworked SignDataBin / VerifyDataBin (fixed memory leaks).
 * Removed funny code: /* cert->cert_info->key->pkey is NULL */ 
     - just use X509_get_pubkey() instead.
 * Removed lots of old code.
 * Fixed up Mutex usage in AuthSSL - which was random.
 * Removed certificates from tlvSignature serialiser obj.
 * removed certificates from p3distrib messages.
 * Starting removing "unused parameter" compiler warnings.
 * Various related changes to make libretroshare compile.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3222 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-26 12:31:24 +00:00
drbob
545a465735 NETWORK REWORK (cont)
Changes required elsewhere
 * peerStatus() fn signature updates.
 * changed Heartbeat fn call in p3disc (think Heartbeat should be rethought!)
 * removed p3tunnel from libretroshare (used BAD getPeer() function).
 * removed optimisations from debugging.
 * removed test cases from libretroshare.a source list.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3221 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:13:52 +00:00
drbob
713d956882 NETWORK REWORK (cont)
* removing old tests and unused code.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3220 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:10:21 +00:00
drbob
bfa9965c9b NETWORK REWORK (cont)
* Removed unused FLAGS from pqi_base.h
 * corrected pqiStatus() fn signature in dhtmgr.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3219 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:09:07 +00:00
drbob
5df785ed4e NETWORK REWORK (cont)
* restored AuthSSL::Failed/CheckCertificate() calls.
 * removed mConnMgr->isConnected() checks. These should be elsewhere.
 * enabled exit(1) call if cannot open listening socket.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3218 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:06:49 +00:00
drbob
981724a8f1 NETWORK REWORK (cont)
p3connmgr: This needs major help... and will be revisited. 
Only changes to get code compiling for now.

 * revert peerStatus() function signatures (to match pqimonitor.h)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3217 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:02:59 +00:00
drbob
9f4deb1cf7 NETWORK REWORK (cont)
pqiperson / pqipersongrp: generally okay, One Nasty BUG.

  * removed pqipersongrp::getPeer() fn. Violated Mutex protections!!!!
  * reworked heartbeat code, which used getPeer() fn.
  * switched all notifyConnect() calls to include remote_addr.
  * added explicit stoplistening() call when removing peer.
  * removed funny DO_NEXT_ATTEMPT callback code.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3216 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 22:00:38 +00:00
drbob
00d0d999dc * Removed list<IpAddressTimed> from callback
This functionality might need to be restored later, 
     but should be done with list<> for both Local and Remote Addrs.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3215 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-25 21:54:41 +00:00