WIP Working on authkeys + tests
This commit is contained in:
parent
03bb32083b
commit
486faa9656
3 changed files with 50 additions and 0 deletions
4
utils.go
4
utils.go
|
@ -21,6 +21,10 @@ import (
|
|||
"tailscale.com/wgengine/wgcfg"
|
||||
)
|
||||
|
||||
type Error string
|
||||
|
||||
func (e Error) Error() string { return string(e) }
|
||||
|
||||
func decode(msg []byte, v interface{}, pubKey *wgcfg.Key, privKey *wgcfg.PrivateKey) error {
|
||||
return decodeMsg(msg, v, pubKey, privKey)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue