plugin_framework, add uuid on plugin signature verification
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
5f0f4957b9
commit
7a897dcf6b
@ -80,6 +80,7 @@ pub(super) struct MsgToExtSupport {
|
|||||||
|
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
struct PluginSignReq {
|
struct PluginSignReq {
|
||||||
|
uuid: Vec<u8>,
|
||||||
peer_id: String,
|
peer_id: String,
|
||||||
plugin_id: String,
|
plugin_id: String,
|
||||||
version: String,
|
version: String,
|
||||||
@ -284,6 +285,7 @@ fn request_plugin_sign(id: String, msg_to_rustdesk: MsgToRustDesk) -> PluginRetu
|
|||||||
let sign_url = format!("{}/lic/web/api/plugin-sign", get_api_server());
|
let sign_url = format!("{}/lic/web/api/plugin-sign", get_api_server());
|
||||||
let client = reqwest::blocking::Client::new();
|
let client = reqwest::blocking::Client::new();
|
||||||
let req = PluginSignReq {
|
let req = PluginSignReq {
|
||||||
|
uuid: hbb_common::get_uuid(),
|
||||||
peer_id: crate::ui_interface::get_id(),
|
peer_id: crate::ui_interface::get_id(),
|
||||||
plugin_id: id.clone(),
|
plugin_id: id.clone(),
|
||||||
version: signature_data.version,
|
version: signature_data.version,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user