RetroShare/libretroshare/src/util
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
..
dnsresolver.cc Removed std::stringstream. 2012-04-19 22:10:00 +00:00
dnsresolver.h made the DNS calls in a separate thread, using new DNSResolver class. Added test program for that class as well. Moved extaddrfinder to util/ 2011-01-24 22:05:10 +00:00
exampletst.c Addition of new makefile scripts. 2007-11-16 04:45:00 +00:00
extaddrfinder.cc removed possible data race on boolean value (Not critical) 2012-05-12 13:10:57 +00:00
extaddrfinder.h made the DNS calls in a separate thread, using new DNSResolver class. Added test program for that class as well. Moved extaddrfinder to util/ 2011-01-24 22:05:10 +00:00
folderiterator.cc Fixed utf8 issue in history manager. 2011-10-01 13:12:28 +00:00
folderiterator.h This is a patch for the previous patch *facepalms* 2010-05-16 23:59:39 +00:00
Makefile Bugfix for gpg connections. 2009-07-07 21:53:06 +00:00
pugiconfig.h checked in first bits of code for cache service data optimisation, 2011-03-04 22:16:25 +00:00
pugixml.cc checked in first bits of code for cache service data optimisation, 2011-03-04 22:16:25 +00:00
pugixml.h checked in first bits of code for cache service data optimisation, 2011-03-04 22:16:25 +00:00
radix64.h Fixed default data rates to sensible options: 200 kB/s down, 50 kB/s up. 2012-01-27 13:03:59 +00:00
rsdebug.cc Removed some std::ostringstream. 2012-04-14 00:30:23 +00:00
rsdebug.h Removed some std::ostringstream. 2012-04-14 00:30:23 +00:00
rsdir.cc Merged branch v0.5-OpenPGP into trunk: 2012-07-13 21:53:39 +00:00
rsdir.h Merged branch v0.5-OpenPGP into trunk: 2012-07-13 21:53:39 +00:00
rsdiscspace.cc removed unused code 2011-09-23 21:14:19 +00:00
rsdiscspace.h - removed calls to rsfiles->get{Download,Partials}Directory() in RsDiscSpace class, since it would trigger a call to ftController 2011-09-23 21:08:11 +00:00
rsid.h exposed generic ID type in util/, patched rest of the code to use it. 2012-06-06 20:31:19 +00:00
rsnet.cc Removed some std::ostringstream. 2012-04-15 14:37:44 +00:00
rsnet.h Removed some std::ostringstream. 2012-04-18 00:00:59 +00:00
rsprint.cc Removed some std::ostringstream. 2012-04-15 14:37:44 +00:00
rsprint.h Removed some std::ostringstream. 2012-04-15 14:37:44 +00:00
rsrandom.cc - Changed default random number generator to use RAND_bytes from openssl. 2011-09-28 19:34:27 +00:00
rsrandom.h Added Ben's patches: 2011-09-28 15:16:21 +00:00
rsstring.cc fixed compile on OSX. 2012-06-19 12:00:52 +00:00
rsstring.h Removed usages of "std::istringstream" and "std::stringstream". 2012-05-03 13:41:03 +00:00
rsthreads.cc Added a name to the RsMutex class. 2011-07-04 22:59:39 +00:00
rsthreads.h Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rsversion.cc added SVN_REVISION to rsversion to not overwrite LIB_VERSION 2009-12-16 21:54:46 +00:00
rsversion.h forget to commit this 2012-05-25 07:49:42 +00:00
rsversion.in update version string and changelog 2012-05-24 12:02:34 +00:00
rswin.cc Fixed utf8 issue in history manager. 2011-10-01 13:12:28 +00:00
rswin.h Fixed utf8 issue in history manager. 2011-10-01 13:12:28 +00:00
smallobject.cc Added a name to the RsMutex class. 2011-07-04 22:59:39 +00:00
smallobject.h made FileEntry derive from SmallObject class, to improve memory cache efficiency (50% time gained) 2011-04-03 20:10:26 +00:00
utest.h Addition of new makefile scripts. 2007-11-16 04:45:00 +00:00