From: Jason A. Donenfeld Date: Thu, 15 Feb 2018 12:12:28 +0000 (+0100) Subject: external-tests: update go version X-Git-Tag: v1.0.20191226~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc8a25e2f6989003dedab548d2146ee0fb76640b;p=thirdparty%2Fwireguard-tools.git external-tests: update go version Signed-off-by: Jason A. Donenfeld --- diff --git a/contrib/external-tests/go/main.go b/contrib/external-tests/go/main.go index e9e8da3..a582797 100644 --- a/contrib/external-tests/go/main.go +++ b/contrib/external-tests/go/main.go @@ -40,7 +40,7 @@ func main() { theirPublic, _ := base64.StdEncoding.DecodeString("qRCwZSKInrMAq5sepfCdaCsRJaoLe5jhtzfiw7CjbwM=") preshared, _ := base64.StdEncoding.DecodeString("FpCyhws9cxwWoV4xELtfJvjJN+zQVRPISllRWgeopVE=") cs := noise.NewCipherSuite(noise.DH25519, noise.CipherChaChaPoly, noise.HashBLAKE2s) - hs := noise.NewHandshakeState(noise.Config{ + hs, _ := noise.NewHandshakeState(noise.Config{ CipherSuite: cs, Random: rand.Reader, Pattern: noise.HandshakeIK, @@ -68,7 +68,7 @@ func main() { initiationPacket[2] = 0 // Reserved initiationPacket[3] = 0 // Reserved binary.LittleEndian.PutUint32(initiationPacket[4:], 28) // Sender index: 28 (arbitrary) - initiationPacket, _, _ = hs.WriteMessage(initiationPacket, tai64n) + initiationPacket, _, _, _ = hs.WriteMessage(initiationPacket, tai64n) hasher, _ := blake2s.New256(nil) hasher.Write([]byte("mac1----")) hasher.Write(theirPublic)