2012-05-21 18:07:43 -04:00
|
|
|
#ifndef RSGXSFLAGS_H
|
|
|
|
#define RSGXSFLAGS_H
|
|
|
|
|
|
|
|
#include "inttypes.h"
|
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
// this serves a single point of call for definining grp and msg modes
|
|
|
|
// GXS. These modes say
|
2012-05-21 18:07:43 -04:00
|
|
|
namespace GXS_SERV {
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
/** privacy **/
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
static const uint32_t FLAG_PRIVACY_MASK = 0x0000000f;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
|
|
|
// pub key encrypted
|
2012-10-01 16:57:56 -04:00
|
|
|
static const uint32_t FLAG_PRIVACY_PRIVATE = 0x00000001;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// publish private key needed to publish
|
|
|
|
static const uint32_t FLAG_PRIVACY_RESTRICTED = 0x00000002;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// anyone can publish, publish key pair not needed
|
|
|
|
static const uint32_t FLAG_PRIVACY_PUBLIC = 0x00000004;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
/** privacy **/
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
/** authentication **/
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
static const uint32_t FLAG_AUTHEN_MASK = 0x000000f0;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// identity
|
|
|
|
static const uint32_t FLAG_AUTHEN_IDENTITY = 0x000000010;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// publish key
|
|
|
|
static const uint32_t FLAG_AUTHEN_PUBLISH = 0x000000020;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// admin key
|
|
|
|
static const uint32_t FLAG_AUTHEN_ADMIN = 0x00000040;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
// pgp sign identity
|
|
|
|
static const uint32_t FLAG_AUTHEN_PGP_IDENTITY = 0x00000080;
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-10-01 16:57:56 -04:00
|
|
|
/** authentication **/
|
2012-05-21 18:07:43 -04:00
|
|
|
|
2012-09-04 18:32:52 -04:00
|
|
|
|
|
|
|
// Subscription Flags. (LOCAL)
|
|
|
|
|
2012-09-13 18:58:42 -04:00
|
|
|
static const uint32_t GROUP_SUBSCRIBE_ADMIN = 0x00000001;
|
2012-10-01 16:57:56 -04:00
|
|
|
|
2012-09-13 18:58:42 -04:00
|
|
|
static const uint32_t GROUP_SUBSCRIBE_PUBLISH = 0x00000002;
|
2012-10-01 16:57:56 -04:00
|
|
|
|
2012-09-13 18:58:42 -04:00
|
|
|
static const uint32_t GROUP_SUBSCRIBE_SUBSCRIBED = 0x00000004;
|
2012-10-01 16:57:56 -04:00
|
|
|
|
|
|
|
static const uint32_t GROUP_SUBSCRIBE_NOT_SUBSCRIBED = 0x00000008;
|
|
|
|
|
2012-09-13 18:58:42 -04:00
|
|
|
static const uint32_t GROUP_SUBSCRIBE_MASK = 0x0000000f;
|
2012-09-04 18:32:52 -04:00
|
|
|
|
2012-05-21 18:07:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // RSGXSFLAGS_H
|