From 6a99d9bf65aa5878cb409945ed2bdbdcb916d047 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期五, 02 九月 2022 14:56:40 +0800 Subject: [PATCH] 更新linphone sdk --- HDLLinPhoneSDK(OC)/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/lime.framework/Headers/lime.hpp | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/lime.framework/Headers/lime.hpp" "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/lime.framework/Headers/lime.hpp" index 53836cb..6ab9512 100755 --- "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/lime.framework/Headers/lime.hpp" +++ "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/lime.framework/Headers/lime.hpp" @@ -332,6 +332,15 @@ 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 @@ -341,6 +350,17 @@ 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 -- Gitblit v1.8.0