Add dynamic signature support

This commit is contained in:
ShirkNeko
2025-07-05 15:56:19 +08:00
parent e5f58caf11
commit f5c236c925
6 changed files with 350 additions and 4 deletions

View File

@@ -29,6 +29,7 @@
#define CMD_ENABLE_KPM 100
#define CMD_HOOK_TYPE 101
#define CMD_GET_SUSFS_FEATURE_STATUS 102
#define CMD_DYNAMIC_SIGN 103
#define EVENT_POST_FS_DATA 1
#define EVENT_BOOT_COMPLETED 2
@@ -46,6 +47,16 @@
#endif
#define KSU_FULL_VERSION_STRING 255
#define DYNAMIC_SIGN_OP_SET 0
#define DYNAMIC_SIGN_OP_GET 1
#define DYNAMIC_SIGN_OP_CLEAR 2
struct dynamic_sign_user_config {
unsigned int operation;
unsigned int size;
char hash[65];
};
// SUSFS Functional State Structures
struct susfs_feature_status {
bool status_sus_path;
@@ -158,4 +169,4 @@ static inline int endswith(const char *s, const char *t)
return strcmp(s + slen - tlen, t);
}
#endif
#endif