WIP Working on authkeys + tests

This commit is contained in:
Juan Font Alonso 2021-05-05 23:00:04 +02:00
parent 03bb32083b
commit 486faa9656
3 changed files with 50 additions and 0 deletions

View file

@ -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)
}