wep

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package wep provides a Config type for WEP protected network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAlgo

type AuthAlgo int

AuthAlgo is the type for specifying WEP authentication algorithms.

const (
	AuthAlgoOpen AuthAlgo = 1 << iota
	AuthAlgoShared
)

WEP authentication algorithm modes.

type Config

type Config struct {
	// Embedded base config so we don't have to re-implement credential-related methods.
	base.Config
	// contains filtered or unexported fields
}

Config implements security.Config interface for WEP protected network.

func (*Config) Class

func (c *Config) Class() string

Class returns security class of WEP network.

func (*Config) HostapdConfig

func (c *Config) HostapdConfig() (map[string]string, error)

HostapdConfig returns hostapd config of WEP network.

func (*Config) ShillServiceProperties

func (c *Config) ShillServiceProperties() (map[string]interface{}, error)

ShillServiceProperties returns shill properties of WEP network.

type ConfigFactory

type ConfigFactory struct {
	// contains filtered or unexported fields
}

ConfigFactory holds some Option and provides Gen method to build a new Config.

func NewConfigFactory

func NewConfigFactory(keys []string, ops ...Option) *ConfigFactory

NewConfigFactory builds a ConfigFactory with the given Option.

func (*ConfigFactory) Gen

func (f *ConfigFactory) Gen() (security.Config, error)

Gen builds a Config with the given Option stored in ConfigFactory.

type Option

type Option func(*Config)

Option is the function signature used to specify options of Config.

func AuthAlgs

func AuthAlgs(algs ...AuthAlgo) Option

AuthAlgs returns an Option which sets what authentication algorithm to use in Config.

func DefaultKey

func DefaultKey(d int) Option

DefaultKey returns an Option which sets default key in Config.

Jump to

Keyboard shortcuts

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