structure holding user data while waiting for callback from X3DH server response processing
More...
|
| callbackUserData (std::weak_ptr< Lime< Curve >> thiz, const limeCallback &callbackRef, uint16_t OPkInitialBatchSize=lime::settings::OPk_initialBatchSize) |
| created at user create/delete and keys Post. EncryptionPolicy is not used, set it to the default value anyway More...
|
|
| callbackUserData (std::weak_ptr< Lime< Curve >> thiz, const limeCallback &callbackRef, uint16_t OPkServerLowLimit, uint16_t OPkBatchSize) |
| created at update: getSelfOPks. EncryptionPolicy is not used, set it to the default value anyway More...
|
|
| callbackUserData (std::weak_ptr< Lime< Curve >> thiz, const limeCallback &callbackRef, std::shared_ptr< const std::string > recipientUserId, std::shared_ptr< std::vector< RecipientData >> recipients, std::shared_ptr< const std::vector< uint8_t >> plainMessage, std::shared_ptr< std::vector< uint8_t >> cipherMessage, lime::EncryptionPolicy policy) |
| created at encrypt(getPeerBundle) More...
|
|
| callbackUserData (callbackUserData &a)=delete |
| do not copy callback data, force passing the pointer around after creation More...
|
|
callbackUserData | operator= (callbackUserData &a)=delete |
| do not copy callback data, force passing the pointer around after creation More...
|
|
|
std::weak_ptr< Lime< Curve > > | limeObj |
| limeObj is owned by the LimeManager, it shall no be destructed, do not own this with a shared_ptr as Lime obj may own the callbackUserData obj thus creating circular reference More...
|
|
const limeCallback | callback |
| is a lambda closure, not real idea of what is its lifetime but it seems ok to hold it this way More...
|
|
std::shared_ptr< const std::string > | recipientUserId |
| Recipient username. Needed for encryption: get a shared ref to keep params alive. More...
|
|
std::shared_ptr< std::vector< RecipientData > > | recipients |
| Recipient data vector. Needed for encryption: get a shared ref to keep params alive. More...
|
|
std::shared_ptr< const std::vector< uint8_t > > | plainMessage |
| plaintext. Needed for encryption: get a shared ref to keep params alive More...
|
|
std::shared_ptr< std::vector< uint8_t > > | cipherMessage |
| ciphertext buffer. Needed for encryption: get a shared ref to keep params alive More...
|
|
lime::EncryptionPolicy | encryptionPolicy |
| the encryption policy from the original encryption request(if running an encryption request), copy its value instead of holding a shared_ptr on it More...
|
|
uint16_t | OPkServerLowLimit |
| Used when fetching from server self OPk to check if we shall upload more. More...
|
|
uint16_t | OPkBatchSize |
| Used when fetching from server self OPk : how many will we upload if needed. More...
|
|
template<typename Curve>
struct lime::callbackUserData< Curve >
structure holding user data while waiting for callback from X3DH server response processing