Skip to content

Commit

Permalink
Place SCEP keys inside PayloadContent
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Dec 15, 2020
1 parent 598005e commit 052b494
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions payloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ func (p *Profile) CertificatePKCS1Payloads() (plds []*CertificatePKCS1Payload) {
return
}

// SCEPPayload represents the "com.apple.security.scep" PayloadType.
// See https://developer.apple.com/documentation/devicemanagement/scep
type SCEPPayload struct {
Payload
// SCEPPayloadContent represents the PayloadContent of the SCEPPayload
// See https://developer.apple.com/documentation/devicemanagement/scep/payloadcontent
type SCEPPayloadContent struct {
URL string
Name string `plist:",omitempty"`
Subject [][][]string `plist:",omitempty"`
Expand All @@ -126,6 +125,13 @@ type SCEPPayload struct {
// TODO: SubjectAltName *SubjectAltName `plist:",omitempty"`
}

// SCEPPayload represents the "com.apple.security.scep" PayloadType.
// See https://developer.apple.com/documentation/devicemanagement/scep
type SCEPPayload struct {
Payload
PayloadContent SCEPPayloadContent
}

// NewSCEPPayload creates a new payload with identifier i
func NewSCEPPayload(i string) *SCEPPayload {
return &SCEPPayload{
Expand Down

0 comments on commit 052b494

Please sign in to comment.