Commit Graph

169 Commits

Author SHA1 Message Date
thunder2
21e97a47df Added a new page for user request to ConnectFriendWizard.
The page is shown instead of the conclusion page when the user clicks on the certificate link in a message of type user request.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5432 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-16 10:20:34 +00:00
thunder2
0e0458e40c Fixed empty certificate string in ConnectFriendWizard when click on a certificate link.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5426 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 14:49:42 +00:00
thunder2
cfe72859bf Added automatic clean of the friend certificate in ConnectFriendWizard.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5422 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 23:20:33 +00:00
csoler
60f51c358c - added new certificate format in ConfCertDialog and ConnectFriendWizard, with a button to switch to old format if necessary
- added automatic cleaning of certificates in both formats
- grouped all certificate cleaning/parsing code in rscertificate.cc
- removed unused files cleanupxpgp.h/cc
- added upper/lower case to rsid template.

The new format is to be tested. It is supposed to be much more robust than the previous format,
in particular, allowing any string for location names.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5410 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 19:37:50 +00:00
csoler
cde076aac6 added auto-clean of certificates at load time. Removes many errors.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5337 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-27 14:26:05 +00:00
thunder2
9389849e53 Fixed crash when starting the help browser from friend details the second time.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5305 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-15 22:24:03 +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
2ca0bf71d0 fixed bad call to isKeySupported()
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5284 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-10 18:30:37 +00:00
csoler
fa6674fd01 removed old includes of gpgme. Updated values for trust
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5279 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-07-07 16:26:54 +00:00
csoler
dba66cdd7a added check for DSA/RSA key algorithm. Disabled make friend, login and cert creation, with unsupported keys
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5221 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-06-14 20:13:31 +00:00
thunder2
22a0f89751 Redesigned ConnectFriendWizard as ui file.
Added new base class DropLineEdit.
Fixed german language.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5181 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-22 22:24:10 +00:00
thunder2
25547d0ea8 Added patch from braindead:
changed base-class of AvatarWidget to QLabel

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5179 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-05-21 19:37:38 +00:00
defnax
e8b1c08ace Removed not needed field in FriendRequest Dialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5121 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-26 09:42:35 +00:00
thunder2
10400faf4c Removed minimal version.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5113 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-20 15:17:52 +00:00
defnax
57260853b7 removed not used items
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5090 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-12 15:20:06 +00:00
defnax
6aa7cd1e14 Added "You have a friend request" label to FriendRequest Dialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5088 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-10 15:55:12 +00:00
defnax
665b7fbf47 removed not needed button
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5083 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-07 11:19:42 +00:00
defnax
70af1eccf5 Renamed "Accept Friend Request" Button to "Confirm",
set correct stylesheet for new forum item

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5082 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-06 21:29:09 +00:00
defnax
d0a9874c54 Added stylesheet for the Friend Request Buttons
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5081 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-05 21:20:28 +00:00
defnax
70a7d6ce40 Added Friend Request Dialog for SecurityItem
Fixed the horizontal spacers

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5077 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-04-04 15:44:35 +00:00
csoler
0778e8f691 3 patches from AsamK:
* fixed utf8 in dropping links to channels
	* fixed pasting cert links in the friend list
	* added code to allow pasting GPG certificates missing a newline at the end.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-30 19:43:39 +00:00
