]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: Add SPDX tags and copyright header
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 3 May 2018 13:04:00 +0000 (15:04 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 3 May 2018 13:06:25 +0000 (15:06 +0200)
Mathias should probably add his copyright headers to each file too.

50 files changed:
bind_test.go
conn.go
conn_default.go
conn_linux.go
constants.go
cookie.go
cookie_test.go
device.go
device_test.go
endpoint_test.go
helper_test.go
index.go
ip.go
kdf_test.go
keypair.go
logger.go
main.go
misc.go
noise-helpers.go
noise-protocol.go
noise-types.go
noise_test.go
peer.go
ratelimiter/ratelimiter.go
ratelimiter/ratelimiter_test.go
receive.go
replay.go
replay_test.go
routing.go
send.go
signal.go
tai64n/tai64n.go
tai64n/tai64n_test.go
timer.go
timers.go
trie.go
trie_rand_test.go
trie_test.go
tun.go
tun_darwin.go
tun_linux.go
tun_windows.go
uapi.go
uapi_darwin.go
uapi_linux.go
uapi_windows.go
warning_default.go
warning_linux.go
xchacha20poly1305/xchacha20.go
xchacha20poly1305/xchacha20_test.go

index 41c4225757b1485511014b06aee3ab308c138d63..47f54926b2de413bf408d13a1b790bb75638d045 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import "errors"
diff --git a/conn.go b/conn.go
index 6bb262c6f93af229b3e71a154f51bf71cebcaf40..082bbca94f2e08c63411fabaf75c2f8882cc5846 100644 (file)
--- a/conn.go
+++ b/conn.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 5b73c90a307c0b17f79d34a9a3f124d3692fa6c8..047d5f6df275a29cf45af033d6a347b57b25618c 100644 (file)
@@ -1,5 +1,10 @@
 // +build !linux
 
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index ff3c4839e02f3485f78eaca51aae9f3dd4fd6aed..a42813895a1a1e83c540135d9927864e127a0c2a 100644 (file)
@@ -1,4 +1,6 @@
-/* Copyright 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
  *
  * This implements userspace semantics of "sticky sockets", modeled after
  * WireGuard's kernelspace implementation. This is more or less a straight port
index 8835f92ce862590ecc9cfea31a12b5bf7f799b92..04b75d785ffaeac580b2b607206663bb561554ba 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 813ddab035f8c91cf3c30536a6b2865e833254ab..cfee367f982ee2202e093862d5a79a28e33623e0 100644 (file)
--- a/cookie.go
+++ b/cookie.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index d745fe7bdc5526df4d4ae2d54215da92469dbe46..34c8ad47d8d92bf893469253e816628301660a88 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index dddb547dbbdf2a3cd31a54e9184e6f5c551d0b07..8b0d2a53b5f6787de3c68e036f96a48f1c6198da 100644 (file)
--- a/device.go
+++ b/device.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index abd02088172c08b21d0215bf0712937025107aa4..7af52b294e55a914ab0269ff33cc91e1df62bcfb 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 /* Create two device instances and simulate full WireGuard interaction
index 7021e4897c4ab6f54115ea53aa5fdad5956d77d3..5dd6cb4ca3b8bcd18c4dbaf00d92ae4c407f88af 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 41e6b7279b634a79509a0f2b7af5302860123026..a8adcd7f89ead2b50d2a43f2f4932253a9e0e4ce 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 1ba040ed323447d232bbd69e77b0fabc6bc3f9f6..c309f234e39bcf00cccec975a035ddca7eafdbf7 100644 (file)
--- a/index.go
+++ b/index.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/ip.go b/ip.go
index 752a404af30a98ef319f15022f833cc6677b3c7f..7be9337604a3de34041dcf004529ce4c3164fe13 100644 (file)
--- a/ip.go
+++ b/ip.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index a89dacc2fb48af4dd7941893bf741d5497f53ef6..fa4a2d27f4f29b69fe3a64285813ecfec5541270 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 1ab06497e57b35fa325c42d3202e55a9216baccd..eaf30b2e56f78b516014ba3fcafd627cfda6df15 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 0872ef93d9d9c98fb35ccc8c65e6211e7c8f8555..784235c31ed3bc980638c1a15cb5680770cf7c99 100644 (file)
--- a/logger.go
+++ b/logger.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/main.go b/main.go
index f0705c8ab5798f8fceae220c9dae233a793effdf..4b8299a72dfc45e0326853ef53080c222b3c46b3 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/misc.go b/misc.go
index 80e33f627626119e88c934f7265eae43e4377eb8..f94a617fa3845ec9ce8146718faab4895bfb86aa 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 1e2de5ff2dd98ada2e027d840372357615a262bc..6e23d8317d576cd2fd3392cadd4045295d5792f2 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 6440c979115fdaecd6f6e777d9ec2f931d8255c6..b880edede0f3b2e21720e36ebf5eff8dc5194d9e 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 1a944dfe908fe51b3cd15ac0df2f630b92953145..58aa0c243a8dd6e13a0faf16bd740a477fab7529 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 5e9d44b6ae5d97c6159667a3ecfb2f34ebc32187..958a4effa9278c1c7fb9d950c4f144ffe8f4eed0 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/peer.go b/peer.go
index ec411b2c2758ae40652954c850708b79f3b70b28..9703b580bec9bfbd1be336222de4db99f3829787 100644 (file)
--- a/peer.go
+++ b/peer.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 006900a647b601f4d4abf22d6722f05efc88c1cc..1aa6813486575d7958b4a80a1c783e05ddd506f5 100644 (file)
@@ -1,8 +1,9 @@
-package ratelimiter
-
-/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
 
-/* This file contains a port of the rate-limiter from the linux kernel version */
+package ratelimiter
 
 import (
        "net"
index 37339ee296edceb916d7538791ade2557c7c2dc8..9bdaa4d9c06ab6c29e589d7ecc9f85d7ea9d7f3c 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package ratelimiter
 
 import (
index 7d35497108c5ede6c21e21e8c65c4e733fa67128..156ade56c810aa2a9dd2394ad28d93cc3841e4aa 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 5d4286003896ae16126e0959cbad108c11b3fe8a..8fab1d2cdfb7601baffb2dbeb957eddba13e1530 100644 (file)
--- a/replay.go
+++ b/replay.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 /* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
index f697701477a87a3d245ee8c7b25e180066649127..77180e59bd2e3cf790f781f80f00a1eb60424aae 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 2a2e237085cda711e15b28191f473646cc675a20..77c9b1ebd9b4c5b085854124d2a7b159bc052535 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/send.go b/send.go
index 5c6b3504af43423babf7877ae269ae100df7e2a7..24c7f32f367283a994d27b24a550cbfba2e5e3ad 100644 (file)
--- a/send.go
+++ b/send.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 1505593076d672574c673ae138999ec6e01182a4..4d51bfaae098d4baaa350ce0479643a9160434bf 100644 (file)
--- a/signal.go
+++ b/signal.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 type Signal struct {
index da5257c1f7ff700c5ce1699b7e1e45592c6cdd09..1c7f42baf54a16db71ab34649e6627bbf87f14c3 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package tai64n
 
 import (
index 389b65cd961aba093b23c3057f13dafa6a12f078..62e7b1b48bd7c4379f060b9a6dd3d06078c13689 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package tai64n
 
 import (
index 74e3a4e46e9a08e3bc78a10fc7a1d63e12757304..aeab5d939361466b57eea044a1ac82fc23a51e55 100644 (file)
--- a/timer.go
+++ b/timer.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index ba0d0e56f6718c1560e8bd9bc0b6b2575553a244..835191ffc8e00e89f591c93d0d1d23148d783c8f 100644 (file)
--- a/timers.go
+++ b/timers.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/trie.go b/trie.go
index 405ffc325646ad924f0c00713cf4cd7e8c7b3e94..03f0722da2bd348f46c4278cf09b71fe6d8df837 100644 (file)
--- a/trie.go
+++ b/trie.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 840d269579026ee9c7ac077d9fe5e99a08d7e635..157c27026dbc86eb2b4df3f411c8d21942b76e27 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 9d53df3408c4bf799be49c6e9c87d7056234305c..3c3b5ba51575689716e791a4974d185364477c2e 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/tun.go b/tun.go
index 318772ab1b723b18496ea29274b605c1b1cdb153..ec3ab479cc14cda533613a6bcc123b6db295fa86 100644 (file)
--- a/tun.go
+++ b/tun.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index d03ff485f27ce0b90b502960acd23f7d3ec39a6e..a03347f34a031ccb6691451997aff83a8a9aa61f 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index b0ffa00741e45a98e993d52b999ef816b5396eab..a74a9ccb00c71057d1fe130e8dd6615ad0d012fc 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 /* Copyright 2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */
 
 package main
index 07110328c02f2784dc0a8ab4bad9ce3d6452f512..c0c9ff8b4c775d33d15661f3e3e4aa8450df298f 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
diff --git a/uapi.go b/uapi.go
index c795b73873211691c840ba4cb76205853cff1c0b..a7ef662a465d62395a75f22b39435bb180b26222 100644 (file)
--- a/uapi.go
+++ b/uapi.go
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 4cb4e625b4b3274687b4626e7b9387715e65139b..954d7204153591eb25811dfe99ce6878e3bd6b8d 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index f97a18a61de87e9250a0fb6a30cc329af5d6847a..c40472e3b922cebb3515e869fb4ffe08eba4c19f 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index 7807235aae2ec0b9cdbcf8182d6575c28b90a508..01f550593f978a7a5c858ede8eab5b7bb3c189fd 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 /* UAPI on windows uses a bidirectional named pipe
index 92d1b1dabec4702f8a2e6361079cfc46ea7c35ac..8a0a448da916ad64a962d3c04d66ffc96edb0729 100644 (file)
@@ -1,5 +1,10 @@
 // +build !linux
 
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index d82805f2f5ea5696fe86b1a41084def8c5796b1a..2ac7957b14e4ce24fc105f5146708654eb819ccb 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package main
 
 import (
index a6e59f0cf990d3712aa5c25639a3b2916c37813a..bd27f02eadb4c6bf5222bb88c4f0da66d2e701b4 100644 (file)
@@ -1,6 +1,8 @@
-// Copyright (c) 2016 Andreas Auernhammer. All rights reserved.
-// Use of this source code is governed by a license that can be
-// found in the LICENSE file.
+/* SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2016 Andreas Auernhammer. All Rights Reserved.
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
 
 package xchacha20poly1305
 
index 5d5b78fd2a548b46709032145a9ba639076e26f9..c0d11d757f8374d5f636ac0364fcb8da8d102c29 100644 (file)
@@ -1,3 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+ */
+
 package xchacha20poly1305
 
 import (