From 60421db0a5a4b32d529a80a0834ed68b948ab1d3 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Tue, 8 Jun 2021 18:14:03 +0200 Subject: [PATCH] Add SPDX-License-Identifier to source files This change adds 'SPDX-License-Identifier: BSD-2-Clause' [1] to the source code files that originate in the libcoap project. Note that not all files are tagged because they are pulled in from other sources and thus may fall under a different license. More information about these is contained in the LICENSE file. [1] https://spdx.org/licenses/BSD-2-Clause.html --- CMakeLists.txt | 10 ++++++++++ Makefile.am | 7 +++++-- cmake_coap_config.h.in | 10 ++++++++++ coap_config.h.lwip | 11 +++++++++++ coap_config.h.lwip.in | 11 +++++++++++ coap_config.h.riot | 11 +++++++++++ coap_config.h.riot.in | 11 +++++++++++ configure.ac | 8 +++++++- doc/Makefile.am | 2 ++ examples/Makefile.am | 3 +++ examples/coap-client.c | 2 ++ examples/coap-rd.c | 2 ++ examples/coap-server.c | 2 ++ examples/coap_list.c | 2 ++ examples/coap_list.h | 2 ++ examples/etsi_iot_01.c | 2 ++ examples/lwip/lwipopts.h | 12 ++++++++++++ examples/lwip/server-coap.c | 12 ++++++++++++ examples/lwip/server-coap.h | 11 +++++++++++ examples/tiny.c | 2 ++ include/coap3/address.h | 2 ++ include/coap3/async.h | 2 ++ include/coap3/block.h | 2 ++ include/coap3/coap.h.in | 4 +++- include/coap3/coap.h.windows | 4 +++- include/coap3/coap.h.windows.in | 4 +++- include/coap3/coap_asn1_internal.h | 2 ++ include/coap3/coap_async_internal.h | 2 ++ include/coap3/coap_block_internal.h | 2 ++ include/coap3/coap_cache.h | 2 ++ include/coap3/coap_cache_internal.h | 2 ++ include/coap3/coap_debug.h | 2 ++ include/coap3/coap_dtls.h | 2 ++ include/coap3/coap_dtls_internal.h | 2 ++ include/coap3/coap_event.h | 2 ++ include/coap3/coap_forward_decls.h | 2 ++ include/coap3/coap_hashkey.h | 2 ++ include/coap3/coap_internal.h | 2 ++ include/coap3/coap_io.h | 2 ++ include/coap3/coap_io_internal.h | 2 ++ include/coap3/coap_mutex.h | 2 ++ include/coap3/coap_net_internal.h | 2 ++ include/coap3/coap_pdu_internal.h | 2 ++ include/coap3/coap_prng.h | 2 ++ include/coap3/coap_resource_internal.h | 2 ++ include/coap3/coap_riot.h | 2 ++ include/coap3/coap_session.h | 2 ++ include/coap3/coap_session_internal.h | 2 ++ include/coap3/coap_subscribe_internal.h | 2 ++ include/coap3/coap_tcp_internal.h | 2 ++ include/coap3/coap_time.h | 2 ++ include/coap3/encode.h | 2 ++ include/coap3/libcoap.h | 2 ++ include/coap3/lwippools.h | 2 ++ include/coap3/mem.h | 2 ++ include/coap3/net.h | 2 ++ include/coap3/option.h | 2 ++ include/coap3/pdu.h | 2 ++ include/coap3/resource.h | 2 ++ include/coap3/str.h | 2 ++ include/coap3/subscribe.h | 2 ++ include/coap3/uri.h | 2 ++ man/examples-code-check.c | 2 ++ src/address.c | 2 ++ src/async.c | 2 ++ src/block.c | 2 ++ src/coap_asn1.c | 2 ++ src/coap_cache.c | 2 ++ src/coap_debug.c | 2 ++ src/coap_event.c | 2 ++ src/coap_gnutls.c | 2 ++ src/coap_hashkey.c | 2 ++ src/coap_io.c | 2 ++ src/coap_io_lwip.c | 2 ++ src/coap_io_riot.c | 2 ++ src/coap_mbedtls.c | 2 ++ src/coap_notls.c | 2 ++ src/coap_openssl.c | 2 ++ src/coap_prng.c | 2 ++ src/coap_session.c | 2 ++ src/coap_tcp.c | 2 ++ src/coap_time.c | 2 ++ src/coap_tinydtls.c | 2 ++ src/encode.c | 2 ++ src/mem.c | 2 ++ src/net.c | 2 ++ src/option.c | 2 ++ src/pdu.c | 2 ++ src/resource.c | 2 ++ src/str.c | 2 ++ src/subscribe.c | 2 ++ src/uri.c | 2 ++ tests/Makefile.am | 4 +++- tests/oss-fuzz/Makefile.ci.in | 7 +++++++ tests/test_common.h.in | 2 ++ tests/test_encode.c | 2 ++ tests/test_encode.h | 2 ++ tests/test_error_response.c | 2 ++ tests/test_error_response.h | 2 ++ tests/test_options.c | 2 ++ tests/test_options.h | 2 ++ tests/test_pdu.c | 2 ++ tests/test_pdu.h | 2 ++ tests/test_sendqueue.c | 2 ++ tests/test_sendqueue.h | 2 ++ tests/test_session.c | 2 ++ tests/test_session.h | 2 ++ tests/test_tls.c | 2 ++ tests/test_tls.h | 2 ++ tests/test_uri.c | 2 ++ tests/test_uri.h | 2 ++ tests/test_wellknown.c | 2 ++ tests/test_wellknown.h | 2 ++ tests/testdriver.c | 10 ++++++++++ 114 files changed, 335 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4616fcfc..80894aa5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,13 @@ +# CMakeLists.txt for libcoap +# +# Copyright (C) 2020 Carlos Gomes Martinho +# Copyright (C) 2020-2021 Jon Shallow +# +# SPDX-License-Identifier: BSD-2-Clause +# +# This file is part of the CoAP library libcoap. Please see README for terms +# of use. + cmake_minimum_required(VERSION 3.10) project( diff --git a/Makefile.am b/Makefile.am index f76a8418..7cb01183 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,10 @@ # Makefile.am for libcoap # -# Copyright (C) 2010-2019,2021 Olaf Bergmann -# (C) 2015-2017 Carsten Schoenert +# Copyright (C) 2010-2021,2021 Olaf Bergmann +# Copyright (C) 2015-2017 Carsten Schoenert +# Copyright (C) 2018-2021 Jon Shallow +# +# SPDX-License-Identifier: BSD-2-Clause # # This file is part of the CoAP C library libcoap. Please see README and # COPYING for terms of use. diff --git a/cmake_coap_config.h.in b/cmake_coap_config.h.in index fe032fa4..53db4252 100644 --- a/cmake_coap_config.h.in +++ b/cmake_coap_config.h.in @@ -1,3 +1,13 @@ +/* + * cmake_coap_config.h -- cmake configuration for libcoap + * + * Copyright (C) 2020 Carlos Gomes Martinho + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ #ifndef COAP_CONFIG_H_ #define COAP_CONFIG_H_ diff --git a/coap_config.h.lwip b/coap_config.h.lwip index 4b432a32..4b66d557 100644 --- a/coap_config.h.lwip +++ b/coap_config.h.lwip @@ -1,3 +1,14 @@ +/* + * coap_config.h.lwip -- LwIP configuration for libcoap + * + * Copyright (C) 2021 Olaf Bergmann and others + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #ifndef COAP_CONFIG_H_ #define COAP_CONFIG_H_ diff --git a/coap_config.h.lwip.in b/coap_config.h.lwip.in index 576aedc7..a5af3d85 100644 --- a/coap_config.h.lwip.in +++ b/coap_config.h.lwip.in @@ -1,3 +1,14 @@ +/* + * coap_config.h.lwip -- LwIP configuration for libcoap + * + * Copyright (C) 2021 Olaf Bergmann and others + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #ifndef COAP_CONFIG_H_ #define COAP_CONFIG_H_ diff --git a/coap_config.h.riot b/coap_config.h.riot index 9b44bf38..d202ddcd 100644 --- a/coap_config.h.riot +++ b/coap_config.h.riot @@ -1,3 +1,14 @@ +/* + * coap_config.h.riot -- RIOT configuration for libcoap + * + * Copyright (C) 2021 Olaf Bergmann and others + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #ifndef COAP_CONFIG_H_RIOT_ #define COAP_CONFIG_H_RIOT_ diff --git a/coap_config.h.riot.in b/coap_config.h.riot.in index a5a3907b..a8b2972f 100644 --- a/coap_config.h.riot.in +++ b/coap_config.h.riot.in @@ -1,3 +1,14 @@ +/* + * coap_config.h.riot -- RIOT configuration for libcoap + * + * Copyright (C) 2021 Olaf Bergmann and others + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #ifndef COAP_CONFIG_H_RIOT_ #define COAP_CONFIG_H_RIOT_ diff --git a/configure.ac b/configure.ac index b73ce59e..207b1764 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,13 @@ # configure.ac for the libcoap package # # Copyright (C) 2010-2021 Olaf Bergmann -# (C) 2015-2018 Carsten Schoenert +# Copyright (C) 2015-2018 Carsten Schoenert +# Copyright (C) 2018-2021 Jon Shallow +# +# SPDX-License-Identifier: BSD-2-Clause +# +# This file is part of the CoAP library libcoap. Please see README for terms +# of use. # # Please run 'autogen.sh' to let autoconf produce a configure script. diff --git a/doc/Makefile.am b/doc/Makefile.am index 46c2fffc..4f537ebb 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -3,6 +3,8 @@ # Copyright (C) 2015-2018 Carsten Schoenert # 2018 Jon Shallow # +# SPDX-License-Identifier: BSD-2-Clause +# # This file is part of the CoAP C library libcoap. Please see README and # COPYING for terms of use. diff --git a/examples/Makefile.am b/examples/Makefile.am index 32471fcc..e32a41f3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,6 +1,9 @@ # examples/Makefile.am # # Copyright (C) 2015 Carsten Schoenert +# Copyright (C) 2018-2021 Jon Shallow +# +# SPDX-License-Identifier: BSD-2-Clause # # This file is part of the CoAP C library libcoap. Please see README and # COPYING for terms of use. diff --git a/examples/coap-client.c b/examples/coap-client.c index 1e86d5a7..92f522ae 100644 --- a/examples/coap-client.c +++ b/examples/coap-client.c @@ -4,6 +4,8 @@ * * Copyright (C) 2010--2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms of * use. */ diff --git a/examples/coap-rd.c b/examples/coap-rd.c index 798e1e77..ad93f418 100644 --- a/examples/coap-rd.c +++ b/examples/coap-rd.c @@ -5,6 +5,8 @@ * * Copyright (C) 2010--2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms of * use. */ diff --git a/examples/coap-server.c b/examples/coap-server.c index 8bc5671b..0c6a19fa 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -5,6 +5,8 @@ * * Copyright (C) 2010--2021 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/examples/coap_list.c b/examples/coap_list.c index 9f48079d..1f71c5aa 100644 --- a/examples/coap_list.c +++ b/examples/coap_list.c @@ -4,6 +4,8 @@ * * Copyright (C) 2010,2011,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms of * use. */ diff --git a/examples/coap_list.h b/examples/coap_list.h index 3ce29fd1..81b7839b 100644 --- a/examples/coap_list.h +++ b/examples/coap_list.h @@ -4,6 +4,8 @@ * * Copyright (C) 2010,2011,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms of * use. */ diff --git a/examples/etsi_iot_01.c b/examples/etsi_iot_01.c index 0c991ec1..7a98ef7d 100644 --- a/examples/etsi_iot_01.c +++ b/examples/etsi_iot_01.c @@ -2,6 +2,8 @@ * * Copyright (C) 2012--2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/examples/lwip/lwipopts.h b/examples/lwip/lwipopts.h index d6d6de67..2a86b855 100644 --- a/examples/lwip/lwipopts.h +++ b/examples/lwip/lwipopts.h @@ -1,3 +1,15 @@ +/* + * lwipopts.h -- LwIP example + * + * Copyright (C) 2013-2016 Christian Amsüss + * Copyright (C) 2018 John Shallow + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + typedef unsigned int sys_prot_t; #define NO_SYS 1 diff --git a/examples/lwip/server-coap.c b/examples/lwip/server-coap.c index 6beae533..ee021ca0 100644 --- a/examples/lwip/server-coap.c +++ b/examples/lwip/server-coap.c @@ -1,3 +1,15 @@ +/* + * server-coap.h -- LwIP example + * + * Copyright (C) 2013-2016 Christian Amsüss + * Copyright (C) 2018-2021 Jon Shallow + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #include "coap_config.h" #include diff --git a/examples/lwip/server-coap.h b/examples/lwip/server-coap.h index ff0ec9a9..e4597755 100644 --- a/examples/lwip/server-coap.h +++ b/examples/lwip/server-coap.h @@ -1,3 +1,14 @@ +/* + * server-coap.h -- LwIP example + * + * Copyright (C) 2013-2016 Christian Amsüss + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + #include "coap_config.h" #include diff --git a/examples/tiny.c b/examples/tiny.c index 93ffba65..e7036fc7 100644 --- a/examples/tiny.c +++ b/examples/tiny.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010,2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/include/coap3/address.h b/include/coap3/address.h index 857fd8c3..8b8d9a24 100644 --- a/include/coap3/address.h +++ b/include/coap3/address.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011,2015-2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/async.h b/include/coap3/async.h index f0029e8b..a61e0c09 100644 --- a/include/coap3/async.h +++ b/include/coap3/async.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/block.h b/include/coap3/block.h index 148deb0a..a2aac00f 100644 --- a/include/coap3/block.h +++ b/include/coap3/block.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2012,2014-2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap.h.in b/include/coap3/coap.h.in index d805c551..77e234a9 100644 --- a/include/coap3/coap.h.in +++ b/include/coap3/coap.h.in @@ -1,9 +1,11 @@ /* * coap.h -- main header file for CoAP stack of libcoap * - * Copyright (C) 2010-2012,2015-2017 Olaf Bergmann + * Copyright (C) 2010-2012,2015-2021 Olaf Bergmann * 2015 Carsten Schoenert * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap.h.windows b/include/coap3/coap.h.windows index 8d3cb0d2..9b681648 100644 --- a/include/coap3/coap.h.windows +++ b/include/coap3/coap.h.windows @@ -1,9 +1,11 @@ /* * coap.h -- main header file for CoAP stack of libcoap * - * Copyright (C) 2010-2012,2015-2017 Olaf Bergmann + * Copyright (C) 2010-2012,2015-2021 Olaf Bergmann * 2015 Carsten Schoenert * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap.h.windows.in b/include/coap3/coap.h.windows.in index d805c551..77e234a9 100644 --- a/include/coap3/coap.h.windows.in +++ b/include/coap3/coap.h.windows.in @@ -1,9 +1,11 @@ /* * coap.h -- main header file for CoAP stack of libcoap * - * Copyright (C) 2010-2012,2015-2017 Olaf Bergmann + * Copyright (C) 2010-2012,2015-2021 Olaf Bergmann * 2015 Carsten Schoenert * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_asn1_internal.h b/include/coap3/coap_asn1_internal.h index a8cd9032..5bb4e2a8 100644 --- a/include/coap3/coap_asn1_internal.h +++ b/include/coap3/coap_asn1_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2020 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_async_internal.h b/include/coap3/coap_async_internal.h index 15ffb103..a23b1c8e 100644 --- a/include/coap3/coap_async_internal.h +++ b/include/coap3/coap_async_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_block_internal.h b/include/coap3/coap_block_internal.h index fab20696..9abe8155 100644 --- a/include/coap3/coap_block_internal.h +++ b/include/coap3/coap_block_internal.h @@ -5,6 +5,8 @@ * Copyright (C) 2010-2021 Olaf Bergmann * Copyright (C) 2021 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_cache.h b/include/coap3/coap_cache.h index 60c735d7..a8d2fd7a 100644 --- a/include/coap3/coap_cache.h +++ b/include/coap3/coap_cache.h @@ -2,6 +2,8 @@ * * Copyright (C) 2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/include/coap3/coap_cache_internal.h b/include/coap3/coap_cache_internal.h index 4fdd8cf5..29c07568 100644 --- a/include/coap3/coap_cache_internal.h +++ b/include/coap3/coap_cache_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2019--2020 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_debug.h b/include/coap3/coap_debug.h index e21fb2ef..f8f70f64 100644 --- a/include/coap3/coap_debug.h +++ b/include/coap3/coap_debug.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011,2014 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_dtls.h b/include/coap3/coap_dtls.h index c83dda42..cbd369df 100644 --- a/include/coap3/coap_dtls.h +++ b/include/coap3/coap_dtls.h @@ -4,6 +4,8 @@ * Copyright (C) 2016 Olaf Bergmann * Copyright (C) 2017 Jean-Claude Michelou * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_dtls_internal.h b/include/coap3/coap_dtls_internal.h index 3d4bf148..8ea09a4e 100644 --- a/include/coap3/coap_dtls_internal.h +++ b/include/coap3/coap_dtls_internal.h @@ -4,6 +4,8 @@ * Copyright (C) 2016 Olaf Bergmann * Copyright (C) 2017 Jean-Claude Michelou * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_event.h b/include/coap3/coap_event.h index 77f21175..89b2a639 100644 --- a/include/coap3/coap_event.h +++ b/include/coap3/coap_event.h @@ -3,6 +3,8 @@ * * Copyright (C) 2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_forward_decls.h b/include/coap3/coap_forward_decls.h index 9f89b656..3bedbf78 100644 --- a/include/coap3/coap_forward_decls.h +++ b/include/coap3/coap_forward_decls.h @@ -4,6 +4,8 @@ * * Copyright (C) 2019-2021 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_hashkey.h b/include/coap3/coap_hashkey.h index 2d568784..11a797bd 100644 --- a/include/coap3/coap_hashkey.h +++ b/include/coap3/coap_hashkey.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_internal.h b/include/coap3/coap_internal.h index 36b55d31..5eee5c12 100644 --- a/include/coap3/coap_internal.h +++ b/include/coap3/coap_internal.h @@ -4,6 +4,8 @@ * * Copyright (C) 2019-2021 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_io.h b/include/coap3/coap_io.h index 56d0a15f..b27921f8 100644 --- a/include/coap3/coap_io.h +++ b/include/coap3/coap_io.h @@ -3,6 +3,8 @@ * * Copyright (C) 2012-2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_io_internal.h b/include/coap3/coap_io_internal.h index f281e9ae..241ef7f9 100644 --- a/include/coap3/coap_io_internal.h +++ b/include/coap3/coap_io_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2012-2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_mutex.h b/include/coap3/coap_mutex.h index 963a505a..44084fec 100644 --- a/include/coap3/coap_mutex.h +++ b/include/coap3/coap_mutex.h @@ -4,6 +4,8 @@ * Copyright (C) 2019 Jon Shallow * 2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_net_internal.h b/include/coap3/coap_net_internal.h index 2c06613f..bf243f3d 100644 --- a/include/coap3/coap_net_internal.h +++ b/include/coap3/coap_net_internal.h @@ -4,6 +4,8 @@ * * Copyright (C) 2010-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_pdu_internal.h b/include/coap3/coap_pdu_internal.h index 35021901..0d8446c0 100644 --- a/include/coap3/coap_pdu_internal.h +++ b/include/coap3/coap_pdu_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_prng.h b/include/coap3/coap_prng.h index 46bf1fb7..6d297afa 100644 --- a/include/coap3/coap_prng.h +++ b/include/coap3/coap_prng.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_resource_internal.h b/include/coap3/coap_resource_internal.h index 0e06c618..cbcc36a6 100644 --- a/include/coap3/coap_resource_internal.h +++ b/include/coap3/coap_resource_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010,2011,2014-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_riot.h b/include/coap3/coap_riot.h index 6377392b..fc4bfa2e 100644 --- a/include/coap3/coap_riot.h +++ b/include/coap3/coap_riot.h @@ -2,6 +2,8 @@ * * Copyright (C) 2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/include/coap3/coap_session.h b/include/coap3/coap_session.h index f9d048c6..6c49b78e 100644 --- a/include/coap3/coap_session.h +++ b/include/coap3/coap_session.h @@ -2,6 +2,8 @@ * * Copyright (C) 2017 Jean-Claue Michelou * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/include/coap3/coap_session_internal.h b/include/coap3/coap_session_internal.h index 11e86f20..1fd2de9e 100644 --- a/include/coap3/coap_session_internal.h +++ b/include/coap3/coap_session_internal.h @@ -4,6 +4,8 @@ * * Copyright (C) 2010-2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_subscribe_internal.h b/include/coap3/coap_subscribe_internal.h index 215c7191..b7702362 100644 --- a/include/coap3/coap_subscribe_internal.h +++ b/include/coap3/coap_subscribe_internal.h @@ -4,6 +4,8 @@ * * Copyright (C) 2010-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_tcp_internal.h b/include/coap3/coap_tcp_internal.h index c56d8d7b..4fd31b38 100644 --- a/include/coap3/coap_tcp_internal.h +++ b/include/coap3/coap_tcp_internal.h @@ -3,6 +3,8 @@ * * Copyright (C) 2019--2020 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/coap_time.h b/include/coap3/coap_time.h index ab3ae47b..baa8650e 100644 --- a/include/coap3/coap_time.h +++ b/include/coap3/coap_time.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/encode.h b/include/coap3/encode.h index 11efb782..a79146fc 100644 --- a/include/coap3/encode.h +++ b/include/coap3/encode.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2012 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/libcoap.h b/include/coap3/libcoap.h index 53c2e908..60ca3b64 100644 --- a/include/coap3/libcoap.h +++ b/include/coap3/libcoap.h @@ -3,6 +3,8 @@ * * Copyright (C) 2015 Carsten Schoenert * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/lwippools.h b/include/coap3/lwippools.h index acc810a0..445bce4a 100644 --- a/include/coap3/lwippools.h +++ b/include/coap3/lwippools.h @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/mem.h b/include/coap3/mem.h index e1bc2465..c4200896 100644 --- a/include/coap3/mem.h +++ b/include/coap3/mem.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011,2014-2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/net.h b/include/coap3/net.h index 64ef26b2..577a0b5d 100644 --- a/include/coap3/net.h +++ b/include/coap3/net.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/option.h b/include/coap3/option.h index cfc4dd94..c01e8f66 100644 --- a/include/coap3/option.h +++ b/include/coap3/option.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/pdu.h b/include/coap3/pdu.h index b0c4e78f..a22869b6 100644 --- a/include/coap3/pdu.h +++ b/include/coap3/pdu.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2014 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/resource.h b/include/coap3/resource.h index 5e2ac562..2cd9aea4 100644 --- a/include/coap3/resource.h +++ b/include/coap3/resource.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010,2011,2014-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/str.h b/include/coap3/str.h index 1da7cabf..dbf53d0c 100644 --- a/include/coap3/str.h +++ b/include/coap3/str.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/subscribe.h b/include/coap3/subscribe.h index 243a4f81..c3aabc2d 100644 --- a/include/coap3/subscribe.h +++ b/include/coap3/subscribe.h @@ -4,6 +4,8 @@ * * Copyright (C) 2010-2012,2014-2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/include/coap3/uri.h b/include/coap3/uri.h index 6c82ef81..8084483b 100644 --- a/include/coap3/uri.h +++ b/include/coap3/uri.h @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/man/examples-code-check.c b/man/examples-code-check.c index facbbfc5..6fc21748 100644 --- a/man/examples-code-check.c +++ b/man/examples-code-check.c @@ -5,6 +5,8 @@ * * Copyright (C) 2020 Jon Shallow * +* SPDX-License-Identifier: BSD-2-Clause +* * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/address.c b/src/address.c index 36c7d248..4a865539 100644 --- a/src/address.c +++ b/src/address.c @@ -2,6 +2,8 @@ * * Copyright (C) 2015-2016,2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/async.c b/src/async.c index 8ef4ca91..a4dbfc7e 100644 --- a/src/async.c +++ b/src/async.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010,2011,2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/block.c b/src/block.c index ce6ebdf9..e4a2152a 100644 --- a/src/block.c +++ b/src/block.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2012,2015-2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_asn1.c b/src/coap_asn1.c index 9fccebd5..f6c1979e 100644 --- a/src/coap_asn1.c +++ b/src/coap_asn1.c @@ -2,6 +2,8 @@ * * Copyright (C) 2020 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_cache.c b/src/coap_cache.c index 5891e463..21d75f60 100644 --- a/src/coap_cache.c +++ b/src/coap_cache.c @@ -2,6 +2,8 @@ * * Copyright (C) 2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_debug.c b/src/coap_debug.c index 664fdcbc..834608c8 100644 --- a/src/coap_debug.c +++ b/src/coap_debug.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2012,2014--2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_event.c b/src/coap_event.c index 8e22f19c..0e32c3c7 100644 --- a/src/coap_event.c +++ b/src/coap_event.c @@ -3,6 +3,8 @@ * * Copyright (C) 2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_gnutls.c b/src/coap_gnutls.c index 1fe521c7..661967b1 100644 --- a/src/coap_gnutls.c +++ b/src/coap_gnutls.c @@ -4,6 +4,8 @@ * Copyright (C) 2017 Dag Bjorklund * Copyright (C) 2018-2021 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_hashkey.c b/src/coap_hashkey.c index b9f3906c..491c663d 100644 --- a/src/coap_hashkey.c +++ b/src/coap_hashkey.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010,2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_io.c b/src/coap_io.c index a4be2c45..2e5a602a 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -2,6 +2,8 @@ * * Copyright (C) 2012,2014,2016-2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_io_lwip.c b/src/coap_io_lwip.c index 0bef7058..c41ec939 100644 --- a/src/coap_io_lwip.c +++ b/src/coap_io_lwip.c @@ -3,6 +3,8 @@ * Copyright (C) 2012,2014 Olaf Bergmann * 2014 chrysn * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_io_riot.c b/src/coap_io_riot.c index 22939dae..07238866 100644 --- a/src/coap_io_riot.c +++ b/src/coap_io_riot.c @@ -2,6 +2,8 @@ * * Copyright (C) 2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_mbedtls.c b/src/coap_mbedtls.c index a0e404a7..a4b96612 100644 --- a/src/coap_mbedtls.c +++ b/src/coap_mbedtls.c @@ -4,6 +4,8 @@ * Copyright (C) 2019-2021 Jon Shallow * 2019 Jitin George * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_notls.c b/src/coap_notls.c index 1ce9e817..374d7036 100644 --- a/src/coap_notls.c +++ b/src/coap_notls.c @@ -3,6 +3,8 @@ * * Copyright (C) 2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_openssl.c b/src/coap_openssl.c index 4c27088d..8026e7a6 100644 --- a/src/coap_openssl.c +++ b/src/coap_openssl.c @@ -4,6 +4,8 @@ * Copyright (C) 2017 Jean-Claude Michelou * Copyright (C) 2018 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_prng.c b/src/coap_prng.c index 39df4d41..18470dc9 100644 --- a/src/coap_prng.c +++ b/src/coap_prng.c @@ -3,6 +3,8 @@ * * Copyright (C) 2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README * for terms of use. */ diff --git a/src/coap_session.c b/src/coap_session.c index 7b588019..77cae598 100644 --- a/src/coap_session.c +++ b/src/coap_session.c @@ -2,6 +2,8 @@ * * Copyright (C) 2017 Jean-Claue Michelou * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_tcp.c b/src/coap_tcp.c index 9fa51aca..aa2f6ebb 100644 --- a/src/coap_tcp.c +++ b/src/coap_tcp.c @@ -3,6 +3,8 @@ * * Copyright (C) 2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/coap_time.c b/src/coap_time.c index 466f7694..64b00ece 100644 --- a/src/coap_time.c +++ b/src/coap_time.c @@ -2,6 +2,8 @@ * * Copyright (C) 2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/coap_tinydtls.c b/src/coap_tinydtls.c index e548c30f..99c01c82 100644 --- a/src/coap_tinydtls.c +++ b/src/coap_tinydtls.c @@ -4,6 +4,8 @@ * Copyright (C) 2016-2020 Olaf Bergmann * Copyright (C) 2020 Jon Shallow * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see README for terms * of use. */ diff --git a/src/encode.c b/src/encode.c index 0df69fd2..8299027f 100644 --- a/src/encode.c +++ b/src/encode.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010,2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/mem.c b/src/mem.c index 8572a294..953d556e 100644 --- a/src/mem.c +++ b/src/mem.c @@ -2,6 +2,8 @@ * * Copyright (C) 2014--2015,2019--2020 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/net.c b/src/net.c index d8989dc0..c7c05951 100644 --- a/src/net.c +++ b/src/net.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2019 Olaf Bergmann and others * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/option.c b/src/option.c index f4f649a6..88c7b79e 100644 --- a/src/option.c +++ b/src/option.c @@ -3,6 +3,8 @@ * * Copyright (C) 2010-2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/pdu.c b/src/pdu.c index 8a600dbb..604114c1 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/resource.c b/src/resource.c index d94fbd59..dc12ff60 100644 --- a/src/resource.c +++ b/src/resource.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/str.c b/src/str.c index ef7e2c3d..a24d4cd2 100644 --- a/src/str.c +++ b/src/str.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010,2011 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/subscribe.c b/src/subscribe.c index 345fd82d..e497a880 100644 --- a/src/subscribe.c +++ b/src/subscribe.c @@ -3,6 +3,8 @@ * * Copyright (C) 2010--2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/src/uri.c b/src/uri.c index 5fae0821..42cc3d5b 100644 --- a/src/uri.c +++ b/src/uri.c @@ -2,6 +2,8 @@ * * Copyright (C) 2010--2012,2015-2016 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/Makefile.am b/tests/Makefile.am index 46fef800..bec6dfaf 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,9 @@ -# doc/Makefile.am +# tests/Makefile.am # # Copyright (C) 2015-2016 Carsten Schoenert # +# SPDX-License-Identifier: BSD-2-Clause +# # This file is part of the CoAP C library libcoap. Please see README and # COPYING for terms of use. diff --git a/tests/oss-fuzz/Makefile.ci.in b/tests/oss-fuzz/Makefile.ci.in index a840a6ad..69e377ba 100644 --- a/tests/oss-fuzz/Makefile.ci.in +++ b/tests/oss-fuzz/Makefile.ci.in @@ -1,4 +1,11 @@ # -*- Mode: Makefile for CI checks -*- +# +# Copyright (C) 2019--2020 Olaf Bergmann and others +# +# SPDX-License-Identifier: BSD-2-Clause +# +# This file is part of the CoAP library libcoap. Please see README for terms +# of use. top_builddir?=@top_builddir@ top_srcdir?=@top_srcdir@ diff --git a/tests/test_common.h.in b/tests/test_common.h.in index 0b50705c..4d3dcd31 100644 --- a/tests/test_common.h.in +++ b/tests/test_common.h.in @@ -2,6 +2,8 @@ * * Copyright (C) 2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_encode.c b/tests/test_encode.c index 8e06c559..f9092d63 100644 --- a/tests/test_encode.c +++ b/tests/test_encode.c @@ -2,6 +2,8 @@ * * Copyright (C) 2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_encode.h b/tests/test_encode.h index 0ef33ffb..2db380cd 100644 --- a/tests/test_encode.h +++ b/tests/test_encode.h @@ -2,6 +2,8 @@ * * Copyright (C) 2019 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_error_response.c b/tests/test_error_response.c index d8526e45..2ac733d9 100644 --- a/tests/test_error_response.c +++ b/tests/test_error_response.c @@ -2,6 +2,8 @@ * * Copyright (C) 2013,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_error_response.h b/tests/test_error_response.h index 5ae3cea3..4a0af630 100644 --- a/tests/test_error_response.h +++ b/tests/test_error_response.h @@ -2,6 +2,8 @@ * * Copyright (C) 2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_options.c b/tests/test_options.c index c052645c..9da965d0 100644 --- a/tests/test_options.c +++ b/tests/test_options.c @@ -2,6 +2,8 @@ * * Copyright (C) 2012,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_options.h b/tests/test_options.h index 3e133ac2..d30af7f1 100644 --- a/tests/test_options.h +++ b/tests/test_options.h @@ -2,6 +2,8 @@ * * Copyright (C) 2012 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_pdu.c b/tests/test_pdu.c index 9b0373dc..86d71909 100644 --- a/tests/test_pdu.c +++ b/tests/test_pdu.c @@ -2,6 +2,8 @@ * * Copyright (C) 2012,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_pdu.h b/tests/test_pdu.h index a052240b..5c21973f 100644 --- a/tests/test_pdu.h +++ b/tests/test_pdu.h @@ -2,6 +2,8 @@ * * Copyright (C) 2012 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_sendqueue.c b/tests/test_sendqueue.c index 9fe4fae6..78c75da5 100644 --- a/tests/test_sendqueue.c +++ b/tests/test_sendqueue.c @@ -2,6 +2,8 @@ * * Copyright (C) 2013,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_sendqueue.h b/tests/test_sendqueue.h index 694072b9..b272090a 100644 --- a/tests/test_sendqueue.h +++ b/tests/test_sendqueue.h @@ -2,6 +2,8 @@ * * Copyright (C) 2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_session.c b/tests/test_session.c index 1eec9d11..09353a98 100644 --- a/tests/test_session.c +++ b/tests/test_session.c @@ -2,6 +2,8 @@ * * Copyright (C) 2013,2015-2018 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_session.h b/tests/test_session.h index 560f627c..f598b57f 100644 --- a/tests/test_session.h +++ b/tests/test_session.h @@ -2,6 +2,8 @@ * * Copyright (C) 2018 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_tls.c b/tests/test_tls.c index ffb1262e..7e7f63b5 100644 --- a/tests/test_tls.c +++ b/tests/test_tls.c @@ -2,6 +2,8 @@ * * Copyright (C) 2018 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_tls.h b/tests/test_tls.h index 9e760d82..649cca75 100644 --- a/tests/test_tls.h +++ b/tests/test_tls.h @@ -2,6 +2,8 @@ * * Copyright (C) 2018 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_uri.c b/tests/test_uri.c index f24b68b2..e0da4985 100644 --- a/tests/test_uri.c +++ b/tests/test_uri.c @@ -2,6 +2,8 @@ * * Copyright (C) 2012,2015 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_uri.h b/tests/test_uri.h index ca960905..1c31f284 100644 --- a/tests/test_uri.h +++ b/tests/test_uri.h @@ -2,6 +2,8 @@ * * Copyright (C) 2012 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_wellknown.c b/tests/test_wellknown.c index ebcc3f5a..fe27b7c6 100644 --- a/tests/test_wellknown.c +++ b/tests/test_wellknown.c @@ -2,6 +2,8 @@ * * Copyright (C) 2013--2021 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/test_wellknown.h b/tests/test_wellknown.h index 8ba1d6d3..591057c4 100644 --- a/tests/test_wellknown.h +++ b/tests/test_wellknown.h @@ -2,6 +2,8 @@ * * Copyright (C) 2013 Olaf Bergmann * + * SPDX-License-Identifier: BSD-2-Clause + * * This file is part of the CoAP library libcoap. Please see * README for terms of use. */ diff --git a/tests/testdriver.c b/tests/testdriver.c index 93b5292e..24cdc5e5 100644 --- a/tests/testdriver.c +++ b/tests/testdriver.c @@ -1,3 +1,13 @@ +/* libcoap unit tests + * + * Copyright (C) 2012-2021 Olaf Bergmann + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see + * README for terms of use. + */ + #include #include