Skip to content

Commit

Permalink
chore: go generate codesign flag strings
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 9, 2020
1 parent 1acbc5a commit 44356a7
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 1 deletion.
4 changes: 4 additions & 0 deletions types/codesign.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package types

//go:generate stringer -type=CsCodeDirectoryFlag,CDVersion,ExecSegFlag -output codesign_string.go

type CsMagic uint32

const (
Expand All @@ -22,7 +24,9 @@ var csMagicStrings = []intName{
{uint32(CSMAGIC_CODEDIRECTORY), "Codedirectory"},
{uint32(CSMAGIC_EMBEDDED_SIGNATURE), "Embedded Signature"},
{uint32(CSMAGIC_EMBEDDED_SIGNATURE_OLD), "Embedded Signature (Old)"},
{uint32(CSMAGIC_LIBRARY_DEPENDENCY_BLOB), "Library Dependency Blob"},
{uint32(CSMAGIC_EMBEDDED_ENTITLEMENTS), "Embedded Entitlements"},
{uint32(CSMAGIC_EMBEDDED_ENTITLEMENTS_DER), "Embedded Entitlements (DER)"},
{uint32(CSMAGIC_DETACHED_SIGNATURE), "Detached Signature"},
{uint32(CSMAGIC_BLOBWRAPPER), "Blob Wrapper"},
}
Expand Down
163 changes: 163 additions & 0 deletions types/codesign_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion types/commands_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44356a7

Please sign in to comment.