-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathresignCore.h
More file actions
35 lines (32 loc) · 954 Bytes
/
resignCore.h
File metadata and controls
35 lines (32 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _RESIGNCORE_H_
#define _RESIGNCORE_H_
enum ErrorCode{
ERRORNULL, //无错误
NOIDENTITY, //暂无可用证书
IDENTITYNULL, //无效证书
ERRORDIR, //无权限
ERRORCP, //拷贝文件失败
ERRORRENAME, //重命名失败
ERRORCREATE, //创建文件失败
ERRORRESIGN, //重签名失败
ERRORRCLEAN, //清空缓存失败
};
typedef struct resignError
{
enum ErrorCode errorCode;
char *errorMsg;
}ERROR;
void showAllIdentity();
ERROR * findIdentity(char *identity);
ERROR * startResigned(char * ipa,char *identity,char * embedded,char *output);
char * appendPayloadCmd(char * ipa);
char * getPayloadAppPath();
int copyFile(char * file1 , char * dir);
int createPlist(char *empath,char * plistpath);
int resignFile(char * identity,char * appPath);
char * signCmd(char * appPath);
int resignApp(char * identity,char * plistPath,char * appPath);
void resignHelp();
int package(char * ipa,char * output);
int rmTempAppPath();
#endif