Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecryptionFailedError error = &SteamAppTicketError{Message: "Failed to decrypt ticket"}
View Source
var InvalidSignatureError error = &SteamAppTicketError{Message: "Missing or Invalid Signature"}
View Source
var InvalidTicketError error = &SteamAppTicketError{Message: "Invalid ticket"}
View Source
var SteamPublicKey, _ = pem.Decode([]byte(
`-----BEGIN PUBLIC KEY-----
MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQDf7BrWLBBmLBc1OhSwfFkRf53T
2Ct64+AVzRkeRuh7h3SiGEYxqQMUeYKO6UWiSRKpI2hzic9pobFhRr3Bvr/WARvY
gdTckPv+T1JzZsuVcNfFjrocejN1oWI0Rrtgt4Bo+hOneoo3S57G9F1fOpn5nsQ6
6WOiu4gZKODnFMBCiQIBEQ==
-----END PUBLIC KEY-----`))
Functions ¶
This section is empty.
Types ¶
type AppOwnershipTicket ¶
type AppOwnershipTicket struct {
Version uint32 `json:"version"`
SteamID SteamID `json:"steamID"`
AppID uint32 `json:"appID"`
OwnershipTicketExternalIP net.IP `json:"ownershipTicketExternalIP"`
OwnershipTicketInternalIP net.IP `json:"ownershipTicketInternalIP"`
OwnershipFlags uint32 `json:"ownershipFlags"`
OwnershipTicketGenerated time.Time `json:"ownershipTicketGenerated"`
OwnershipTicketExpires time.Time `json:"ownershipTicketExpires"`
Licenses []uint32 `json:"licenses"`
DLC []DLCInfo `json:"dlc"`
Signature []byte `json:"signature,omitempty"`
IsExpired bool `json:"isExpired"`
HasValidSignature bool `json:"hasValidSignature"`
IsValid bool `json:"isValid"`
}
AppOwnershipTicket contains ownership information for a Steam application
type AppTicket ¶
type AppTicket struct {
AppOwnershipTicket
AuthTicket []byte `json:"authTicket"`
GCToken string `json:"gcToken"`
TokenGenerated time.Time `json:"tokenGenerated"`
SessionExternalIP net.IP `json:"sessionExternalIP"`
ClientConnectionTime uint32 `json:"clientConnectionTime"`
ClientConnectionCount uint32 `json:"clientConnectionCount"`
}
AppTicket extends AppOwnershipTicket with authentication information
type DecodedEncryptedAppTicket ¶
type DecodedEncryptedAppTicket struct {
Version uint32 `json:"version"`
SteamID SteamID `json:"steamID"`
AppID uint32 `json:"appID"`
OwnershipTicketExternalIP string `json:"ownershipTicketExternalIP"`
OwnershipTicketInternalIP string `json:"ownershipTicketInternalIP"`
OwnershipFlags uint32 `json:"ownershipFlags"`
OwnershipTicketGenerated time.Time `json:"ownershipTicketGenerated"`
Licenses []uint32 `json:"licenses"`
DLC []DLCInfo `json:"dlc"`
UserData []byte `json:"userData"`
Unknown2 uint64 `json:"unknown2"`
Unknown3 uint64 `json:"unknown3"`
Unknown4 uint32 `json:"unknown4"`
}
DecodedEncryptedAppTicket represents a decoded encrypted application ticket
func ParseEncryptedAppTicket ¶
func ParseEncryptedAppTicket(ticket []byte, key []byte) (*DecodedEncryptedAppTicket, error)
*
*
* @param {[]byte} ticket - The raw encrypted ticket
* @param {[]byte|string} encryptionKey - The raw encryption key
* @returns {SteamAppTicket}
type SteamAppTicketError ¶
type SteamAppTicketError struct {
Message string
}
func (*SteamAppTicketError) Error ¶
func (e *SteamAppTicketError) Error() string
Click to show internal directories.
Click to hide internal directories.