mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix typos reported by Jums
This commit is contained in:
parent
da459c884e
commit
5c434fb107
@ -248,7 +248,8 @@ void p3GxsTrans::service_tick()
|
|||||||
{
|
{
|
||||||
case GxsTransItemsSubtypes::GXS_TRANS_SUBTYPE_MAIL:
|
case GxsTransItemsSubtypes::GXS_TRANS_SUBTYPE_MAIL:
|
||||||
{
|
{
|
||||||
RsGxsTransMailItem* msg = dynamic_cast<RsGxsTransMailItem*>(it->second);
|
RsGxsTransMailItem* msg =
|
||||||
|
dynamic_cast<RsGxsTransMailItem*>(it->second);
|
||||||
if(!msg)
|
if(!msg)
|
||||||
{
|
{
|
||||||
std::cerr << "p3GxsTrans::service_tick() (EE) "
|
std::cerr << "p3GxsTrans::service_tick() (EE) "
|
||||||
@ -267,7 +268,7 @@ void p3GxsTrans::service_tick()
|
|||||||
<< " mailId: "<< msg->mailId
|
<< " mailId: "<< msg->mailId
|
||||||
<< " payload.size(): " << msg->payload.size()
|
<< " payload.size(): " << msg->payload.size()
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
handleEcryptedMail(msg);
|
handleEncryptedMail(msg);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -398,7 +399,7 @@ bool p3GxsTrans::requestGroupsData(const std::list<RsGxsGroupId>* groupIds)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool p3GxsTrans::handleEcryptedMail(const RsGxsTransMailItem* mail)
|
bool p3GxsTrans::handleEncryptedMail(const RsGxsTransMailItem* mail)
|
||||||
{
|
{
|
||||||
std::cout << "p3GxsTrans::handleEcryptedMail(...)" << std::endl;
|
std::cout << "p3GxsTrans::handleEcryptedMail(...)" << std::endl;
|
||||||
|
|
||||||
@ -411,7 +412,8 @@ bool p3GxsTrans::handleEcryptedMail(const RsGxsTransMailItem* mail)
|
|||||||
// Hint match none of our own ids
|
// Hint match none of our own ids
|
||||||
if(decryptIds.empty())
|
if(decryptIds.empty())
|
||||||
{
|
{
|
||||||
std::cout << "p3GxsTrans::handleEcryptedMail(...) hint doesn't match" << std::endl;
|
std::cout << "p3GxsTrans::handleEcryptedMail(...) hint doesn't match"
|
||||||
|
<< std::endl;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
/// Decrypt email content and pass it to dispatchDecryptedMail(...)
|
/// Decrypt email content and pass it to dispatchDecryptedMail(...)
|
||||||
bool handleEcryptedMail(const RsGxsTransMailItem* mail);
|
bool handleEncryptedMail(const RsGxsTransMailItem* mail);
|
||||||
|
|
||||||
/// Dispatch the message to the recipient service
|
/// Dispatch the message to the recipient service
|
||||||
bool dispatchDecryptedMail( const RsGxsId& authorId,
|
bool dispatchDecryptedMail( const RsGxsId& authorId,
|
||||||
|
@ -129,7 +129,7 @@ OutgoingRecord::OutgoingRecord() :
|
|||||||
static_cast<uint8_t>(GxsTransItemsSubtypes::OUTGOING_RECORD_ITEM) )
|
static_cast<uint8_t>(GxsTransItemsSubtypes::OUTGOING_RECORD_ITEM) )
|
||||||
{ clear();}
|
{ clear();}
|
||||||
|
|
||||||
uint32_t OutgoingRecord::size() const
|
uint32_t OutgoingRecord::serial_size() const
|
||||||
{
|
{
|
||||||
return 8 + // Header
|
return 8 + // Header
|
||||||
1 + // status
|
1 + // status
|
||||||
|
@ -120,7 +120,7 @@ struct RsGxsTransMailItem : RsGxsTransBaseItem
|
|||||||
*
|
*
|
||||||
* To check if one id may be the recipient of the mail or not one need to
|
* To check if one id may be the recipient of the mail or not one need to
|
||||||
* bitwise compare the hint with the id, if at least one bit of the hint is
|
* bitwise compare the hint with the id, if at least one bit of the hint is
|
||||||
* 0 while the corrisponding bit in the id is 1 then the id cannot be the
|
* 0 while the corresponding bit in the id is 1 then the id cannot be the
|
||||||
* recipient of the mail.
|
* recipient of the mail.
|
||||||
*
|
*
|
||||||
* Note that by design one can prove that an id is not recipient of the mail
|
* Note that by design one can prove that an id is not recipient of the mail
|
||||||
@ -253,7 +253,7 @@ struct OutgoingRecord : RsItem
|
|||||||
GxsTransSubServices clientService;
|
GxsTransSubServices clientService;
|
||||||
RsNxsTransPresignedReceipt presignedReceipt;
|
RsNxsTransPresignedReceipt presignedReceipt;
|
||||||
|
|
||||||
uint32_t size() const;
|
uint32_t serial_size() const;
|
||||||
bool serialize(uint8_t* data, uint32_t size, uint32_t& offset) const;
|
bool serialize(uint8_t* data, uint32_t size, uint32_t& offset) const;
|
||||||
bool deserialize(const uint8_t* data, uint32_t& size, uint32_t& offset);
|
bool deserialize(const uint8_t* data, uint32_t& size, uint32_t& offset);
|
||||||
|
|
||||||
@ -289,7 +289,7 @@ struct RsGxsTransSerializer : RsSerialType
|
|||||||
case GxsTransItemsSubtypes::OUTGOING_RECORD_ITEM:
|
case GxsTransItemsSubtypes::OUTGOING_RECORD_ITEM:
|
||||||
{
|
{
|
||||||
OutgoingRecord* ci = dynamic_cast<OutgoingRecord*>(item);
|
OutgoingRecord* ci = dynamic_cast<OutgoingRecord*>(item);
|
||||||
if(ci) sz = ci->size();
|
if(ci) sz = ci->serial_size();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: break;
|
default: break;
|
||||||
|
Loading…
Reference in New Issue
Block a user