mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 10:58:43 -04:00
Acknoweldge mail reception via presigned receipt
This method does protect recipient metadata but doesn't support multicasting so if a mail has N recipients N copies of the mail need to be sent to the group RsGenExchange made some members protected instead of private so child classes can use them Create Rs{G,N}xsMailPresignedReceipt items to prepare and dispatch receipts Move RsNxsMsg deserialization to RsNxsMsg::deserialize(...) method
This commit is contained in:
parent
9cde0fd996
commit
55ff9067cf
7 changed files with 281 additions and 180 deletions
|
@ -718,18 +718,19 @@ private:
|
|||
*/
|
||||
uint8_t createGroup(RsNxsGrp* grp, RsTlvSecurityKeySet& keySet);
|
||||
|
||||
protected:
|
||||
/*!
|
||||
* This completes the creation of an instance on RsNxsMsg
|
||||
* by assigning it a groupId and signature via SHA1 and EVP_sign respectively
|
||||
* What signatures are calculated are based on the authentication policy
|
||||
* of the service
|
||||
* @param msg the Nxs message to create
|
||||
* CREATE_FAIL, CREATE_SUCCESS, CREATE_ID_SIGN_NOT_AVAIL
|
||||
* @return CREATE_SUCCESS for success, CREATE_FAIL for fail,
|
||||
* CREATE_FAIL_TRY_LATER for Id sign key not avail (but requested)
|
||||
*/
|
||||
int createMessage(RsNxsMsg* msg);
|
||||
|
||||
private:
|
||||
/*!
|
||||
* convenience function to create sign
|
||||
* @param signSet signatures are stored here
|
||||
|
@ -876,8 +877,7 @@ private:
|
|||
time_t mLastCheck;
|
||||
RsGxsIntegrityCheck* mIntegrityCheck;
|
||||
|
||||
private:
|
||||
|
||||
protected:
|
||||
// TODO: cleanup this should be an enum!
|
||||
const uint8_t CREATE_FAIL, CREATE_SUCCESS, CREATE_FAIL_TRY_LATER, SIGN_MAX_WAITING_TIME;
|
||||
const uint8_t SIGN_FAIL, SIGN_SUCCESS, SIGN_FAIL_TRY_LATER;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue