handlers

package
v0.0.0-...-5f3621a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	Username string
	Password string
}

func (*AuthHandler) Handle

func (h *AuthHandler) Handle(c *types.VncConn) error

type ClientAuth

type ClientAuth interface {
	// SecurityType returns the byte identifier sent by the server to
	// identify this authentication scheme.
	SecurityType() uint8

	// Handshake is called when the authentication handshake should be
	// performed, as part of the general RFB handshake. (see 7.2.1)
	Handshake(c *types.VncConn) error
}

A ClientAuth implements a method of authenticating with a remote server.

type VersionHandler

type VersionHandler struct {
	ClientProtoVersion string // 'RFB 003.008'
}

func (*VersionHandler) Handle

func (h *VersionHandler) Handle(c *types.VncConn) error

type VncAuthNone

type VncAuthNone byte

VncAuthNone is the "none" authentication. See 7.2.1

func (*VncAuthNone) Handshake

func (*VncAuthNone) Handshake(c *types.VncConn) error

func (*VncAuthNone) SecurityType

func (*VncAuthNone) SecurityType() uint8

type VncAuthPassword

type VncAuthPassword struct {
	Password string
}

VncAuthPassword is VNC authentication, 7.2.2

func (*VncAuthPassword) Encrypt

func (p *VncAuthPassword) Encrypt(bytes []byte) ([]byte, error)

func (*VncAuthPassword) Handshake

func (p *VncAuthPassword) Handshake(c *types.VncConn) error

func (*VncAuthPassword) SecurityType

func (p *VncAuthPassword) SecurityType() uint8

Jump to

Keyboard shortcuts

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