Documentation
¶
Index ¶
- func ApprovePair(device string) bool
- func AwaitingPair() []string
- func DecodePem(cert []byte) (*x509.Certificate, error)
- func DenyPair(device string)
- func EncodePem(cert x509.Certificate) []byte
- func GetConfig() *tls.Config
- func RequestPairApproval(device string) <-chan bool
- func Upgrade(ctx context.Context, conn net.Conn, name string) (*tls.Conn, error)
- type DeviceStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApprovePair ¶
func AwaitingPair ¶
func AwaitingPair() []string
func EncodePem ¶
func EncodePem(cert x509.Certificate) []byte
func RequestPairApproval ¶
Types ¶
type DeviceStore ¶
type DeviceStore interface {
Add(device string, cert *x509.Certificate)
Remove(device string)
Get(device string) *x509.Certificate
}
var ( // An implementation of DeviceStore using the XDG_DATA_HOME for storage Devices DeviceStore = fileStore{} )
Click to show internal directories.
Click to hide internal directories.