dynamicwep

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: 6 Imported by: 0

Documentation

Overview

Package dynamicwep provides a Config type for Dynamic WEP protected network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Embedded EAP Config to inherit the Install* methods.
	*eap.Config
	// contains filtered or unexported fields
}

Config implements security.Config interface for Dynamic WEP protected network.

func (*Config) Class

func (c *Config) Class() string

Class returns security class of DynamicWEP network.

func (*Config) HostapdConfig

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

HostapdConfig returns hostapd config of DynamicWEP network.

func (*Config) ShillServiceProperties

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

ShillServiceProperties returns shill properties of DynamicWEP 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(serverCACert string, serverCred certificate.Credential, 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(*ConfigFactory)

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

func ClientCACert

func ClientCACert(caCert string) Option

ClientCACert returns an Option which sets the PEM encoded CA certificate for client in Config.

func ClientCred

func ClientCred(cred certificate.Credential) Option

ClientCred returns an Option which sets the PEM encoded credentials for client in Config.

func FileSuffix

func FileSuffix(suffix string) Option

FileSuffix returns an Option which sets the file suffix in Config.

func RekeyPeriod

func RekeyPeriod(period int) Option

RekeyPeriod returns an Option which sets the rekey period in seconds in Config.

func UseShortKey

func UseShortKey() Option

UseShortKey returns an Option which sets that we are using short key, i.e., 64 bit WEP with 40 secret bits in Config. By default we are using 128 bit WEP with 104 secret bits.

Jump to

Keyboard shortcuts

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