CatapultServer  v0.5.0.1 (Elephant)
VerifyPeer.h File Reference
Include dependency graph for VerifyPeer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  catapult::net::VerifiedPeerInfo
 Information about the verified node. More...
 

Namespaces

 catapult
 
 catapult::crypto
 
 catapult::ionet
 
 catapult::net
 

Macros

#define VERIFY_RESULT_LIST
 
#define ENUM_VALUE(LABEL)   LABEL,
 

Typedefs

using catapult::net::VerifyCallback = consumer< VerifyResult, const VerifiedPeerInfo & >
 Callback that is called with the result of a verify operation and verified peer information on success. More...
 

Enumerations

enum  catapult::net::VerifyResult { catapult::net::VerifyResult::VERIFY_RESULT_LIST }
 Enumeration of verification results. More...
 

Functions

std::ostream & catapult::net::operator<< (std::ostream &out, VerifyResult value)
 Insertion operator for outputting value to out. More...
 
void catapult::net::VerifyClient (const std::shared_ptr< ionet::PacketIo > &pClientIo, const crypto::KeyPair &keyPair, ionet::ConnectionSecurityMode allowedSecurityModes, const VerifyCallback &callback)
 
void catapult::net::VerifyServer (const std::shared_ptr< ionet::PacketIo > &pServerIo, const VerifiedPeerInfo &serverPeerInfo, const crypto::KeyPair &keyPair, const VerifyCallback &callback)
 

Macro Definition Documentation

◆ ENUM_VALUE

#define ENUM_VALUE (   LABEL)    LABEL,

◆ VERIFY_RESULT_LIST

#define VERIFY_RESULT_LIST
Value:
/* An i/o error occurred while processing a server challenge request. */ \
ENUM_VALUE(Io_Error_ServerChallengeRequest) \
\
/* An i/o error occurred while processing a server challenge response. */ \
ENUM_VALUE(Io_Error_ServerChallengeResponse) \
\
/* An i/o error occurred while processing a client challenge response. */ \
ENUM_VALUE(Io_Error_ClientChallengeResponse) \
\
/* Peer sent malformed data. */ \
ENUM_VALUE(Malformed_Data) \
\
/* Peer failed the challenge. */ \
ENUM_VALUE(Failure_Challenge) \
\
/* Peer requested an unsupported connection (e.g. unsupported security mode). */ \
ENUM_VALUE(Failure_Unsupported_Connection) \
\
/* Peer passed the challenge. */ \
ENUM_VALUE(Success)