joss17
89ab9b1553
Revert "add a quiet shutdown when SSL_ERROR_SYSCALL is raised"
...
This reverts commit 7b8310ff019a9d81ada9d11a7aeceec8c50c9ee0.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1898 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-17 22:22:46 +00:00
joss17
a12084d620
add a quiet shutdown when SSL_ERROR_SYSCALL is raised
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1896 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-17 22:22:09 +00:00
joss17
00edab16d9
fix a bug when connected through a tunnel
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1895 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-17 22:21:51 +00:00
joss17
cfcd773d6e
fix a bug
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1893 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-15 22:04:50 +00:00
joss17
7ca2b01791
fix a reconnection bug
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-15 21:50:45 +00:00
joss17
83db3bebb9
add current local and external address to ip list
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1890 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-15 17:48:48 +00:00
joss17
4f25178d47
improve extract of external ip address from the ip address list
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1888 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-15 16:56:58 +00:00
joss17
2b52db6c47
rework a little the netCheckConsistency
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 21:59:15 +00:00
joss17
908a6e1891
add debug info
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1885 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 21:21:51 +00:00
joss17
8e4ce11532
work on the timeout for tcp and udp connection
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1884 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 21:20:17 +00:00
joss17
6f0e7de534
fix ext address peer detector
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1883 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 18:46:08 +00:00
joss17
76d5072624
add ext address detector when connectiong to peers
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1882 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 18:11:19 +00:00
joss17
34c4e500e4
fix a bug in the udp timeout
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1875 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 13:59:25 +00:00
joss17
cd01b0df43
DHT disabled
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1872 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 13:46:38 +00:00
joss17
b447a213ea
perform a net reset when network config is changed
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1871 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 13:46:23 +00:00
joss17
892598d6eb
change the address selection of udp connection
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1869 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 10:34:57 +00:00
joss17
fdb3673ce2
Add the tunneling connection. Warning, encryption is not implemented yet for tunnel connection, use only for testing.
...
Redesign the udp connection
Remove the rsiface duplicates from retroshare-gui.
Add some randomness in timings for connect manager
Merge branch 'connectionTunneling'
Conflicts:
libretroshare/src/libretroshare.pro
libretroshare/src/pqi/p3connmgr.cc
retroshare-gui/src/RetroShare.pro
retroshare-gui/src/rsiface/rsfiles.h
retroshare-gui/src/rsiface/rstypes.h
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-13 21:59:26 +00:00
joss17
adbdb51c5d
removed unused code and logouts, redesign the initial connection
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1836 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-18 17:46:38 +00:00
joss17
36c2a726fa
check to see a peer is connected before doing a net reset. Don't do a net reset when a loopback interface is used. Set netFlagOk down when on a loopback interface.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1831 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-16 10:53:17 +00:00
csoler
e18167a07a
forgot to commit this
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-14 21:54:43 +00:00
csoler
e77064eaf1
removed deadlock by replacing lock() by trylock(). As a result sometimes, authGPG::getDetails() may return false. As soon as it is used by the GUI only, it shoul dbe ok.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1823 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-14 20:20:33 +00:00
joss17
6a48284c31
remove a deadlock
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1822 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-14 11:59:50 +00:00
joss17
573e7b2474
remove upnp mapping before adding new ones
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1821 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-12 22:19:45 +00:00
joss17
8168be6828
less call to extFinderAddr
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1820 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-12 22:19:25 +00:00
joss17
874d9f45fa
fix a bug when removing 1 from a zero siglen
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1817 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-12 17:14:50 +00:00
joss17
5a2dbc4bdf
simplified and improve ip list for connect attempt. Show the ip in the gui
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1816 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-12 11:51:27 +00:00
joss17
6a656eeabc
add port filtering if 0 for address list
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1813 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 22:13:07 +00:00
joss17
e0543329ad
add address list to gui
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1812 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 22:12:50 +00:00
joss17
d2f9f1c4f1
final code, working on local machine
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1811 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:49:11 +00:00
joss17
020bb73665
add the ip list to the connect attemps
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1810 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:47:54 +00:00
joss17
fcea2d3a24
implemented the ipAddressList methods
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1809 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:47:10 +00:00
joss17
864c504eb4
dummy implementation of the peerConnectState ipAddressList methods
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1808 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:46:28 +00:00
joss17
f85adf7c25
change to only one ip list instead of one local and one remote
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1807 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:45:46 +00:00
joss17
9a6ff52da1
add the serializing of ip adress list, and the process to ad ip to the list when a connection is made to a peer
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1806 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:44:51 +00:00
joss17
74e20960c2
remove log output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1805 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:44:22 +00:00
joss17
00361c22a5
first commit, change some members name from localaddr to currentlocaladdr, and add ip lists in the classes. Not used yet to connect or exchange
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1804 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-11 16:43:51 +00:00
csoler
10dcad632a
setup reconnexion time to 5 seconds after reset
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-06 22:56:01 +00:00
csoler
1ac3eee9fe
added reset of current connexions and force-reconnect when network configuration changes.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1797 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-06 22:42:41 +00:00
csoler
ad96c86f68
Added dynamic local and external ip reconfiguration. I still need to reset connexions when changing ips.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1796 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-06 22:12:58 +00:00
csoler
7c1288411a
made the passwd dialog call Qt-independent (thanks to notifyBase)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1793 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-11-05 19:38:10 +00:00
joss17
3fc211ab15
Add a QTDialog for the gpg key passphrase input
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1790 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 21:26:35 +00:00
joss17
6fba28ee0d
Solve windows gpg bug and modify windows .pro project files qtcreator
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1787 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:46:58 +00:00
joss17
7b7846f22f
windows compilation fix
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1784 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:45:57 +00:00
joss17
62111d00ca
change timer and fix log messages
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1780 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:44:44 +00:00
joss17
4295eee208
change timers
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1779 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:44:24 +00:00
joss17
95888fed59
add a timeout to ext addr finder
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1778 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:44:04 +00:00
joss17
60210e786b
add extAddressFinder tick search
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1776 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:43:31 +00:00
joss17
ff87287af4
add logs
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1773 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:42:44 +00:00
joss17
b99b99f0d5
Bug which causes net reset solved
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1770 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:41:55 +00:00
joss17
2e5130a1da
rewrite connection manager
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1769 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:41:24 +00:00
joss17
cf157422f5
improved stun check
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1767 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:40:31 +00:00
joss17
3d82d40a96
add debug log for connection manager
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1765 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:39:59 +00:00
joss17
81e1978a83
store exaddr from upnp to stun
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1763 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:39:26 +00:00
joss17
3c7f714650
improved stun failure resistance
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1761 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:38:52 +00:00
joss17
f090ee87b6
add network reset ehancement for stun and udp
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1760 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:38:37 +00:00
joss17
432311d5c3
small udate
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1758 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:38:02 +00:00
joss17
54276344ad
add reset net status when shutingdown
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1757 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:37:45 +00:00
joss17
7a7a4fc8d7
better flag management
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1755 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:37:12 +00:00
joss17
20cff8ecbd
add loopback network interface compatibility
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1754 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:36:56 +00:00
joss17
938c2edef2
removed unimplemented tcp flag
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1751 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:35:59 +00:00
joss17
324b51e250
improve udp stun and upnp collaboration
...
Conflicts:
libretroshare/src/libretroshare.pro
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1749 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 00:35:12 +00:00
joss17
b6c2b6897a
add gpg engine name log output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1743 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-28 21:10:35 +00:00
joss17
c00928a349
change back the engine setting. Now it should work with gpg1 and gpg2
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1740 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-27 20:50:30 +00:00
joss17
62452ed3c5
add gpgme error output
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1737 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-27 20:48:11 +00:00
joss17
8a67100ebf
set gpg2 engine for gpgme
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1734 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-27 20:46:56 +00:00
joss17
a6029d69db
change ssl password encryption to non symmetric
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1730 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-27 20:39:47 +00:00
csoler
500b996ff5
fixed core dump issue.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-05 20:16:37 +00:00
csoler
a3b8ed76f5
corrected small display bug of location
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1626 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-09 20:15:38 +00:00
csoler
64a06fd0bb
fixed core dump issue where AuthSSL::VerifySignBin() is called with NULL parameters. Still, this should not happen.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1624 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-09 11:22:44 +00:00
drbob
0f99826623
* Major tweak to the serialiser: shifted size to 32bits to handle bigger packets. This will break compatibility.
...
* Modified tlvitems to support future expansions.
* added random tlv test functios.
* added dummy Wide Directory functions to rsdir (for the future;)
* Fixed Mutex Bug in fimonitor.
* added netiface_test for hiberation / net change testing.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1620 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-08 20:18:43 +00:00
joss17
6b63f511e3
add debug info when ip address is set to an unknown peer
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1604 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-06 19:52:48 +00:00
csoler
26db7ada52
restored accounting for LAN transfer rates. See also trac ticket #60
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1592 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-04 20:31:25 +00:00
csoler
6de5024634
corrected bug in conversion char * (from gpgme) into string
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1586 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-02 19:31:10 +00:00
joss17
d00a33ca14
add warning log info
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1585 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-02 19:20:46 +00:00
csoler
76fe07e428
added missing return in error case handling
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-09-01 19:48:18 +00:00
joss17
6db7ae1fe5
add error handling. Maybe some code review ciould be a good idea
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1556 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-18 12:44:54 +00:00
joss17
0a28f35eea
encrypt and decrypt ssl password
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1550 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-18 12:43:19 +00:00
csoler
a293a39d1b
- Integrated the turtle search and download to the gui. Now the search handles both friend and turtle searching.
...
- added a console in config->server->F2F routing to be able to visualize turtle routing statistics
WARNING: this is not complete yet. The fllowing still needs to be done:
- detect duplicates in search results between turtle and friends search
- RegExpr search does ot work with turtle (still to code).
- search does not search own files. Is this really needed after all ?
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1540 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-16 20:10:53 +00:00
csoler
dfeaed705b
corrected potentially harmful uninitialized memory reads
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1534 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-14 07:28:58 +00:00
joss17
0043af68c1
changed ctx->current_cert into X509_STORE_CTX_get_current_cert(ctx) according to steve@openssl.org
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1530 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-13 15:10:43 +00:00
joss17
ab07042510
Revert "changing X509 ctx->current_cert to ctx->cert because of null pointer"
...
This reverts commit 7dbe821174ad65db5b22ecebec1e8ae5f356239b.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1528 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-13 15:09:58 +00:00
alexandrut
339fcd53ed
add persistence to download queue
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1510 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-10 19:01:27 +00:00
drbob
60349baf9d
* Fixed certificate saving bug. (authssl.cc)
...
* added cert->issuer to external interface (rspeers.h)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1501 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-09 13:06:24 +00:00
drbob
6e5d2f43d8
This is a little experimental modification to the TCP/UDP listening ports.
...
* Modified bind calls to attach to 0.0.0.0:XXXX instead of specific
IP:Port combinations. This will help connectivity when RS chooses
the wrong interface.
* These changes are within #defines so they can be easily reverted.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1498 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-06 10:46:37 +00:00
drbob
2dfb95ad13
Fixed code to compile under windows.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1495 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-05 16:35:07 +00:00
drbob
2bf94b909a
Reworking of networking code to enable Net Restart.
...
* Stun code now runs continually - to check external network state.
* Udpsorter controls DHT stun is on/off. (via p3ConnectMgr)
* added code to enable threads to join/restart
* enabled NetRestart for UDP and TCP.
* tweaked networking code for faster startup (now ~30 seconds - can still be improved).
* tweaked debug messages for testing networking
* Added test for checking external IP address determination.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1492 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-04 23:22:44 +00:00
joss17
af0b56836f
changing X509 ctx->current_cert to ctx->cert because of null pointer
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1477 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-08-02 14:12:22 +00:00
drbob
a023a0bfcd
Major change to the way certificates are stored now defaults to ~/.retroshare/SSLID/
...
* supports Multiple Accounts on same computer.
* Enabled libretroshare tests using Makefiles.
* restructured RsInit functions: Config Data is now private.
* switch OpenPGP on by default (added #define to rsinit).
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1451 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-30 21:27:47 +00:00
drbob
870a30eac5
Modifications for updated Windows Build.
...
1) mods to use miniupnpc v1.3
2) bugfix to use WriteFile instead of write under windows with gpgme.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1449 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-30 14:36:42 +00:00
drbob
369bb6a5c5
Bugfixes to make pgp friend sharing work.
...
* added rsinit.h include so PGPSSL flag is read. (enabling ISSUER sharing)
* extra debugging so we can see the certs being passed around.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1399 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-21 21:25:39 +00:00
csoler
a436053e8b
windows compilation fix
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1397 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-21 20:57:18 +00:00
csoler
4685fadbeb
Hope I finally corrected the connexion + one-way bug
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1396 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-21 20:14:31 +00:00
csoler
f7475887dc
suppressed some debugging code
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1393 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-20 19:28:16 +00:00
drbob
e9a2c24ab1
Added Authentication update... for cases where
...
auth fails the first time, but is okay the second.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-08 20:58:58 +00:00
drbob
fec470c774
Bugfix for gpg connections.
...
added missing files to Makefiles
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1331 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-07-07 21:53:06 +00:00
csoler
f16c136cbb
changed the order of upnp/stun and extaddrFinder to limit wrong analysis of firewalled situation
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1302 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-06-16 18:58:42 +00:00
joss17
646603d71d
new computing for download and upload rate. No more indiv rate settings
...
Merge branch 'maxUploadRate'
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1293 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-06-08 17:09:00 +00:00
csoler
48218e98cb
turtle tunnel management
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-06-03 18:47:14 +00:00
joss17
7b4c7384b5
Merge branch 'gcc44'
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1279 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-27 20:59:48 +00:00
drbob
d4b52a59e5
Major bugfixes to get PGP authentication finished.
...
* p3disc now exchanges "Issuer" (pgp) certificates as well.
* additional types for rsdiscitems.h
* Bug Fix for NULL packet in p3service.cc
* allow unauthed SSL certificates to be added in AuthSSL - otherwise cant add new friends!
* only save authed SSL certificates.
* fixed ref/unref of PGP keys in AuthGPG
* added Mutex protection to AuthGPG
* added PGP reloading when key is imported, or signed.
* Fixed PGP key signing.
* added Additional field validLvl to RsPeerDetails.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1270 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-25 11:38:47 +00:00
drbob
387b7bae6a
* Fixed up SSL peerIds and gpg password stuff.
...
* PGP version compiling / running on OSX now.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1268 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-24 10:33:08 +00:00
drbob
edd13ba38a
Missed these files from libretroshare
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1267 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-23 17:40:35 +00:00
drbob
5f28f76b07
* Addition of openpgp support!
...
This is not enabled by default. Instructions to enable are at the end of msg.
This is 60% complete. Supports creation of certificates, adding friends and connections.
Parts still to do: pgpids, p3discovery, signing and trusting peers.
The main reason it is being commited is so that connections between peers can be
properly tested, and development on OSX and win can start.
This requires gpg and the gpgme.h development libraries, and no longer
requires the custom ssl libraries.
To compile it switch the configuration flags in scripts/config-linux.mk
To compile XPGP (v0.4.x) enable PQI_USE_XPGP:
#PQI_USE_SSLONLY = 1
PQI_USE_XPGP = 1
To compile SSL only, enable PQI_USE_SSLONLY:
PQI_USE_SSLONLY = 1
#PQI_USE_XPGP = 1
To compile OpenPGP, disable both:
#PQI_USE_SSLONLY = 1
#PQI_USE_XPGP = 1
and enable RS_USEPGPSSL in rsiface/rsinit.h
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1265 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-23 15:07:35 +00:00
csoler
79388588b0
added missing BIN_FLAGS_READABLE to pqistore constructor calls
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1231 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-13 20:18:03 +00:00
csoler
2bf79b663d
added missing BIN_FLAGS_WRITABLE
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-13 19:54:33 +00:00
drbob
02fc02d23c
Modified (all I hope) remaining pqistream -> pqistore for cache file save/loads.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1223 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-12 21:55:50 +00:00
joss17
ec072e53f4
add include complying to gcc 4.4
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1217 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-11 14:30:53 +00:00
drbob
2f1a8700ac
Switched configuration back from 'Archive' Format to the standard
...
RsItem Packets.... but used an alterative streamer similar to pqiarchive.
This will cause problems, and delete the configuration for those
who have upgraded in the last month .... but will maintain compatibility
with previous stable release.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1201 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-09 00:19:54 +00:00
joss17
698425ba9e
Merge branch 'badPacketMessage'
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1168 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-05-05 13:35:36 +00:00
drbob
28df984148
* Added partially completed authssl.cc, as we move towards openpgp authentication.
...
Once completed this will allow standard ssl authentication and provide the base for
the openpgp authenticator,
* Tweaks, and removed debug statements.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1140 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-04-22 23:29:16 +00:00
beardog_uk
2f7fb3690f
This should fix the bug with copypasting certifcates.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1126 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-04-10 19:52:07 +00:00
csoler
fac2a1cb83
made ip service checkbox permanent
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1125 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-04-09 21:13:48 +00:00
csoler
4bb497a905
Cleaned the gui a little bit:
...
- added a checkbox to control the use of external servers for ip determination.
- put back Network on the left
- put channels out of RS_RELEASE_VERSION, as it's not working yet.
- NetworkDialog:
- set the info in columns about trust to be more explicit
- changed dark green into light green to comply with colors in the trust matrix (it's also more readable in light green)
- corrected trust strings that appeared in the Last Contact column
- changed "generate certificate" in connect friends wizard into "export my certificate..." which is more appropriate
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-04-05 13:04:18 +00:00
csoler
e23bd13bc9
added server-based ip determination as a fallback to existing methods. Forced Dht publishing as soon as an external ip is known
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1109 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-04-03 09:21:20 +00:00
csoler
0cd24c8f21
Corrected the 127.0.0.1 persistency bug
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1104 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-30 20:07:24 +00:00
csoler
9b59f89cdf
Fixed file rename by using a common rsDirUtil function
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-29 13:58:28 +00:00
csoler
4d278ac414
win32 compatibility for moving files
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1099 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-26 13:24:27 +00:00
csoler
a311814714
suppressed misleading ssl error.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1091 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-20 23:43:24 +00:00
csoler
631e3b303e
Secured the output of .cfg files and cache files. Now closing RS or serializing errors while saving these files cannot corrupt them anymore.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1090 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-20 23:37:06 +00:00
csoler
3d2514238e
made own avatar persistent. Next task will be to make friends avatars persistent too
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1088 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-20 20:41:31 +00:00
beardog_uk
efd9a2f056
update, during the GUI for invitation changes
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1084 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-18 19:33:30 +00:00
csoler
05659d6b7c
Added a Mutex around out_pkt and out_data in pqistreamer.cc, as a thread race between queue_outpqi and handleoutgoing is most probably responsible for random packet corruption.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1068 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-11 20:36:51 +00:00
csoler
cc993dab25
yet another uninitialized memory read gone
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1067 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-09 19:38:00 +00:00
csoler
24c841ffe3
Suppressed uninitialized memory read.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1066 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-09 14:10:24 +00:00
csoler
1424d85384
Fixed the ssl connexion problem. However, for connexions to occur correctly, both peers should upgrade to this new version
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1062 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-03 19:40:42 +00:00
csoler
14dc2fbf7e
added another anti-lag strategy in pqissl.cc. This is to avoid connexion problems
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1060 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-03-01 15:12:22 +00:00
csoler
23a617dca4
Added a workarround for the packet sending problem. This is not optimal, but seems to work fairly well.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1054 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-26 14:04:48 +00:00
csoler
59cdaba9dc
Improved the notification model so that it uses Qt signals to avoid core dumps, and improved the gui to increase responsiveness (e.g. forum display, network discovery info, friends, msg deletion and selection)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1050 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-22 17:36:39 +00:00
csoler
dbe494abac
win32 compilation compatibility
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1048 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-16 08:48:57 +00:00
csoler
d58b4dad7d
suppressed some debuggign output.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1047 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-15 20:22:34 +00:00
csoler
f98c8153a6
found and corrected this bug about wrong packet size. This took me the WE, but I have a great deal of patience ;-)
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1046 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-15 20:13:35 +00:00
csoler
19aa089701
Added the infrastructure for propagating trust info through third parties
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-12-23 16:23:54 +00:00
drbob
1efe8a2cb1
Added Authenticated Forums. This required quite a bit of
...
additional functionality in other places, including:
* add Sign / Verify functions to authxpgp
* sign/verify messages, and control flags for p3distrib/p3forums.
* add authmgr to p3distrib etc.
* added AUTH flags to rsforums interface.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@867 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-12-06 00:23:43 +00:00
csoler
7fe41aecae
suppressed uninitialized memory read.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@860 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-12-01 12:41:09 +00:00
drbob
77cb7314bc
Tweaked tabs and order. Added NewsFeed.
...
Added Template functions for ssl+xpgp code.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-29 20:17:58 +00:00
raghu-dev
5c9b0b5917
added files gpgauthmgr.cc and gpgauthmgr.h
...
this provides the new GPG implementation
added API to store all GPG keys in a map
added APIs to get GPG certificate IDs
added APIs to get Details from the Certificates
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@839 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-24 18:40:03 +00:00
drbob
4610d1ddac
Added Mutex protection to the core comms (pqihandler + pqipersongrp).
...
also added a Mutex to the ServiceServer.
This will hopefully fix the random threading crashes.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@829 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-22 13:15:07 +00:00
drbob
c60cf84e95
* Switched off lots of debugging.
...
* Tweaks to the transfer rates.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@824 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-18 21:22:58 +00:00
defnax
df7cbc58e6
* Fixed Messages Dialogs QLabels
...
* Fixed Online and Message Toaster to look bether .
* Update stylesheets for bold fonts for Subject,From,Date,To, Subject Text
* Set for From Text Label Blue font.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-17 03:03:23 +00:00
drbob
66bf56207d
* Added Configurations to new file transfer.
...
* Enabled config in p3file-startup.cc
* Enabled resumeTransfers
* Added new RsFileConfigItem to serialiser.
* extended ftFiMonitor to use Configuration.
* bug fix to add/remove Shared Dirs.
* Increased Channel/forum periods to 3/12 months.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@806 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-15 20:00:29 +00:00
drbob
fce83cb232
More bugfixes ... got the basic channels file transfer working.
...
* Create channels directory correctly.
* added File Transfers to Config List.
* connected statusChange() monitor callback.
* fixed file sources in transfermodule.
* fixed up transfer restarts / sleeps.
* enabled opening files read only.
* disabled some of the debug.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@799 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-13 23:03:46 +00:00
drbob
1e33267951
Modifications to libretroshare to enable a
...
build against a standard OpenSSL library...
Still lots to do (implement AuthSSL), compiles all but final gui.
use USE_XPGP flag in build script to control it.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@796 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-09 16:52:14 +00:00
stockpicker
c0e846f7f7
Fixes missing includes and strict gcc 4 code checks for Linux
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@785 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 12:59:21 +00:00
drbob
0d96b43d34
Enabled new File Transfer Code in libretroshare.
...
NB: This is not yet working. so SVN is now officially broken :(
Hope to have the bugs ironed out soon.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@782 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-11-02 11:38:11 +00:00
drbob
bc98b9ea7d
BugFix: DHT was not turning on.
...
also updated the ServerDialog with more info on exact network state.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@753 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-10-18 16:02:06 +00:00
drbob
174c3f7377
* Added Sourashis' work on certificate cleanup.
...
* Added call to function when loading certificate from a string.
(ie when the user cut n pastes it).
* added return 1 call to pqipersongrp.cc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@714 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-31 18:50:31 +00:00
drbob
7b7446c5b5
More bugfixes for file transfer stuff.
...
* Completed 2 basic tests (ftserver1test & ftserver2test)
* Updated test notes.
* debugging stderr output.
* fixed return code in ftfilesearch.cc
* corrected ftcontroller run() to call fttransfermodule::tick()
* fixed ONLINE status for OwnId (ftcontroller too)
* corrected message sources for test harness.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@705 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-21 21:30:59 +00:00
drbob
eb8dacc798
Integration of ft into a working system.
...
* Made ftTransferModule compile.
* bugfixes to make ftserver1test work.
* New P3Pipe / P3Hub ...
* Added Test Notes.
* First functions added to ftcontroller
* added isOnline to p3ConnectMgr.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@698 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-17 15:23:11 +00:00
drbob
cf7d072a5b
Added missing functions to connectMgr.
...
Some debugging (which should be #ifdefd )
Removed old make.opt
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@691 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-16 15:40:47 +00:00
drbob
8df643596e
Missed a file.
...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@690 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2008-08-16 15:06:03 +00:00