diff options
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" @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( @@ -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 ( |