Commit Graph

62 Commits

Author SHA1 Message Date
thunder2
afa3248429 Moved loadCertificate from main, StartDialog and GenCertDialog to Rshare.
Switched StartDialog from QMainWindow to QDialog.
Updated english translation file.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5752 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-11-01 01:07:36 +00:00
thunder2
e99b30d015 Redesigned GenCertDialog for the usage in Profile Manager.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5738 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-10-29 11:02:03 +00:00
defnax
886f84b929 patch from Henry Morgan to correct spelling mistakes in source
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5662 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-10-11 10:28:24 +00:00
thunder2
32f918c213 Moved some internal stylesheets to the file Standard.qss.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5495 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-09-01 11:40:54 +00:00
defnax
26109d88c4 * Hide the import/export button, and set the new identity CheckBox set checked, when start a new Profile generation from Profile Manager.
* Set PluginItem icon size to 24

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5423 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 09:34:24 +00:00
defnax
86aa6b8a62 Fixed, hide Import Identity button, when creating a new key.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5395 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-08 14:28:03 +00:00
csoler
702263686e - fixed a few bugs in cert creation window:
* private key was not correctly added to private keyring
   * self signature validation was reported unsuccessful when unknown signatures where found
- enabled key import when no key is present


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5389 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-07 19:16:17 +00:00
defnax
b52fc7708f removed not needed info buttons for the infodialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5313 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-18 14:08:53 +00:00
thunder2
15c032468a Enabled translation (system default language) of the message box before the login to a profile.
Fixed german translation.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5304 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-15 21:37:35 +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
f5c276c9b5 improved error handling
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5289 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-12 19:20:31 +00:00
csoler
749dd01d77 implemented keypair import
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5287 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-11 16:17:49 +00:00
csoler
c9eb267165 implemented export of identity (to create additional locations easily). Import still to do...
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5285 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-10 21:40:53 +00:00
csoler
dc22171166 added placeholder texts (Qt>4.7)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5035 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-18 12:26:15 +00:00
thunder2
c907a5846c Added check for required location during gpg key generation.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4978 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-21 19:17:38 +00:00
thunder2
44806b7581 Found another missing toUtf8 in GenCertDialog.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4577 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-28 00:21:34 +00:00
thunder2
185307ad37 Fix for ticket #129
Utf8 chars don't show up for peer names, in private chat and file list.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4576 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-27 22:54:05 +00:00
thunder2
43c0594d18 Changed some parameters from "std::string" to "const std::string&" in rsinit.h.
Log the error messages from gpgme (ProcessPGPmeError) to stderr.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4560 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-12 20:02:00 +00:00
thunder2
70d02c718d Removed unused parameter warnings in retroshare-gui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4559 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-12 14:06:29 +00:00
thunder2
8d4a4db027 Changed the generation of the gpg key and location to utf8.
The existing gpg keys and locations with umlauts are now shown wrong. The changes are not backward compatible.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-07-17 23:07:29 +00:00
chrisparker126
2dd6581f14 added lockfile path info to the multiple-instances warning window in rs-
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4098 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-03-16 23:25:57 +00:00
csoler
7424cf02c7 removed display of SSL passwd
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3994 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-01-29 14:31:44 +00:00
csoler
29d143bebc - made the SSL passwd more secure (10^126 different passwds now) and random, based on the internal Mersenne twister.
- kepts compatibility with existing autologin passwds. Only new locations will have a long 64 chars passwd.
- implemented storage of SSL password in gnome keyring for autologin on ubuntu
- added UBUNTU define in both .pro files.
- suppressed display of SSL passwd at login



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3993 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-01-29 14:27:16 +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
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
defnax
37adbea543 fixed to hide ProgressBar
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3162 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-19 12:47:50 +00:00
defnax
f4186fb7c8 Added a ProgressBar for Profile Generation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3134 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-14 13:35:38 +00:00
defnax
2d087cea4c some improvements for Generating Profile Dialog, change Label and Button strings when switching to generate a new Profile or new Location.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3066 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-06-05 00:44:43 +00:00
thunder2
6baf56285b reworked settings
now there is only one global object for loading and saving settings

RshareSettings *Settings;

the class RSettings can be used too, but it is not prefered, because the default settings has no affect

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2964 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-20 21:53:27 +00:00
thunder2
8ce338c49c Source code maintenance
Memory leaks:
- NetworkDialog::loadcert -> new QFileDialog
- NetworkDialog::insertConnect -> takeTopLevelItem
- NetworkDialog::on_actionAddFriend_activated -> new QFileDialog
- main -> new StartDialog, new GenCertDialog

to be continued

Info:
Pointer from takeTopLevelItem must be deleted

Can someone convert the StartDialog from QMainWindow to QDialog ?


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2833 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-02 13:12:46 +00:00
csoler
401dac86e9 improved readability of cert generation dialog. Added tooltips, information, and wait cursor
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2821 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-05-01 15:17:23 +00:00
chrisparker126
6b8f62d8f0 Added support for Auto-login
- added checkbox in start dialog including warning (autologin not safe)
- added check box in gen setting to disable autologin on shutdown

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-04-08 11:55:10 +00:00
joss17
cc76a4d022 small fix on gencert dialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-26 23:43:55 +00:00
csoler
c7895aa0e2 made gpg ids more consistent with the way gpg lists them
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2380 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-20 13:36:30 +00:00
csoler
449f257ef5 added more detailed info about gpg ids in login and gen certificates dialogs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2379 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-20 13:25:09 +00:00
joss17
bb3696597a add some validators for gpg key gen
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2313 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-14 12:04:44 +00:00
defnax
4d1e48e63e added icon for gpg key checkbox
clean up and removed not needed icons

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2291 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-12 12:11:59 +00:00
defnax
63b98f3ccc improved design of profile generation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2288 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-12 01:02:18 +00:00
joss17
cd09858390 remove the progress bar on gpg key generation as it doesn't worrk properly
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2256 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-09 14:11:34 +00:00
joss17
e84fab0562 redesign cert generation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2205 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-02-05 22:20:55 +00:00
joss17
e142c63180 update start wizard, change gui settings directory into ssl profile directory (RestroShare.conf)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2141 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-27 22:31:25 +00:00
joss17
bf36fd86bf add input validator for gpg key gen
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2118 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-24 22:15:02 +00:00
joss17
f481dbef59 add include for latest gcc. Comment usleep fonction in tou_net.h
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2101 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-20 22:02:43 +00:00
joss17
868e60af06 add the possibility to create a gpg key for new profile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2089 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-19 21:44:13 +00:00
defnax
eab78c5c03 added Animation as progress when generating a new key
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2072 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-18 22:02:40 +00:00
joss17
af68fa36ce add key generation at startup if no gpg key found
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2068 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-18 12:30:54 +00:00
joss17
77b3c0afd0 first code for the gui : network dialog, start dialog and certificate first generation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2009 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-13 21:08:46 +00:00
joss17
45b2287d41 remove the store of the pgp password
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2008 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2010-01-13 21:06:53 +00:00
defnax
bbe773b91c removed not needed old Preferences
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1876 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-12-14 17:13:10 +00:00
joss17
be575a918d hide the password fields
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1791 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2009-10-30 21:26:51 +00:00