Documentation ¶
Overview ¶
Package wpaeap provides a Config type for WPA EAP protected network.
Index ¶
- type Config
- type ConfigFactory
- type Option
- func AltSubjectMatch(sans []string) Option
- func ClientCACert(caCert string) Option
- func ClientCred(cred certificate.Credential) Option
- func DomainSuffixMatch(domainSuffix []string) Option
- func FTMode(ft wpa.FTModeEnum) Option
- func FileSuffix(suffix string) Option
- func Identity(id string) Option
- func Mode(mode wpa.ModeEnum) Option
- func NotUseSystemCAs() Option
- func ServerEAPUsers(users string) Option
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 WPA-EAP protected network.
func (*Config) HostapdConfig ¶
HostapdConfig returns hostapd config of WPA-EAP network.
func (*Config) ShillServiceProperties ¶
ShillServiceProperties returns shill properties of WPA-EAP 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.
type Option ¶
type Option func(*ConfigFactory)
Option is the function signature used to specify options of Config.
func AltSubjectMatch ¶
AltSubjectMatch returns an Option which sets shill EAP.SubjectAlternativeNameMatch property in Config.
func ClientCACert ¶
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 DomainSuffixMatch ¶
DomainSuffixMatch returns an Option which sets shill EAP.DomainSuffixMatch property in Config.
func FTMode ¶
func FTMode(ft wpa.FTModeEnum) Option
FTMode returns an Option which sets fast transition mode in Config.
func FileSuffix ¶
FileSuffix returns an Option which sets the file suffix in Config.
func NotUseSystemCAs ¶
func NotUseSystemCAs() Option
NotUseSystemCAs returns an Option which sets that we are NOT using system CAs in Config.
func ServerEAPUsers ¶
ServerEAPUsers returns an Option which sets the EAP users for server in Config.