mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
Ref T730, style and log messages
This commit is contained in:
committed by
Mat Sutcliffe
parent
e30b690191
commit
401c89aa63
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user