RetroShare is a Free and Open Source cross-platform, Friend-2-Friend and secure decentralised communication platform.
Go to file
drbob bb10b6b400 Added first version of RPC system for external control of retroshare-nogui.
The protocol message format is as follows: 
	[HEADER: 16 bytes: 4 x Network Order uint32_t][ VARIABLE LENGTH BODY ] 

	[ MAGIC_CODE ] [ MSG_ID ] [ REQ_ID ] [ BODY_SIZE ] [ ........ BODY ......... ]
	MagicCode = 0x137f0001 ... this will be incremented for new versions of the protocol.
 	MsgID = Corresponds to the format of the Body.
	ReqID = Generated by Requester, Returned in Response, make sure its unique. (undefined behaviour for duplicates)
        BodySize = Byte Length of Body.

	The Body will consist of a protobuf encoded message.

For the moment, the RPC server just ECHOs the request back to the sender - for testing purposes.

Usage:
 * Create SSH connection to retroshare-nogui.
 * Create Request Message(s), and send over SSH channel - You can send as meny requests as you want. 
 * They will processed, and responses sent back (potentially in an arbitary order).

Specific Changes here:
 * Modified rssshd to support arbitary recv/send applications. (interface is RpcComms).
 * Added rpc directory, with server, setup and echo service.
 * Modified Menu System to use the new interface to rssshd 
 * Wrote new matching interface for Terminal Usage.
	- NOTE: Strange BUG in Terminal version.... causes stderr to disappear. TODO.
 * Added -C commandline option to switch on RPC system.

This is the first version - so I expect there will be bugs. Please report for a prompt fix!



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-20 14:59:41 +00:00
build_scripts updated ubuntu changelog 2012-07-25 12:37:12 +00:00
libbitdht/src Fixed crash when using rs_sprintf/bd_sprintf or rs_sprintf_append/bd_sprintf_append with empty result (maybe only on Windows). 2012-07-29 13:28:45 +00:00
libretroshare/src Got message retrieval working for genexchange across gxs chain 2012-08-19 22:15:37 +00:00
openpgpsdk/src removed deadly assert in case of parse failure 2012-07-27 14:15:00 +00:00
plugins FeedReader plugin: 2012-08-13 21:35:11 +00:00
retroshare-gui/src Got message retrieval working for genexchange across gxs chain 2012-08-19 22:15:37 +00:00
retroshare-nogui/src Added first version of RPC system for external control of retroshare-nogui. 2012-08-20 14:59:41 +00:00
build-all-mingw32make.bat improved build bat file (san) 2012-07-22 12:03:11 +00:00
README.txt - added encryption / decryption of files and memory 2012-04-08 14:52:01 +00:00
RetroShare.pro Renamed the pro-file of OpenPGP-SDK from "src.pro" to "openpgpsdk.pro". 2012-07-13 22:19:32 +00:00

To use this branch:

   chekcout the last version of openpgp SDK:
      # svn co svn://openpgp.nominet.org.uk/openpgpsdk/tags/openpgpsdk-0.9 openpgpsdk
      # cd openpgpsdk
      # ./configure --without-idea
      # make

   For the moment, the compilation is not workign on ubuntu 

Work to do
==========
Put a 'x' when done. 1,2,3 means started/ongoing/almost finished.

Compilation
  00   [1] make sure the library compiles on linux
  01   [ ] make sure the library compiles on windows

Project
  02   [1] determine what's missing in OpenPGP-SDK
  03   [3] make a separate layer in RS to handle PGP. AuthPGP is too close to libretroshare.
  04   [1] write the new AuthGPG class
  05   [ ] consider removing thread behaviour of AuthGPG
  06   [ ] remove callback system and services from AuthGPG, since it's not useful anymore
  07   [ ] make all RS use GPGIdType isntead of std::string.

Notes
=====
   Questions to answer:
     - do we rely on updates from openPGP-sdk ? Probably not. This code seems frozen.
     - do we need an abstract layer for PGP handling in RS ?
     - what new functionalities do we need in RS ?
          * pgp keyring sharing/import/export
          * identity import/export

   Code struture
     - replace current AuthGPG (virtual class) by a class named GPGHandler,
        that is responsible for signing, checking signatures, encrypting etc.
     - add a specific 8-bytes type for GPG Ids. Could be a uint64_t, or a
        uchar[8]