forked from zhlynn/zsign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signing.h
23 lines (22 loc) · 1.15 KB
/
signing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "openssl.h"
bool ParseCodeSignature(uint8_t *pCSBase);
uint32_t GetCodeSignatureLength(uint8_t *pCSBase);
bool GetCodeSignatureCodeSlotsData(uint8_t *pCSBase, uint8_t *&pCodeSlots1, uint32_t &uCodeSlots1Length, uint8_t *&pCodeSlots256, uint32_t &uCodeSlots256Length);
bool SlotBuildRequirements(const string &strBundleID, const string &strSubjectCN, string &strOutput);
bool SlotBuildEntitlements(const string &strEntitlements, string &strOutput);
bool SlotBuildCodeDirectory(
bool bAlternate,
uint8_t *pCodeBase,
uint32_t uCodeLength,
uint8_t *pCodeSlotsData,
uint32_t uCodeSlotsDataLength,
const string &strBundleId,
const string &strTeamId,
const string &strInfoPlistSHA,
const string &strRequirementsSlotSHA,
const string &strCodeResourcesSHA,
const string &strEntitlementsSlotSHA,
string &strOutput);
bool SlotBuildCMSSignature(ZSignAsset *pSignAsset, const string &strCodeDirectorySlot, const string &strAltnateCodeDirectorySlot, string &strOutput);
bool GetCodeSignatureExistsCodeSlotsData(uint8_t *pCSBase, uint8_t *&pCodeSlots1Data, uint32_t &uCodeSlots1DataLength, uint8_t *&pCodeSlots256Data, uint32_t &uCodeSlots256DataLength);