Commit Graph

5532 Commits

Author SHA1 Message Date
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
chrisparker126
c17460d1b1 Got message retrieval working for genexchange across gxs chain
- fixed segv bugs for message retrieval and improved data service meta data retrieval 
- fixed compile for windows (exposed too many of rs internals in interface!)
- fixed msg signing functionality and id creation with ssl
- still need to complete photoservice gui and local meta change function

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5443 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-19 22:15:37 +00:00
csoler
e34ca140ba debian compatibility fixing for patched-up upnp 1.6.17
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5442 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-19 19:32:05 +00:00
csoler
531966f3c9 added missing include
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5441 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-19 18:41:09 +00:00
drbob
20d7837806 Modified UPNP_VERSION comparison from 10617 to 10800, as it appears the functionality was only added then.
I'm sure I'll be told if this wrong - as I can't test this ;)



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5440 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-18 19:34:14 +00:00
chrisparker126
5425ab36b5 laptop power supply dead, commiting,
added tokens to submissions, got it working
added generic service string to meta
added msg and grp creation
 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5439 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-18 10:01:35 +00:00
csoler
9f7d54f91d fixed showup of self signatures in certificates that are not in the keyring already
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5438 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-17 19:05:22 +00:00
thunder2
8b7f71b284 Fixed compile on Windows.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5437 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-17 16:37:07 +00:00
csoler
34ffb229e4 fixed compilation with libssh4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5436 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-17 14:22:53 +00:00
defnax
c5ad4ba206 improved request page design
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5435 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-17 13:45:05 +00:00
csoler
c3db4dacf7 added code to avoid corruption of bdboot.txt: first write to tmp file then move the file. Refers on Windows utf16ToUtf8 from libretroshare. This forward reference can be improved.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5434 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-16 16:59:51 +00:00
csoler
2c4a1bf6e4 compatibility with libssh4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5433 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-16 15:24:16 +00:00
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
defnax
aedac9738a update installer translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5431 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-16 07:27:07 +00:00
csoler
8a8f85e26b fixed a few issues in RsCertificate class
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5430 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 20:13:19 +00:00
csoler
2b20ab7fca fixed crashes with poping ConfCertDialog with incomplete certificate
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5429 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 20:08:18 +00:00
csoler
a9d19528a0 fixed uninitialized memory read
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5428 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 19:03:14 +00:00
csoler
5b73e36add fixed compilation with libupnp >= 1.6.17
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5427 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 15:33:30 +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
defnax
f90c7742cc Enabled the Icon for the Voip Plugin
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 13:54:00 +00:00
defnax
c992cb6aea Enabled to display Plugin Version, on Plugin Item
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5424 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-15 12:33:46 +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
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
5d289b520b fixed parsing error handling in pgp key parsing
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5421 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 19:49:50 +00:00
csoler
b714d68523 fixed code for certificate link generation.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5420 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 19:31:47 +00:00
csoler
a940537331 fixed certificate paste. We need more appropriate code at this place.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5419 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 18:57:45 +00:00
defnax
73c8da5438 update translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5418 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 15:37:21 +00:00
defnax
4c1ac6084b updated Spanish translation (from Senpai)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5417 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 14:49:12 +00:00
thunder2
d1dbae80e9 Fixed compile. Renamed file "contact-new22.png" to "contact_new22.png"
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5416 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 12:08:26 +00:00
defnax
6e80f97125 set a icon for the pushbutton
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5415 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 09:34:40 +00:00
csoler
4c72eaa04e added debug #ifdef to certificate handling code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5414 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-14 07:34:29 +00:00
defnax
9d3d457630 replaced QListWidget with QTreeWidget for Display the Identities
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5413 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 22:53:55 +00:00
thunder2
f51af0d4de FeedReader plugin:
- added new classes for XML/HTML parse and modify
- added basic error handling
- added new GUI for a preview and a tree to show the structure of the page (will be continued)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5412 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 21:35:11 +00:00
csoler
878855e356 fixed include
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5411 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 19:46:02 +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
64e171948c removed deadly assert in validate.c:338
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5409 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 19:30:42 +00:00
defnax
6b76abd1cc fixed compile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5408 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 18:46:33 +00:00
defnax
1457a3b965 Added a basic Profile Manager
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5407 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-13 15:37:21 +00:00
chrisparker126
acaefada65 Got group retrieval working with gui and fixed subsequent bugs
add p3distribsecurity mirror gxssecurity (does not have grp or msg verification implemented, but other methods are valid)


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5406 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-12 20:46:21 +00:00
csoler
f7169163ae fixed bug havign forgotten version string init
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5405 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 21:16:27 +00:00
csoler
8694919ca7 added cleaning of certs in test code
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5404 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 20:58:59 +00:00
csoler
bc07b16737 - added new class for certificate handling. Has two input/output format: classical pgp armoured block (old) and
new pure radix format, which is easier to parse and much more robust.
- added test program to load/parse certificates in both formats.


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5403 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 20:43:10 +00:00
defnax
7009b46461 update translation strings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5402 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 16:11:37 +00:00
defnax
9609c96c9b Added new Chat style Bubble, generated by Victor for RetroShare
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5401 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 13:39:47 +00:00
csoler
04dd3928e2 updated ubuntu changelog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5400 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-11 12:01:31 +00:00
thunder2
148d1310a2 Added new button to open the link of the message in browser or copy the link of the message.
Added "RSS: " for the forum feeds.
Parse the feedburner:origLink in the rss feed.
Moved download functions to a new class CURLWrapper for easy use.
Added two new functions (currently only for local feeds for testing):
- embed images into the message (works for Qt 4.7 and higher)
- save complete web page

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5399 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-10 18:06:29 +00:00
drbob
8f2ff3eaf5 Changes to bring the SSH Menu system online!
* Commandline Options added (./retroshare-nogui -h for help).
 * Added Password Hash system.
 * Shifted Menu output to std::string buffers.
 * Built interface to SSH server.
 * changed menus to lowercase.
 * Fixed SSH server restart issue.
 * Updates Output regularly now.
	


git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5398 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-09 13:45:05 +00:00
defnax
e0403eceb0 update nsis script
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5397 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-08 22:09:16 +00:00
defnax
d9dec7bdbd Added a vertical spacer, to not stretch the content of the groupbox.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5396 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-08-08 15:10:53 +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