mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-23 01:05:32 +00:00
all: delete wgcfg.Key and wgcfg.PrivateKey
For historical reasons, we ended up with two near-duplicate copies of curve25519 key types, one in the wireguard-go module (wgcfg) and one in the tailscale module (types/wgkey). Then we moved wgcfg to the tailscale module. We can now remove the wgcfg key type in favor of wgkey. Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
func setupWGTest(logf logger.Logf, traf *TrafficGen, a1, a2 netaddr.IPPrefix) {
|
||||
l1 := logger.WithPrefix(logf, "e1: ")
|
||||
k1, err := wgcfg.NewPrivateKey()
|
||||
k1, err := wgkey.NewPrivate()
|
||||
if err != nil {
|
||||
log.Fatalf("e1 NewPrivateKey: %v", err)
|
||||
}
|
||||
@@ -51,7 +51,7 @@ func setupWGTest(logf logger.Logf, traf *TrafficGen, a1, a2 netaddr.IPPrefix) {
|
||||
}
|
||||
|
||||
l2 := logger.WithPrefix(logf, "e2: ")
|
||||
k2, err := wgcfg.NewPrivateKey()
|
||||
k2, err := wgkey.NewPrivate()
|
||||
if err != nil {
|
||||
log.Fatalf("e2 NewPrivateKey: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user