mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 01:44:14 +00:00
optimize verifykey
This commit is contained in:
parent
ca8afb8333
commit
ac77d55952
@ -187,12 +187,7 @@ public class CMActions implements OnHashCallback {
|
||||
byte[] sign = ByteUtils.fromHexString(args.get("signature").getAsString());
|
||||
cReq.setSignature(ByteUtils.toHexString(sign));
|
||||
}
|
||||
if (cReq.getPublicKey() != null) {
|
||||
if (!cReq.verifySignature()) {
|
||||
cReq.setPublicKey(null);
|
||||
cReq.setRequester(null);
|
||||
}
|
||||
}
|
||||
|
||||
String reqID;
|
||||
if (args.has("requestID")) {
|
||||
reqID = args.get("requestID").getAsString();
|
||||
|
Loading…
Reference in New Issue
Block a user