Ref T730, style and log messages

This commit is contained in:
Klaus Basan
2019-10-06 00:07:23 +02:00
committed by Mat Sutcliffe
parent e30b690191
commit 401c89aa63
10 changed files with 161 additions and 87 deletions

View File

@@ -25,9 +25,9 @@ namespace BlackCore
//! DTO header
struct CryptoDtoHeaderDto
{
std::string ChannelTag;
uint64_t Sequence;
CryptoDtoMode Mode;
std::string ChannelTag; //!< channel
uint64_t Sequence; //!< sequence
CryptoDtoMode Mode; //!< mode
MSGPACK_DEFINE(ChannelTag, Sequence, Mode)
};
} // ns

View File

@@ -13,14 +13,24 @@
#include "msgpack.hpp"
//! DTO mode
enum class CryptoDtoMode
namespace BlackCore
{
Undefined = 0,
None = 1,
AEAD_ChaCha20Poly1305 = 2
};
namespace Afv
{
namespace Crypto
{
//! DTO mode
enum class CryptoDtoMode
{
Undefined = 0, //!< undefined
None = 1, //!< none
AEAD_ChaCha20Poly1305 = 2 //!< AEAD
};
MSGPACK_ADD_ENUM(CryptoDtoMode);
} // ns
} // ns
} // ns
MSGPACK_ADD_ENUM(BlackCore::Afv::Crypto::CryptoDtoMode);
#endif // guard