thunder2
a5f8aa3077 Fixed display of the location with utf8 characters in ConnectFriendWizard.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5020 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-15 21:12:02 +00:00
thunder2
8f0f6a9f3e Moved the news feed tab to the first position.
Added icon to the ConnectFriendWizard.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4944 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-15 21:13:16 +00:00
thunder2
340a313fea Fixed bug when the user clicks on a link without http:// in a QTextBrowser. This link was opened directly in RetroShare.
Show clickable links in the channel feed message.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4923 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-11 13:42:42 +00:00
thunder2
04dedf5ce0 Fix some source code for better translation, added some new words to translate and removed some words not to be translated.
Fixed german translation.
Please review the other languages.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-05 21:05:11 +00:00
thunder2
91809abd56 Replaced std::string by QString in GetStartedDialog for easier translation and to prevent problems with utf8 chars.
Fixed german translation.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-04 00:55:55 +00:00
drbob
a1806bb04f Fixed up Email Invite Text...
* Unified Text Source.
 * Added "Cut Below Here" line



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4883 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-02-03 20:38:45 +00:00
csoler
b8816c8622 fixed small bug in certificate correction
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4864 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-01-29 16:49:35 +00:00
csoler
a8456a2332 Plugged-in method for removing signatures in PGP keys => now RS has small and constant-sized certificates.
- added checkbox in ConfCertDialog to allow adding/removing signatures
- enabled again key signature button in friend wizard
- RS cert links now use small keys.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4836 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-01-23 20:55:08 +00:00
csoler
51cfb0c5fe added retroshare certificate links: allows to paste certificates everywhere. Users need to click on them to launch the make friend wizard on the certificate. Certificates can be copied from each location of the Friends list
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4812 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-01-18 20:31:30 +00:00
thunder2
27bc170471 ConnectionFriendWizard: Show the messagebox "Your Cert is copied to Clipboard" after copying the cert into the clipboard.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-12-10 13:26:03 +00:00
thunder2
bb9f362458 Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4618 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-09-27 20:25:12 +00:00
csoler
4111740cb6 fixed utf8 issues in sending cert by email (patch from asamK #3393826)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4615 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-09-25 12:33:37 +00:00
thunder2
62b2de63b7 Added new widget to display an avatar with or without the status frame - AvatarWidget.
Changed all existing avatars to AvatarWidget.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4589 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-09-05 21:19:07 +00:00
thunder2
b35d32ef15 Added avatar image to ConfCertDialog (defnax).
Added new class AvatarDefs to get the avatar for a ssl id or gpg id.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4585 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-09-02 10:22:44 +00:00
csoler
8941aa5991 corrected a few bugs in the cert cleaning method. Added feedback to the GUI and error codes for the cert cleaning function of rspeers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4580 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-30 21:49:49 +00:00
thunder2
35a059c44c Partial fix for ticket #146:
- set default of the signature checkbox in ConnectFriendWizard to disabled
- set the initial option for the download directory to network wide only
- set the default of a new shared directory to network wide


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4578 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-28 22:54:01 +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
drbob
b082362c58 Updated retroshare-gui to match libretroshare interface changes.
* remove calls to rsPeers->setAcceptToConnectGPGCertificate();
 * these are replaced with addFriend() / removeFriend().
 * renamed rsPeers->getSSLChildListOfGPGId() => rsPeers->getAssociatedSSLIds().



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4543 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-08-07 21:14:09 +00:00
drbob
1cb0a9dc21 Various improvements to the GUI.
* Switched ServerPage to use netMode, rather than tryNetMode. This fixes the Network Status.
 * Added "Advanced Mode" to Settings GeneralPage.
 * Store / Set Advanced Mode via rsConfig::get/setConfigurationOptions.
 * removed %0D%0A from Linux / OSX emails - made it Windows Only.
 * updated GetStartedDialog text.
 * updated Dht and Nat Indicators to accurately reflect Network status. Roughly:
   - DHT. Off:     gray, ERROR:   red, NO RS PEERS:           yellow, GOOD: green.
   - NAT. Offline: gray, BAD NET: red, NO DHT, or FIREWALLED: yellow, GOOD: green
 * disable GetStartedDialog is AdvancedMode is set.
 


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4502 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-07-30 17:13:08 +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
csoler
3f809b6c3a forgot to commit this
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4373 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-07-01 21:01:47 +00:00
csoler
e9853b655c added a signature add/remove button in connect wizard, only when gpgme-1.3.1 or greater is used, based on the availability of the GPGME_EXPORT_MODE_MINIMAL option.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4372 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-07-01 20:47:58 +00:00
thunder2
4c13280fed Show the RetroShare id of the peer and the signers of the key in ConfCertDialog as clickable links.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4212 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-18 21:23:26 +00:00
thunder2
0619463948 Fixed some more utf8 handling in the GUI.
Optimized creation of the RetroShare links for forum and channel messages.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4194 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-05-08 23:11:27 +00:00
thunder2
8f0793f071 Removed automatic cleaning of the certificate in p3Peers::loadDetailsFromStringCert.
Added new button in ConnectFriendWizard for cleaning the certificate.
Fixed cleaning:
- added blank line after the armor header
- moved the checksum to a new line
Recompile of the GUI needed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4134 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-04-08 18:53:12 +00:00
csoler
075efd6503 made sign GPG key button disabled by default, and added a tooltip. As this action cannot be undone,it must be performed knowingly.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4128 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-04-07 20:07:30 +00:00
csoler
5028b749e6 made sign GPG key checkbox unchecked by default
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4111 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-03-29 21:12:15 +00:00
csoler
49aad683b1 forgot to commit this file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4097 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2011-03-16 08:28:31 +00:00