dump

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMailMessage

func NewMailMessage(report *Report, issuerDomain string) *mail.Message

Types

type CertData added in v0.0.3

type CertData struct {
	PlatformLabel    string `json:"platformLabel,omitempty"`
	DiscoveryBaseURL string `json:"discoveryBaseURL,omitempty"`
}

type EUICCInfo2

type EUICCInfo2 struct {
	ProfileVersion              Version         `json:"profileVersion,omitempty"`
	SVN                         Version         `json:"svn,omitempty"`
	FirmwareVersion             Version         `json:"euiccFirmwareVer,omitempty"`
	ExtCardResource             ExtCardResource `json:"extCardResource,omitempty"`
	UICCCapability              []string        `json:"uiccCapability,omitempty"`
	TS102241Version             Version         `json:"ts102241Version,omitempty"`
	GlobalPlatformVersion       Version         `json:"globalplatformVersion,omitempty"`
	RSPCapability               []string        `json:"rspCapability,omitempty"`
	IssuerVerification          []HexString     `json:"euiccCiPKIdListForVerification,omitempty"`
	IssuerSigning               []HexString     `json:"euiccCiPKIdListForSigning,omitempty"`
	Category                    string          `json:"euiccCategory,omitempty"`
	ForbiddenProfilePolicyRules []string        `json:"forbiddenProfilePolicyRules,omitempty"`
	ProtectionProfileVersion    Version         `json:"ppVersion,omitempty"`
	SASAccreditationNumber      string          `json:"sasAccreditationNumber,omitempty"`
	CertificationDataObject     *CertData       `json:"certificationDataObject,omitempty"`
	TreProperties               []string        `json:"treProperties,omitempty"`
	TreProductReference         string          `json:"treProductReference,omitempty"`
	ProfilePackageVersions      []Version       `json:"additionalEuiccProfilePackageVersions,omitempty"`
}

func (*EUICCInfo2) UnmarshalBerTLV

func (e *EUICCInfo2) UnmarshalBerTLV(tlv *TLV) (err error)

type ExtCardResource added in v0.0.3

type ExtCardResource struct {
	InstallApps uint64 `json:"installApps,omitempty"`
	FreeNVRAM   uint64 `json:"freeNVRAM,omitempty"`
	FreeRAM     uint64 `json:"freeRAM,omitempty"`
}

type Handler

type Handler struct {
	Homepage       string
	Client         *http.Client
	Issuers        map[string][]string
	HostPattern    *regexp.Regexp
	OnAuthenClient func(*TLV) error
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type HexString

type HexString []byte

func (*HexString) MarshalJSON

func (h *HexString) MarshalJSON() (dst []byte, _ error)

func (*HexString) String

func (h *HexString) String() string

func (*HexString) UnmarshalJSON

func (h *HexString) UnmarshalJSON(data []byte) (err error)

type Report

type Report struct {
	MatchingID       string
	ServerAddress    string
	EUICCInfo2       EUICCInfo2
	EUICCCertificate *TLV
	EUMCertificate   *TLV
}

func (*Report) UnmarshalBerTLV

func (r *Report) UnmarshalBerTLV(response *TLV) (err error)

type Version

type Version [3]byte

func (Version) MarshalJSON

func (v Version) MarshalJSON() ([]byte, error)

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL