2012-01-11 18:01:29 -05:00
|
|
|
#ifndef RSGXS_H
|
|
|
|
#define RSGXS_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* libretroshare/src/gxs : rsgxs.h
|
|
|
|
*
|
|
|
|
* GXS interface for RetroShare.
|
2012-01-18 18:20:53 -05:00
|
|
|
* Convenience header
|
2012-01-11 18:01:29 -05:00
|
|
|
*
|
|
|
|
* Copyright 2011 Christopher Evi-Parker
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License Version 2 as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
* USA.
|
|
|
|
*
|
|
|
|
* Please report all bugs and problems to "retroshare@lunamutt.com".
|
|
|
|
*
|
|
|
|
* This is *THE* auth manager. It provides the web-of-trust via
|
|
|
|
* gpgme, and authenticates the certificates that are managed
|
|
|
|
* by the sublayer AuthSSL.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2012-01-18 18:20:53 -05:00
|
|
|
#include <string>
|
|
|
|
#include <inttypes.h>
|
2012-01-11 18:01:29 -05:00
|
|
|
|
|
|
|
/*!
|
2012-01-18 18:20:53 -05:00
|
|
|
* This is universal format for messages that is transported throughout
|
|
|
|
* the general exchange service chain. From concrete service to
|
2012-01-11 18:01:29 -05:00
|
|
|
*/
|
2012-01-18 18:20:53 -05:00
|
|
|
class RsGxsSignedMessage {
|
2012-01-15 08:07:31 -05:00
|
|
|
|
2012-01-18 18:20:53 -05:00
|
|
|
uint32_t timestamp;
|
|
|
|
void* signature;
|
|
|
|
void* data;
|
|
|
|
uint32_t msg_flags; /* encrypted */
|
|
|
|
std::string msgId; /* hash of all message data */
|
|
|
|
std::string grpId;
|
2012-01-15 08:07:31 -05:00
|
|
|
|
2012-01-11 18:01:29 -05:00
|
|
|
};
|
|
|
|
|
2012-01-18 18:20:53 -05:00
|
|
|
|
2012-01-11 18:01:29 -05:00
|
|
|
#endif // RSGXS_H
|