secureconnection

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: AGPL-3.0 Imports: 7 Imported by: 20

README

secure-connection

Implementation of the NEX secure connection protocol for Pretendo game servers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonProtocol

type CommonProtocol struct {
	CreateReportDBRecord func(pid types.PID, reportID types.UInt32, reportData types.QBuffer) error
	ValidateLoginData    func(pid types.PID, loginData types.DataHolder) *nex.Error

	OnAfterRegister    func(packet nex.PacketInterface, vecMyURLs types.List[types.StationURL])
	OnAfterRequestURLs func(packet nex.PacketInterface, cidTarget types.UInt32, pidTarget types.PID)
	OnAfterRegisterEx  func(packet nex.PacketInterface, vecMyURLs types.List[types.StationURL], hCustomData types.DataHolder)
	OnAfterReplaceURL  func(packet nex.PacketInterface, target types.StationURL, url types.StationURL)
	OnAfterSendReport  func(packet nex.PacketInterface, reportID types.UInt32, reportData types.QBuffer)
	// contains filtered or unexported fields
}

func NewCommonProtocol

func NewCommonProtocol(protocol secure_connection.Interface) *CommonProtocol

NewCommonProtocol returns a new CommonProtocol

func (*CommonProtocol) DisableInsecureRegister added in v2.4.0

func (commonProtocol *CommonProtocol) DisableInsecureRegister()

DisableInsecureRegister disables the insecure Register method

func (*CommonProtocol) EnableInsecureRegister added in v2.4.0

func (commonProtocol *CommonProtocol) EnableInsecureRegister()

EnableInsecureRegister enables the insecure Register method. Do not enable this on NEX 1 games

func (*CommonProtocol) SetPretendoValidation added in v2.4.0

func (commonProtocol *CommonProtocol) SetPretendoValidation(aesKey []byte)

SetPretendoValidation configures the protocol to use Pretendo validation

Jump to

Keyboard shortcuts

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