aboutsummaryrefslogtreecommitdiff
path: root/device/cookie.go
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@tailscale.com>2020-04-07 15:52:04 +1000
committerDavid Crawshaw <crawshaw@tailscale.com>2020-04-07 15:52:41 +1000
commitf6020a2085d9a6b911c00875752bb40bfe629e00 (patch)
treecc89cec68f8a182dfc36206e268c9dc8f0a5d3f2 /device/cookie.go
parentad256f0b739b835e8836f84571424cb4adc01b1e (diff)
downloadwireguard-go-f6020a2085d9a6b911c00875752bb40bfe629e00.tar.gz
wireguard-go-f6020a2085d9a6b911c00875752bb40bfe629e00.zip
Revert "device: use wgcfg key types"
More cleanup work of wgcfg to do before bringing this in. This reverts commit 83ca9b47b63b4d07630c4d579faf1111e42537d3.
Diffstat (limited to 'device/cookie.go')
-rw-r--r--device/cookie.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/device/cookie.go b/device/cookie.go
index ec54f61..f134128 100644
--- a/device/cookie.go
+++ b/device/cookie.go
@@ -13,7 +13,6 @@ import (
"golang.org/x/crypto/blake2s"
"golang.org/x/crypto/chacha20poly1305"
- "golang.zx2c4.com/wireguard/wgcfg"
)
type CookieChecker struct {
@@ -42,7 +41,7 @@ type CookieGenerator struct {
}
}
-func (st *CookieChecker) Init(pk wgcfg.Key) {
+func (st *CookieChecker) Init(pk NoisePublicKey) {
st.Lock()
defer st.Unlock()
@@ -172,7 +171,7 @@ func (st *CookieChecker) CreateReply(
return reply, nil
}
-func (st *CookieGenerator) Init(pk wgcfg.Key) {
+func (st *CookieGenerator) Init(pk NoisePublicKey) {
st.Lock()
defer st.Unlock()