fix: Send AUTH to sub-master but generate wrong password
This commit is contained in:
@@ -585,6 +585,7 @@ std::string signPasswordV2(const std::string& deviceId, const std::string& passw
|
||||
// 签名
|
||||
BYTE signature[V2_SIGNATURE_SIZE];
|
||||
if (!SignMessageV2(privateKeyFile, (const BYTE*)payload.c_str(), (int)payload.length(), signature)) {
|
||||
Mprintf("signPasswordV2: SignMessageV2 failed: %s\n", payload.c_str());
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -640,7 +641,7 @@ std::string signAuthorizationV2(const std::string& license, const std::string& s
|
||||
|
||||
BYTE signature[V2_SIGNATURE_SIZE];
|
||||
if (!SignMessageV2(privateKeyFile, (const BYTE*)payload.c_str(), (int)payload.length(), signature)) {
|
||||
Mprintf("signAuthorizationV2: SignMessageV2 failed\n");
|
||||
Mprintf("signAuthorizationV2: SignMessageV2 failed: %s\n", license.c_str());
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user