Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CodeSignature ¶
type CodeSignature struct { CodeDirectories []types.CodeDirectory `json:"code_directories,omitempty"` Requirements []types.Requirement `json:"requirements,omitempty"` CMSSignature []byte `json:"cms_signature,omitempty"` Entitlements string `json:"entitlements,omitempty"` EntitlementsDER []byte `json:"entitlements_der,omitempty"` LaunchConstraintsSelf []byte `json:"launch_constraints_self,omitempty"` LaunchConstraintsParent []byte `json:"launch_constraints_parent,omitempty"` LaunchConstraintsResponsible []byte `json:"launch_constraints_responsible,omitempty"` LibraryConstraints []byte `json:"library_constraints,omitempty"` Errors []error `json:"errors,omitempty"` }
CodeSignature object
func ParseCodeSignature ¶
func ParseCodeSignature(cmddat []byte) (*CodeSignature, error)
ParseCodeSignature parses the LC_CODE_SIGNATURE data
func (*CodeSignature) MarshalJSON ¶
func (cs *CodeSignature) MarshalJSON() ([]byte, error)
MarshalJSON custom JSON marshaller for CodeSignature
type Config ¶
type Config struct { ID string TeamID string IsMain bool Flags types.CDFlag CodeSize uint64 TextOffset uint64 TextSize uint64 NSpecialSlots uint32 SpecialSlots []types.SpecialSlot InfoPlist []byte Entitlements []byte EntitlementsDER []byte ResourceDirSlotHash []byte SlotHashes slotHashes CertChain []*x509.Certificate SignerFunction func([]byte) ([]byte, error) }
func (*Config) InitSlotHashes ¶
func (c *Config) InitSlotHashes()
Click to show internal directories.
Click to hide internal directories.