server

package
v0.0.0-...-578baf5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const VersionBugfix = 4
View Source
const VersionMajor = 0
View Source
const VersionMinor = 1

Variables

Functions

This section is empty.

Types

type New

type New struct {
	IP               net.IP
	Port             uint16
	PrivateKey       *rsa.PrivateKey
	PublicKey        *rsa.PublicKey
	ClientPubKey     *rsa.PublicKey
	Duration         uint16
	Checktime        uint16
	ExtensionScripts extensionScripts.Scripts
	FirewallState    *firewalltracker.State
	Replay           *ReplayDetect
}

func (*New) Receive

func (n *New) Receive() error

type ReplayDetect

type ReplayDetect struct {
	HashedPackets map[string]bool
	// contains filtered or unexported fields
}

func (*ReplayDetect) Check

func (rd *ReplayDetect) Check(packet []byte) error

Checks if the packet has already been sent by taking the SHA-256 hash of the packet and comparing it with all the received packets.

func (*ReplayDetect) Setup

func (rd *ReplayDetect) Setup()

Jump to

Keyboard shortcuts

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