summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bind_test.go5
-rw-r--r--conn.go5
-rw-r--r--conn_default.go5
-rw-r--r--conn_linux.go4
-rw-r--r--constants.go5
-rw-r--r--cookie.go5
-rw-r--r--cookie_test.go5
-rw-r--r--device.go5
-rw-r--r--device_test.go5
-rw-r--r--endpoint_test.go5
-rw-r--r--helper_test.go5
-rw-r--r--index.go5
-rw-r--r--ip.go5
-rw-r--r--kdf_test.go5
-rw-r--r--keypair.go5
-rw-r--r--logger.go5
-rw-r--r--main.go5
-rw-r--r--misc.go5
-rw-r--r--noise-helpers.go5
-rw-r--r--noise-protocol.go5
-rw-r--r--noise-types.go5
-rw-r--r--noise_test.go5
-rw-r--r--peer.go5
-rw-r--r--ratelimiter/ratelimiter.go9
-rw-r--r--ratelimiter/ratelimiter_test.go5
-rw-r--r--receive.go5
-rw-r--r--replay.go5
-rw-r--r--replay_test.go5
-rw-r--r--routing.go5
-rw-r--r--send.go5
-rw-r--r--signal.go5
-rw-r--r--tai64n/tai64n.go5
-rw-r--r--tai64n/tai64n_test.go5
-rw-r--r--timer.go5
-rw-r--r--timers.go5
-rw-r--r--trie.go5
-rw-r--r--trie_rand_test.go5
-rw-r--r--trie_test.go5
-rw-r--r--tun.go5
-rw-r--r--tun_darwin.go5
-rw-r--r--tun_linux.go5
-rw-r--r--tun_windows.go5
-rw-r--r--uapi.go5
-rw-r--r--uapi_darwin.go5
-rw-r--r--uapi_linux.go5
-rw-r--r--uapi_windows.go5
-rw-r--r--warning_default.go5
-rw-r--r--warning_linux.go5
-rw-r--r--xchacha20poly1305/xchacha20.go8
-rw-r--r--xchacha20poly1305/xchacha20_test.go5
50 files changed, 248 insertions, 8 deletions
diff --git a/bind_test.go b/bind_test.go
index 41c4225..47f5492 100644
--- a/bind_test.go
+++ b/bind_test.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 "errors"
diff --git a/conn.go b/conn.go
index 6bb262c..082bbca 100644
--- 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 (
diff --git a/conn_default.go b/conn_default.go
index 5b73c90..047d5f6 100644
--- a/conn_default.go
+++ b/conn_default.go
@@ -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 (
diff --git a/conn_linux.go b/conn_linux.go
index ff3c483..a428138 100644
--- a/conn_linux.go
+++ b/conn_linux.go
@@ -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
diff --git a/constants.go b/constants.go
index 8835f92..04b75d7 100644
--- a/constants.go
+++ b/constants.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/cookie.go b/cookie.go
index 813ddab..cfee367 100644
--- 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 (
diff --git a/cookie_test.go b/cookie_test.go
index d745fe7..34c8ad4 100644
--- a/cookie_test.go
+++ b/cookie_test.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/device.go b/device.go
index dddb547..8b0d2a5 100644
--- 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 (
diff --git a/device_test.go b/device_test.go
index abd0208..7af52b2 100644
--- a/device_test.go
+++ b/device_test.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
/* Create two device instances and simulate full WireGuard interaction
diff --git a/endpoint_test.go b/endpoint_test.go
index 7021e48..5dd6cb4 100644
--- a/endpoint_test.go
+++ b/endpoint_test.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/helper_test.go b/helper_test.go
index 41e6b72..a8adcd7 100644
--- a/helper_test.go
+++ b/helper_test.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/index.go b/index.go
index 1ba040e..c309f23 100644
--- 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 752a404..7be9337 100644
--- 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 (
diff --git a/kdf_test.go b/kdf_test.go
index a89dacc..fa4a2d2 100644
--- a/kdf_test.go
+++ b/kdf_test.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/keypair.go b/keypair.go
index 1ab0649..eaf30b2 100644
--- a/keypair.go
+++ b/keypair.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/logger.go b/logger.go
index 0872ef9..784235c 100644
--- 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 f0705c8..4b8299a 100644
--- 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 80e33f6..f94a617 100644
--- 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 (
diff --git a/noise-helpers.go b/noise-helpers.go
index 1e2de5f..6e23d83 100644
--- a/noise-helpers.go
+++ b/noise-helpers.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/noise-protocol.go b/noise-protocol.go
index 6440c97..b880ede 100644
--- a/noise-protocol.go
+++ b/noise-protocol.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/noise-types.go b/noise-types.go
index 1a944df..58aa0c2 100644
--- a/noise-types.go
+++ b/noise-types.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/noise_test.go b/noise_test.go
index 5e9d44b..958a4ef 100644
--- a/noise_test.go
+++ b/noise_test.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/peer.go b/peer.go
index ec411b2..9703b58 100644
--- 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 (
diff --git a/ratelimiter/ratelimiter.go b/ratelimiter/ratelimiter.go
index 006900a..1aa6813 100644
--- a/ratelimiter/ratelimiter.go
+++ b/ratelimiter/ratelimiter.go
@@ -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"
diff --git a/ratelimiter/ratelimiter_test.go b/ratelimiter/ratelimiter_test.go
index 37339ee..9bdaa4d 100644
--- a/ratelimiter/ratelimiter_test.go
+++ b/ratelimiter/ratelimiter_test.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 ratelimiter
import (
diff --git a/receive.go b/receive.go
index 7d35497..156ade5 100644
--- a/receive.go
+++ b/receive.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/replay.go b/replay.go
index 5d42860..8fab1d2 100644
--- 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. */
diff --git a/replay_test.go b/replay_test.go
index f697701..77180e5 100644
--- a/replay_test.go
+++ b/replay_test.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/routing.go b/routing.go
index 2a2e237..77c9b1e 100644
--- a/routing.go
+++ b/routing.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/send.go b/send.go
index 5c6b350..24c7f32 100644
--- 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 (
diff --git a/signal.go b/signal.go
index 1505593..4d51bfa 100644
--- 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 {
diff --git a/tai64n/tai64n.go b/tai64n/tai64n.go
index da5257c..1c7f42b 100644
--- a/tai64n/tai64n.go
+++ b/tai64n/tai64n.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 tai64n
import (
diff --git a/tai64n/tai64n_test.go b/tai64n/tai64n_test.go
index 389b65c..62e7b1b 100644
--- a/tai64n/tai64n_test.go
+++ b/tai64n/tai64n_test.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 tai64n
import (
diff --git a/timer.go b/timer.go
index 74e3a4e..aeab5d9 100644
--- 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 (
diff --git a/timers.go b/timers.go
index ba0d0e5..835191f 100644
--- 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 405ffc3..03f0722 100644
--- 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 (
diff --git a/trie_rand_test.go b/trie_rand_test.go
index 840d269..157c270 100644
--- a/trie_rand_test.go
+++ b/trie_rand_test.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_test.go b/trie_test.go
index 9d53df3..3c3b5ba 100644
--- a/trie_test.go
+++ b/trie_test.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/tun.go b/tun.go
index 318772a..ec3ab47 100644
--- 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 (
diff --git a/tun_darwin.go b/tun_darwin.go
index d03ff48..a03347f 100644
--- a/tun_darwin.go
+++ b/tun_darwin.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/tun_linux.go b/tun_linux.go
index b0ffa00..a74a9cc 100644
--- a/tun_linux.go
+++ b/tun_linux.go
@@ -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
diff --git a/tun_windows.go b/tun_windows.go
index 0711032..c0c9ff8 100644
--- a/tun_windows.go
+++ b/tun_windows.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/uapi.go b/uapi.go
index c795b73..a7ef662 100644
--- 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 (
diff --git a/uapi_darwin.go b/uapi_darwin.go
index 4cb4e62..954d720 100644
--- a/uapi_darwin.go
+++ b/uapi_darwin.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/uapi_linux.go b/uapi_linux.go
index f97a18a..c40472e 100644
--- a/uapi_linux.go
+++ b/uapi_linux.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/uapi_windows.go b/uapi_windows.go
index 7807235..01f5505 100644
--- a/uapi_windows.go
+++ b/uapi_windows.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
/* UAPI on windows uses a bidirectional named pipe
diff --git a/warning_default.go b/warning_default.go
index 92d1b1d..8a0a448 100644
--- a/warning_default.go
+++ b/warning_default.go
@@ -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 (
diff --git a/warning_linux.go b/warning_linux.go
index d82805f..2ac7957 100644
--- a/warning_linux.go
+++ b/warning_linux.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/xchacha20poly1305/xchacha20.go b/xchacha20poly1305/xchacha20.go
index a6e59f0..bd27f02 100644
--- a/xchacha20poly1305/xchacha20.go
+++ b/xchacha20poly1305/xchacha20.go
@@ -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
diff --git a/xchacha20poly1305/xchacha20_test.go b/xchacha20poly1305/xchacha20_test.go
index 5d5b78f..c0d11d7 100644
--- a/xchacha20poly1305/xchacha20_test.go
+++ b/xchacha20poly1305/xchacha20_test.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 xchacha20poly1305
import (