Documentation ¶
Index ¶
- func ShowJSON(path string, writer io.Writer) error
- func ShowText(path string, writer io.Writer, hideVerboseData bool) error
- type Algorithm
- type AlgorithmWithValue
- type Attribute
- type BlobDetails
- type CMSValidationDetails
- type Certificate
- type CodeDirectoryDetails
- type DescribedValue
- type Details
- type Digest
- type EntitlementDetails
- type File
- type MachoDetails
- type RequirementDetails
- type SectionDigest
- type SignatureDetails
- type Signer
- type SuperBlobDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlgorithmWithValue ¶
func (AlgorithmWithValue) String ¶
func (av AlgorithmWithValue) String() string
type BlobDetails ¶
type CMSValidationDetails ¶
type CMSValidationDetails struct { IsValid bool `json:"isValid"` ErrorMessage string `json:"errorMessage"` // Error error `json:"error"` VerifiedCertificates [][][]*x509.Certificate `json:"verifiedCertificates"` }
type Certificate ¶
type Certificate struct { PEM string `json:"pem"` Parsed *x509.Certificate `json:"parsed"` }
func (Certificate) String ¶
func (c Certificate) String() string
helpful for specific information on cert requirements https://images.apple.com/certificateauthority/pdf/Apple_Developer_ID_CPS_v3.3.pdf
type CodeDirectoryDetails ¶
type CodeDirectoryDetails struct { Blob BlobDetails `json:"blob"` SpecialDigests []SectionDigest `json:"specialDigests"` Version DescribedValue `json:"version"` PageDigests []SectionDigest `json:"pageDigests"` DeclaredDigest SectionDigest `json:"declaredDigest"` TeamID string `json:"teamID"` ID string `json:"id"` Platform uint8 `json:"platform"` Flags DescribedValue `json:"flags"` }
func (CodeDirectoryDetails) String ¶
func (c CodeDirectoryDetails) String(hideVerboseData bool) string
type DescribedValue ¶
type DescribedValue struct { Value interface{} `json:"value"` Description string `json:"description"` }
type Details ¶
type Details struct { File MachoDetails `json:"file"` // TODO: raw superblob info SuperBlob *SuperBlobDetails `json:"superBlob,omitempty"` }
func ParseDetails ¶
type EntitlementDetails ¶
type EntitlementDetails struct { Blob BlobDetails `json:"blob"` Entitlements string `json:"entitlements,omitempty"` EntitlementsDER []byte `json:"entitlements_der,omitempty"` }
func (EntitlementDetails) String ¶
func (e EntitlementDetails) String() string
type MachoDetails ¶
type MachoDetails struct { Magic string `json:"magic"` Type string `json:"type"` CPU string `json:"cpu"` SubCPU string `json:"subcpu"` Flags []string `json:"flags"` Libs []string `json:"libs"` LoadCommandCount uint32 `json:"loadCommandsCount"` LoadCommandSize uint32 `json:"loadCommandSize"` UUID string `json:"uuid"` }
func (MachoDetails) String ¶
func (m MachoDetails) String() (r string)
type RequirementDetails ¶
type RequirementDetails struct { Blob BlobDetails `json:"blob"` Requirements []types.Requirement `json:"requirements"` }
func (RequirementDetails) String ¶
func (r RequirementDetails) String() string
type SectionDigest ¶
func (SectionDigest) String ¶
func (d SectionDigest) String() string
type SignatureDetails ¶
type SignatureDetails struct { Blob BlobDetails `json:"blob"` Base64 string `json:"base64"` CMSValidation CMSValidationDetails `json:"cmsValidation"` Certificates []Certificate `json:"certificates"` Signers []Signer `json:"signers"` }
func (SignatureDetails) String ¶
func (s SignatureDetails) String() string
type Signer ¶
type Signer struct { ID string `json:"id"` Signature AlgorithmWithValue `json:"signature"` SignedAttributes []Attribute `json:"signedAttributes"` DigestAlgorithm Algorithm `json:"digestAlgorithm"` }
type SuperBlobDetails ¶
type SuperBlobDetails struct { Offset uint32 `json:"offset"` Size uint32 `json:"size"` CodeDirectories []CodeDirectoryDetails `json:"codeDirectories"` Requirements []RequirementDetails `json:"requirements"` Entitlements *EntitlementDetails `json:"entitlements"` Signatures []SignatureDetails `json:"signatures"` }
Click to show internal directories.
Click to hide internal directories.