ED2KPacket::SecIdentState Class Reference

Initiate Secure Identification with remote client; requests the remote client to send us signature (and if needed) also publickey. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::SecIdentState:

ED2KPacket::Packet List of all members.

Public Member Functions

 SecIdentState (::SecIdentState s)
 SecIdentState (std::istream &i)
 operator std::string ()
uint8_t getState () const
uint32_t getChallenge () const

Private Attributes

uint8_t m_state
 One of SecIdentState enum values.
uint32_t m_challenge
 Random 32bit challenge.

Detailed Description

Initiate Secure Identification with remote client; requests the remote client to send us signature (and if needed) also publickey.

Later, when we already have the client's pubkey, we can only request the signature.

Definition at line 948 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::SecIdentState::SecIdentState ::SecIdentState  s  ) 
 

Definition at line 1218 of file packets.cpp.

References ED2KPacket::getRandom, m_challenge, and PR_EMULE.

ED2KPacket::SecIdentState::SecIdentState std::istream &  i  ) 
 

Definition at line 1222 of file packets.cpp.

References m_challenge, and m_state.


Member Function Documentation

ED2KPacket::SecIdentState::operator std::string  ) 
 

Definition at line 1226 of file packets.cpp.

References m_challenge, m_state, ED2KPacket::Packet::makePacket(), and OP_SECIDENTSTATE.

uint8_t ED2KPacket::SecIdentState::getState  )  const [inline]
 

Definition at line 954 of file packets.h.

References m_state.

uint32_t ED2KPacket::SecIdentState::getChallenge  )  const [inline]
 

Definition at line 955 of file packets.h.

References m_challenge.

Referenced by Client::verifyIdent().


Member Data Documentation

uint8_t ED2KPacket::SecIdentState::m_state [private]
 

One of SecIdentState enum values.

Definition at line 957 of file packets.h.

Referenced by getState(), operator std::string(), and SecIdentState().

uint32_t ED2KPacket::SecIdentState::m_challenge [private]
 

Random 32bit challenge.

Definition at line 958 of file packets.h.

Referenced by getChallenge(), operator std::string(), and SecIdentState().


The documentation for this class was generated from the following files: