Commit Graph

37 Commits

Author SHA1 Message Date
defnax
b2e88b2ed2 update version and changelog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5606 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-26 12:26:27 +00:00
csoler
20747426ec added missing libs to compile on arch linux (Patch by AC)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5558 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-17 18:42:31 +00:00
csoler
24a3fb58d4 Improved plugin system:
- the user is asked at start wether to load or deny unregistered plugins, but can make it mind later in config->plugins
- added API and SVN numbers into required external plugin symbols
- user-defined plugin rules are dropped when a plugin changes (hash changes) or when the main executable changes.
- added new status flags (Plugin denied, missing API/SVN numbers)
- modified saveList()/loadList() to allow saving a list of rejected plugins as well.
- added methods in notifyBase and inherited classes to ask for plugin confirmation.

- adapted VOIP plugin to follow these new rules (API+SVN numbers). Other plugins should be adapted as well by addign the 
 missing symbols (RETROSHARE_PLUGIN_api and RETROSHARE_PLUGIN_revision).



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5529 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-09 13:59:21 +00:00
csoler
7b6820a6e1 removed gpgme from link line
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5301 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-15 16:17:56 +00:00
thunder2
703e5def72 Removed usages of gpg.h and cleaned pro-files for Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5296 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-14 00:02:40 +00:00
csoler
fc8dfcf65b Merged branch v0.5-OpenPGP into trunk:
User-level changes:
==================
- libgpgme is not used anymore; it is replaced by a built-in piece of code called OpenPGP-SDK 
  (http://openpgp.nominet.org.uk/cgi-bin/trac.cgi) that was improved to be used by RetroShare
  for handling PGP keys.

- the gnupg keyring is not used anymore. Now, RetroShare has it's own gpg keyring, shared by all instances.
  On linux it's located in ~/.retroshare/pgp/. A lock system prevents multiple locations to read/write keyrings
  simultaneously.

- the trust database from gnupg is not documented, so RetroShare cannot import it. This comes from the fact that
  the GPG standard (RFC4880) asks explicitly not to export trust information. So RetroShare has it's own 
  trust DB shared by locations. This means you need to re-trust people. Sorry for that!

- at start, if no keyring is found, RS will propose to copy the gnupg keyring to use your existing keys. Clicking on 
  "OK" will do the copy, and you should find back all existing locations, except for DSA keys.

- locations for which the suitable keypair is not in the keyring will not be displayed in the login window
- locations for which the suitable keypair is not a RSA/RSA key will not be displayed. RetroShare does not
  support DSA/Elgamal keypairs yet.

- a key import/export exchange function has been added in the certificate creation window (you go there from the login
  window by clicking on "manage keys/locations". This allows to easily create a new location with the same pgp key on
  another computer. To obtain a suitable keypair using gnupg, you need to concatenate the encrypted private key and the 
  public key into an ascii file. This can be done using:
  		gpg -a --export-secret-keys [your ID] > mykey.asc
		gpg -a --export [your ID] >> mykey.asc

- importing a key with subkeys in not yet possible. Please remove subkeys before importing.

- The code has been tested for a reasonnable amount of time, but it's not possible to prevent some new bugs 
  to appear. Please report them asap supplying: call-stacks if possible, and terminal output. In particular,
  openpgp has some assert()'s that should not be triggered unless RetroShare is calling it in an improper way.

Internal changes
================
- a specific component, PGPHandler, takes care of the interface between openpgp-sdk and RetroShare
  openpgp-sdk is c-code, with it's own memory management, which has been kept well separated from 
  RetroShare.

- GPG Ids are now a specific class (not a std::string anymore) for code consistency reasons. As strings are
  still used in many places, this requires a few conversions. In particular, AuthGPG takes strings as
  function params and calls GPGHandler with the proper PGPIdType class. In the future, RetroShare should
  only use PGPIdType. The same will be done for SSL ids.

- signature cleaning is still handled by the Retroshare built-in function, not by openpgp, but we will 
  do this later.

Still to do
===========
- DSA needs subkey handling, since the encryption is performed by a Elgamal subkey. Not sure this will be done.
- GPGIds/SSLIds cleaning (meaning replace strings by appropriate types). Lots of confusion throughout the code in retroshare-gui in particular.
- key removal from keyring. This is a challenge to keep locations synchronised.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5293 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-13 21:53:39 +00:00
csoler
efa5460a52 fixed compilation of retroshare-nogui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5262 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-01 13:21:05 +00:00
thunder2
1885fb66c4 - Enabled compile on Windows (bzip2 library needed).
- Fixed crash after the second call to RsInit::InitRetroShare when keyring does not exist.
The instance of AuthSSL was created twice and AuthGPG was deleted without stopping the thread. Stopped the AuthGPG thread on exit of RetroShare.
- Added the correct path to the keyring for Windows in RsInit::copyGnuPGKeyrings.
- Changed the detection of the portable version on Windows from the file "gpg.exe" to the file "portable".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5211 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-10 00:29:46 +00:00
thunder2
3b85873313 Added patch from AC
- add missing includes "unistd.h" for compiling with gcc 4.7.0.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5096 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-12 23:29:39 +00:00
csoler
ded4174a13 patch from costa to add a spanish intro server
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5031 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-17 15:34:03 +00:00
csoler
b68e660a1c fixed compilation of introserver
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5028 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-17 13:18:29 +00:00
thunder2
bd7fe9f53d Fixed path to the libs in Windows build of retroshare-nogui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4982 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-23 11:11:33 +00:00
thunder2
5073913686 Fixed compile on Windows with enabled shadow build of Qt Creator.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4952 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-17 11:14:06 +00:00
drbob
9c5e4636c2 * Shortened Date string.
* Fixed Profile directory.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4938 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-14 01:06:41 +00:00
drbob
4ab4d60492 Improvements to IntroServer Mode:
* Move Dirs to .retroshare/<sslid>/
 * Automatically make directories.
 * Create 2 files: key & lobby name, cannot make 3rd file: hyperlink from nogui.
 * chmod NEWCERTS directory to 777
 * delete old peers at startup, reload peers from config file.
 * Add Date to Lobby name.

Improvements not done yet:
 - Remove inactive peers - it is tricky to tell the difference between unconnected and old.
 - Cannot make 3rd file: hyperlink from nogui.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4937 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-14 00:45:57 +00:00
drbob
4e367d3332 Added missing header files - as requested by theDude.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4920 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-11 12:21:48 +00:00
drbob
446db939b2 Added Code to convert retroshare-nogui into an "Introduction Server".
Perhaps the community can use this instead of their existing certificate exchanger.

The way it works:
	- Designed to be coupled up with a WEB Interface to allow new users to interact with each other.
	- Automatically sets up some Chat Lobbies, so that the new users can chat to each other.
	- If you drop a Certificate File into the NEWCERT directory, it is automatically loaded as a friend.
	- These Certificates automatically expire after a fixed period (2 Weeks at the moment).

So the idea is that Users upload their Certificates to the Intro WebServer, then they have two weeks
to test out Retroshare, and use the Intro Server to make some RS Friends.

To enable this Build, edit the .pro file.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4900 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-07 17:01:07 +00:00
drbob
4e5e149a95 Patch from Peter - to build Retroshare on FreeBSD.
- Fixup BSD qmake parameters: mainly library locations.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4863 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-01-29 14:27:14 +00:00
thunder2
cfed637215 Removed "release" from the win32 build in retroshare-nogui.pro.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4720 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-12-10 11:27:52 +00:00
csoler
d8702d73d2 added missign lib for ubuntu oneiric
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4641 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-10-15 18:44:37 +00:00
thunder2
d870412523 Forgot to commit retroshare-nogui and forgot to say recompile of the GUI needed.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4538 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-05 21:17:08 +00:00
csoler
5b74d957c0 fixed compilation of retroshare-nogui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4153 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-04-11 13:15:48 +00:00
csoler
7efe04b8c7 added missign lib
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4003 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-01-30 16:28:26 +00:00
thunder2
0e41211f3c Added new return codes to RsInit::InitRetroShare to know, what failed.
Show error box when gpg initialization failed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3744 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-11-03 22:54:34 +00:00
thunder2
bb796fd6d6 Fixed start of retroshare-nogui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3670 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-10-14 20:53:48 +00:00
leander-256
4bb4fc11e2 This intimidating patch renames libretroshare/src/rsiface/ to
libretroshare/src/retroshare/

All the relevant headers have been modified to reflect that change.

This allows installation of libretroshare on a system, headers will
be put in $WHEREVER/retroshare/ and we keep the ability to compile
against them, be it on the system or in the SVN tree.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3342 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-06 09:40:23 +00:00
thunder2
6000233267 Fixed compile of libbitdht on Windows
Enabled bitdht in RetroShare.pro and retroshare-nogui.pro too
Fixed link of RetroShare on Windows
-> added ws2_32 after bitdht, maybe someone has a better solution

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-03 12:15:20 +00:00
csoler
5d811a8891 fixed retroshare-nogui compilation (2)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3330 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-02 10:00:29 +00:00
csoler
199c412037 updated for bitdht
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3329 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-08-02 09:28:09 +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
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
defnax
d6625a15b8 fixed some compiling errors for retroshare no gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3184 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-21 18:26:50 +00:00
csoler
55653325d1 compatibility with new notification method: added a rsicontrol global variable
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1055 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-26 14:10:26 +00:00
csoler
78c07ca367 Turned RsInit into a static class, and changed retroshare invite so that it does not contain signatures anymore.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1022 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-08 14:30:28 +00:00
csoler
b9c9a71666 added new directory and .pro file for retrpshare-nogui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@989 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-02-03 19:42:07 +00:00