mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 09:54:11 +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());
|
byte[] sign = ByteUtils.fromHexString(args.get("signature").getAsString());
|
||||||
cReq.setSignature(ByteUtils.toHexString(sign));
|
cReq.setSignature(ByteUtils.toHexString(sign));
|
||||||
}
|
}
|
||||||
if (cReq.getPublicKey() != null) {
|
|
||||||
if (!cReq.verifySignature()) {
|
|
||||||
cReq.setPublicKey(null);
|
|
||||||
cReq.setRequester(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String reqID;
|
String reqID;
|
||||||
if (args.has("requestID")) {
|
if (args.has("requestID")) {
|
||||||
reqID = args.get("requestID").getAsString();
|
reqID = args.get("requestID").getAsString();
|
||||||
|
Loading…
Reference in New Issue
Block a user