diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/Makefile | 4 | ||||
-rw-r--r-- | src/tools/completion/wg-quick.bash-completion | 3 | ||||
-rw-r--r-- | src/tools/completion/wg.bash-completion | 3 | ||||
-rw-r--r-- | src/tools/config.c | 5 | ||||
-rw-r--r-- | src/tools/config.h | 5 | ||||
-rw-r--r-- | src/tools/containers.h | 6 | ||||
-rw-r--r-- | src/tools/curve25519.c | 30 | ||||
-rw-r--r-- | src/tools/curve25519.h | 5 | ||||
-rw-r--r-- | src/tools/encoding.c | 4 | ||||
-rw-r--r-- | src/tools/encoding.h | 5 | ||||
-rw-r--r-- | src/tools/genkey.c | 5 | ||||
-rw-r--r-- | src/tools/ipc.c | 5 | ||||
-rw-r--r-- | src/tools/ipc.h | 5 | ||||
-rw-r--r-- | src/tools/mnlg.c | 4 | ||||
-rw-r--r-- | src/tools/mnlg.h | 4 | ||||
-rw-r--r-- | src/tools/pubkey.c | 5 | ||||
-rw-r--r-- | src/tools/set.c | 5 | ||||
-rw-r--r-- | src/tools/setconf.c | 5 | ||||
-rw-r--r-- | src/tools/show.c | 5 | ||||
-rw-r--r-- | src/tools/showconf.c | 5 | ||||
-rw-r--r-- | src/tools/subcommands.h | 5 | ||||
-rw-r--r-- | src/tools/terminal.c | 5 | ||||
-rw-r--r-- | src/tools/terminal.h | 5 | ||||
-rwxr-xr-x | src/tools/wg-quick.bash | 1 | ||||
-rw-r--r-- | src/tools/wg.c | 5 |
25 files changed, 89 insertions, 50 deletions
diff --git a/src/tools/Makefile b/src/tools/Makefile index bd727d4..e277b2f 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + PKG_CONFIG ?= pkg-config PREFIX ?= /usr DESTDIR ?= diff --git a/src/tools/completion/wg-quick.bash-completion b/src/tools/completion/wg-quick.bash-completion index b931323..f7df346 100644 --- a/src/tools/completion/wg-quick.bash-completion +++ b/src/tools/completion/wg-quick.bash-completion @@ -1,4 +1,5 @@ -# Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. _wg_quick_completion() { local i a diff --git a/src/tools/completion/wg.bash-completion b/src/tools/completion/wg.bash-completion index 5401bc3..9d0a9a5 100644 --- a/src/tools/completion/wg.bash-completion +++ b/src/tools/completion/wg.bash-completion @@ -1,4 +1,5 @@ -# Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. _wg_completion() { local a diff --git a/src/tools/config.c b/src/tools/config.c index 6ff0376..1fddb64 100644 --- a/src/tools/config.c +++ b/src/tools/config.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <arpa/inet.h> #include <limits.h> diff --git a/src/tools/config.h b/src/tools/config.h index 63a272c..8f29b4f 100644 --- a/src/tools/config.h +++ b/src/tools/config.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef CONFIG_H #define CONFIG_H diff --git a/src/tools/containers.h b/src/tools/containers.h index 31eabea..a22c42d 100644 --- a/src/tools/containers.h +++ b/src/tools/containers.h @@ -1,5 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ - +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef CONTAINERS_H #define CONTAINERS_H diff --git a/src/tools/curve25519.c b/src/tools/curve25519.c index 71bd095..f83f76f 100644 --- a/src/tools/curve25519.c +++ b/src/tools/curve25519.c @@ -1,33 +1,9 @@ -/* Original author: Adam Langley <agl@imperialviolet.org> +/* SPDX-License-Identifier: GPL-2.0 * - * Copyright 2008 Google Inc. All Rights Reserved. + * Copyright (C) 2008 Google Inc. All Rights Reserved. * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * - * Redistribution and use in source and binary forms of this file, with or - * without modification, are permitted provided that the following conditions - * are met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * * Neither the name of Google Inc nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * Original author: Adam Langley <agl@imperialviolet.org> */ #include "curve25519.h" diff --git a/src/tools/curve25519.h b/src/tools/curve25519.h index 6e651e9..1108cd8 100644 --- a/src/tools/curve25519.h +++ b/src/tools/curve25519.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef CURVE25519_H #define CURVE25519_H diff --git a/src/tools/encoding.c b/src/tools/encoding.c index da5ccef..5d5f6d0 100644 --- a/src/tools/encoding.c +++ b/src/tools/encoding.c @@ -1,4 +1,6 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * This is a specialized constant-time base64/hex implementation that resists side-channel attacks. */ diff --git a/src/tools/encoding.h b/src/tools/encoding.h index 1f79a2a..0b0a53e 100644 --- a/src/tools/encoding.h +++ b/src/tools/encoding.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef ENCODING_H #define ENCODING_H diff --git a/src/tools/genkey.c b/src/tools/genkey.c index 9a62060..8f3433b 100644 --- a/src/tools/genkey.c +++ b/src/tools/genkey.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <errno.h> #include <stdio.h> diff --git a/src/tools/ipc.c b/src/tools/ipc.c index a88672f..221cd4e 100644 --- a/src/tools/ipc.c +++ b/src/tools/ipc.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifdef __linux__ #include <libmnl/libmnl.h> diff --git a/src/tools/ipc.h b/src/tools/ipc.h index cb660bb..31ff53f 100644 --- a/src/tools/ipc.h +++ b/src/tools/ipc.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef IPC_H #define IPC_H diff --git a/src/tools/mnlg.c b/src/tools/mnlg.c index 8a2b4cc..f0fdfd6 100644 --- a/src/tools/mnlg.c +++ b/src/tools/mnlg.c @@ -1,4 +1,6 @@ -/* Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * Original author: Jiri Pirko <jiri@mellanox.com> */ diff --git a/src/tools/mnlg.h b/src/tools/mnlg.h index b27a18c..70c2b03 100644 --- a/src/tools/mnlg.h +++ b/src/tools/mnlg.h @@ -1,4 +1,6 @@ -/* Copyright (C) 2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * Original author: Jiri Pirko <jiri@mellanox.com> */ diff --git a/src/tools/pubkey.c b/src/tools/pubkey.c index 6cced49..39461c2 100644 --- a/src/tools/pubkey.c +++ b/src/tools/pubkey.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <errno.h> #include <stdio.h> diff --git a/src/tools/set.c b/src/tools/set.c index 57a6428..9ecf94b 100644 --- a/src/tools/set.c +++ b/src/tools/set.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <stdio.h> #include <stdlib.h> diff --git a/src/tools/setconf.c b/src/tools/setconf.c index 1857ff6..b87a13f 100644 --- a/src/tools/setconf.c +++ b/src/tools/setconf.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <stddef.h> #include <stdio.h> diff --git a/src/tools/show.c b/src/tools/show.c index ebfdf5b..c5be788 100644 --- a/src/tools/show.c +++ b/src/tools/show.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <arpa/inet.h> #include <inttypes.h> diff --git a/src/tools/showconf.c b/src/tools/showconf.c index e780d78..2e3fbd4 100644 --- a/src/tools/showconf.c +++ b/src/tools/showconf.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <arpa/inet.h> #include <netinet/in.h> diff --git a/src/tools/subcommands.h b/src/tools/subcommands.h index 7bbf70a..1d977ce 100644 --- a/src/tools/subcommands.h +++ b/src/tools/subcommands.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef SUBCOMMANDS_H #define SUBCOMMANDS_H diff --git a/src/tools/terminal.c b/src/tools/terminal.c index 703c75f..c9e4eb5 100644 --- a/src/tools/terminal.c +++ b/src/tools/terminal.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <ctype.h> #include <stdarg.h> diff --git a/src/tools/terminal.h b/src/tools/terminal.h index 2c1fb37..68bd9a3 100644 --- a/src/tools/terminal.h +++ b/src/tools/terminal.h @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #ifndef TERMINAL_H #define TERMINAL_H diff --git a/src/tools/wg-quick.bash b/src/tools/wg-quick.bash index 42bf265..b2acbff 100755 --- a/src/tools/wg-quick.bash +++ b/src/tools/wg-quick.bash @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0 # # Copyright (C) 2016-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. # diff --git a/src/tools/wg.c b/src/tools/wg.c index 97910ee..94f0857 100644 --- a/src/tools/wg.c +++ b/src/tools/wg.c @@ -1,4 +1,7 @@ -/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. + */ #include <stddef.h> #include <stdio.h> |