dump

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 22 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 EUICCInfo2

type EUICCInfo2 struct {
	ProfileVersion              Version     `json:"profile_version,omitempty"`
	SVN                         Version     `json:"sgp22_version_supported,omitempty"`
	FirmwareVersion             Version     `json:"euicc_firmware_version,omitempty"`
	FreeNVRAM                   uint32      `json:"free_nvram,omitempty"`
	UICCCapability              []string    `json:"uicc_capability,omitempty"`
	TS102241Version             Version     `json:"ts102241_version,omitempty"`
	GlobalPlatformVersion       Version     `json:"gp_version,omitempty"`
	RSPCapability               []string    `json:"rsp_capability,omitempty"`
	IssuerVerification          []HexString `json:"issuer_for_verification,omitempty"`
	IssuerSigning               []HexString `json:"issuer_for_signing,omitempty"`
	Category                    string      `json:"category,omitempty"`
	ForbiddenProfilePolicyRules []string    `json:"forbidden_profile_policy_rules,omitempty"`
	SASAccreditationNumber      string      `json:"sas_accreditation_number,omitempty"`
}

func (*EUICCInfo2) UnmarshalBerTLV

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

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