auth

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NewResponse = vsn.V4_0_1

Variables

This section is empty.

Functions

This section is empty.

Types

type Challenge

type Challenge struct {
	Challenge    []byte // "salt"
	DosChallenge []byte // seeds
	DosZeroBits  uint8
}

func (*Challenge) Decode

func (ac *Challenge) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*Challenge) Encode

func (ac *Challenge) Encode(build vsn.Build, out *packet.WorldPacket) error

type ClassAvailability

type ClassAvailability struct {
	ClassID               uint8
	ActiveExpansionLevel  uint8
	AccountExpansionLevel uint8
}

type EnterEncryptedMode

type EnterEncryptedMode struct {
	Signature []byte
	Enabled   bool
}

func (*EnterEncryptedMode) Decode

func (eem *EnterEncryptedMode) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*EnterEncryptedMode) Encode

func (eem *EnterEncryptedMode) Encode(build vsn.Build, out *packet.WorldPacket) error

type GameTime

type GameTime struct {
	BillingPlan uint32
	TimeRemain  uint32
	Unknown735  uint32
	InGameRoom  bool
}

type Legacy

type Legacy uint8
const (
	Ok                  Legacy = 0x0C
	Failed              Legacy = 0x0D
	Reject              Legacy = 0x0E
	BadServerProof      Legacy = 0x0F
	Unavailable         Legacy = 0x10
	SystemError         Legacy = 0x11
	BillingError        Legacy = 0x12
	BillingExpired      Legacy = 0x13
	VersionMismatch     Legacy = 0x14
	UnknownAccount      Legacy = 0x15
	IncorrectPassword   Legacy = 0x16
	SessionExpired      Legacy = 0x17
	ServerShuttingDown  Legacy = 0x18
	AlreadyLoggingIn    Legacy = 0x19
	LoginServerNotFound Legacy = 0x1A
	WaitQueue           Legacy = 0x1B
	Banned              Legacy = 0x1C
	AlreadyOnline       Legacy = 0x1D
	NoTime              Legacy = 0x1E
	DBBusy              Legacy = 0x1F
	Suspended           Legacy = 0x20
	ParentalControl     Legacy = 0x21
	LockedEnforced      Legacy = 0x22
)

type RaceClassAvailability

type RaceClassAvailability struct {
	RaceID  uint8
	Classes []ClassAvailability
}

type Response

type Response struct {
	Result bnet.Status

	SuccessInfo *SuccessInfo
	WaitInfo    *WaitInfo
}

func (*Response) Encode

func (ar *Response) Encode(build vsn.Build, to *packet.WorldPacket) error

type SessionClient

type SessionClient struct {
	Build           vsn.Build
	BuildType       int
	LoginServerID   uint32
	Account         string // 0-terminated string
	LoginServerType uint32
	LocalChallenge  []byte
	RegionID        uint32
	BattlegroupID   uint32
	RealmID         uint32
	DosResponse     uint64
	Digest          []byte
	AddonList       *addon.List
	RealmJoinTicket string
	UseIPv6         bool
}

func (*SessionClient) Decode

func (c *SessionClient) Decode(build vsn.Build, in *packet.WorldPacket) error

func (*SessionClient) Encode

func (c *SessionClient) Encode(build vsn.Build, out *packet.WorldPacket) error

type SuccessInfo

type SuccessInfo struct {
	ActiveExpansionLevel  uint8
	AccountExpansionLevel uint8

	TimeRested             uint32
	VirtualRealmAddress    uint32
	TimeSecondsUntilPCKick uint32
	CurrencyID             uint32
	Time                   int64

	GameTimeInfo GameTime

	VirtualRealms []VirtualRealmInfo
	Templates     []character.Template

	AvailableClasses []RaceClassAvailability

	IsExpansionTrial       bool
	ForceCharacterTemplate bool

	NumPlayersRedTeam  uint16
	NumPlayersBlueTeam uint16

	ExpansionTrialExpiration uint32
}

type VirtualRealmInfo

type VirtualRealmInfo struct {
	VirtualAddress uint32
	VirtualRealmNameInfo
}

type VirtualRealmNameInfo

type VirtualRealmNameInfo struct {
	IsLocal             bool
	IsInternalRealm     bool
	RealmNameActual     string
	RealmNameNormalized string
}

type WaitInfo

type WaitInfo struct {
	WaitCount uint32
	WaitTime  uint32
	HasFCM    bool
}

Jump to

Keyboard shortcuts

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