aci

package
v0.0.0-...-dd4db30 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2014 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const NOT_DETECTED = 50001

Variables

View Source
var InvalidHeader = errors.New("Invalid header in the aCI25 message")
View Source
var NotEnoughParts = errors.New("Not enough parts in the aCI25 message")

Functions

func AppendHWID

func AppendHWID(hwid int64, uid int, detected bool) error

func HandleCI2

func HandleCI2(
	conn net.Conn,
	connection_data *structs.ConnData,
	packet_data *structs.PacketData,
	stringParts []string,
) error

func HandleCI25

func HandleCI25(
	conn net.Conn,
	connection_data *structs.ConnData,
	packet_data *structs.PacketData,
	stringParts []string,
) error

func HandleCI3

func HandleCI3(
	conn net.Conn,
	connection_data *structs.ConnData,
	packet_data *structs.PacketData,
	stringParts []string,
) error

Called by the SendRandomStringMessage handler.

func IsIntInSlice

func IsIntInSlice(slice []int, a int) bool

func LoadKey

func LoadKey(path string) error

Loads the private key, called in main.go

func SliceIntToString

func SliceIntToString(slice []int) string

func StringToSliceInt

func StringToSliceInt(encoded string) []int

Types

type CIResult

type CIResult struct {
	Authorized bool
	Tokens     [][]uint64
	Message    string
	Status     int
	Macs       []Mac
	MachineID  string
}

Struct passed over by the message parser. Packaged to make the code cleaner.

type Mac

type Mac struct {
	Adr   []uint64
	Token []string
}

I'm not sure what the fields mean, the following structure was used in the original NPx implementation.

Jump to

Keyboard shortcuts

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