RetroShare/libretroshare/src/services
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
..
Makefile Bugfix for gpg connections. 2009-07-07 21:53:06 +00:00
p3banlist.cc Removed some more compiler warnings from Windows compile (GCC 4.4). 2012-02-17 10:03:38 +00:00
p3banlist.h Removed some more compiler warnings from Windows compile (GCC 4.4). 2012-02-17 10:03:38 +00:00
p3blogs.cc Changed parameter of the methods of pqiNotify from "std::string" to "const std::string&" 2011-06-29 22:54:44 +00:00
p3blogs.h merging distrib split into trunk 2011-09-10 15:20:15 +00:00
p3bwctrl.cc Switched ALLOC_FACTOR to 1.0 for the moment. Its only advisory for now anyway! 2012-06-22 13:02:02 +00:00
p3bwctrl.h Added Bandwidth Monitoring service to libretroshare to help debug Lag. 2012-06-21 23:23:46 +00:00
p3channels.cc Changed parameter of RsChannels from "std::string" to "const std::string&". 2012-04-24 12:49:54 +00:00
p3channels.h Changed parameter of RsChannels from "std::string" to "const std::string&". 2012-04-24 12:49:54 +00:00
p3chatservice.cc Added check for empty lobby nick name. 2012-05-23 22:33:45 +00:00
p3chatservice.h Added check for empty lobby nick name. 2012-05-23 22:33:45 +00:00
p3disc.cc Merged branch v0.5-OpenPGP into trunk: 2012-07-13 21:53:39 +00:00
p3disc.h Removed some std::ostringstream. 2012-04-17 21:00:54 +00:00
p3dsdv.cc Removed some std::ostringstream. 2012-04-17 21:00:54 +00:00
p3dsdv.h Tweaked DSDV parameters. 2011-11-29 18:20:04 +00:00
p3forums.cc The channel message (in channels) is set to read when the user clicks on the show more button. 2012-02-12 00:58:47 +00:00
p3forums.h merging distrib split into trunk 2011-09-10 15:20:15 +00:00
p3gamelauncher.cc Removed std::stringstream. 2012-04-19 22:10:00 +00:00
p3gamelauncher.h Removed p3ConnectMgr. Replaced it with p3LinkMgr, p3NetMgr and p3PeerMgr. 2011-07-09 18:39:34 +00:00
p3gameservice.h * Addition of the basic Games Launcher - used to organise networked games with peers. 2008-01-21 09:22:42 +00:00
p3msgservice.cc Friend recommendation message 2012-05-05 22:20:05 +00:00
p3msgservice.h Added new message flag for system messages like friend request. 2012-05-01 09:18:55 +00:00
p3photoservice.cc Removed some std::ostringstream. 2012-04-17 21:00:54 +00:00
p3photoservice.h This intimidating patch renames libretroshare/src/rsiface/ to 2010-08-06 09:40:23 +00:00
p3service.cc Removed some std::ostringstream. 2012-04-17 21:00:54 +00:00
p3service.h Added a name to the RsMutex class. 2011-07-04 22:59:39 +00:00
p3statusservice.cc Count the friends (gpg id's) instead of the locations (ssl id's) in the statusbar. 2012-02-25 01:48:56 +00:00
p3statusservice.h Extracted a new widget ChatWidget for the basic chat handling from the PopupChatDialog and use it in ChatLobbyDialog too. 2012-01-17 20:36:36 +00:00
p3tunnel.cc Removed some std::ostringstream. 2012-04-17 21:00:54 +00:00
p3tunnel.h reimplemented the tunnel handshake 2010-02-25 22:44:04 +00:00