| | |
| | | lime::PeerDeviceStatus get_peerDeviceStatus(const std::string &peerDeviceId); |
| | | |
| | | /** |
| | | * @brief checks if a device iD exists in the local users |
| | | * |
| | | * @param[in] deviceId The device Id to check |
| | | * |
| | | * @return true if the device Id exists in the local users table, false otherwise |
| | | */ |
| | | bool is_localUser(const std::string &deviceId); |
| | | |
| | | /** |
| | | * @brief delete a peerDevice from local storage |
| | | * |
| | | * @param[in] peerDeviceId The device Id to be removed from local storage, shall be its GRUU |
| | |
| | | void delete_peerDevice(const std::string &peerDeviceId); |
| | | |
| | | /** |
| | | * @brief Stale all sessions between localDeviceId and peerDevice. |
| | | * If peerDevice keep using this session to encrypt and we decrypt with success, the session will be reactivated |
| | | * but to encrypt a message to this peerDevice, a new session will be created. |
| | | * If no session is active between the given device, this call has no effect |
| | | * |
| | | * @param[in] localDeviceId Identify the local user account, it must be unique and is also be used as Id on the X3DH key server, it shall be the GRUU |
| | | * @param[in] peerDeviceId The device Id of peer, shall be its GRUU |
| | | */ |
| | | void stale_sessions(const std::string &localDeviceId, const std::string &peerDeviceId); |
| | | |
| | | /** |
| | | * @brief Set the X3DH key server URL for this identified user |
| | | * |
| | | * @param[in] localDeviceId Identify the local user account, it must be unique and is also be used as Id on the X3DH key server, it shall be the GRUU |