MCPcopy Create free account
hub / github.com/Binject/universal / CodeSigCmd

Struct CodeSigCmd

codesign_darwin.go:161–166  ·  view source on GitHub ↗

CodeSigCmd is Mach-O LC_CODE_SIGNATURE load command.

Source from the content-addressed store, hash-verified

159
160// CodeSigCmd is Mach-O LC_CODE_SIGNATURE load command.
161type CodeSigCmd struct {
162 Cmd uint32 // LC_CODE_SIGNATURE
163 Cmdsize uint32 // sizeof this command (16)
164 Dataoff uint32 // file offset of data in __LINKEDIT segment
165 Datasize uint32 // file size of data in __LINKEDIT segment
166}
167
168func FindCodeSigCmd(f *macho.File) (CodeSigCmd, bool) {
169 get32 := f.ByteOrder.Uint32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected