diff --git a/.appveyor.yml b/.appveyor.yml index 3cd0a753a..28c3cef28 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 Intel +# SPDX-FileCopyrightText: 2024 Philipp Unger +# SPDX-License-Identifier: BSD-2-Clause + version: '{build}' pull_requests: do_not_increment_build_number: true diff --git a/.ci/coverity.run b/.ci/coverity.run index 2b5416a23..edb3947ba 100755 --- a/.ci/coverity.run +++ b/.ci/coverity.run @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019 - 2021 Intel # SPDX-License-Identifier: BSD-3-Clause set -eo pipefail diff --git a/.ci/docker-prelude.sh b/.ci/docker-prelude.sh index 9fb9ad8e2..4b92b6bf5 100755 --- a/.ci/docker-prelude.sh +++ b/.ci/docker-prelude.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019 - 2021 Intel +# SPDX-FileCopyrightText: 2022 Fraunhofer SIT sponsored by Infineon # SPDX-License-Identifier: BSD-3-Clause # all command failures are fatal diff --git a/.ci/docker.env b/.ci/docker.env index ef4fb2d58..6b56b3cd5 100644 --- a/.ci/docker.env +++ b/.ci/docker.env @@ -1,3 +1,4 @@ +# SPDX-FileCopyrightText: 2019 - 2021 Intel # SPDX-License-Identifier: BSD-3-Clause diff --git a/.ci/docker.run b/.ci/docker.run index c45c8ad52..3e5341789 100755 --- a/.ci/docker.run +++ b/.ci/docker.run @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019 - 2022 Intel +# SPDX-FileCopyrightText: 2022 - 2023 Juergen Repp # SPDX-License-Identifier: BSD-3-Clause set -eo pipefail diff --git a/.ci/download-deps.sh b/.ci/download-deps.sh index 93283f28a..64a173be8 100755 --- a/.ci/download-deps.sh +++ b/.ci/download-deps.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019 Intel +# SPDX-FileCopyrightText: 2019 Fraunhofer SIT sponsored by Infineon # SPDX-License-Identifier: BSD-3-Clause function get_deps() { diff --git a/.cirrus.yml b/.cirrus.yml index 2b638f8a2..2b60c8b69 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2020 - 2021 Intel +# SPDX-FileCopyrightText: 2020 - 2021 Fraunhofer SIT sponsored by Infineon +# SPDX-FileCopyrightText: 2021 - 2022 Infineon Technologies AG +# SPDX-FileCopyrightText: 2023 - 2024 Juergen Repp +# SPDX-License-Identifier: BSD-2-Clause + task: env: CFLAGS: "-I/usr/local/include -I/usr/local/openssl/include" diff --git a/.codecov.yml b/.codecov.yml index 9731d4e24..a7cf00bcd 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2019 Fraunhofer SIT sponsored by Infineon +# SPDX-License-Identifier: BSD-2-Clause + ignore: - "test" diff --git a/.dockerignore b/.dockerignore index b756f2083..e6034b1bb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2019 Intel +# SPDX-License-Identifier: BSD-2-Clause + test/fuzz/*.fuzz* diff --git a/.gitattributes b/.gitattributes index 52d1a90b3..503e17069 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2015 Intel +# SPDX-License-Identifier: BSD-2-Clause + # Set the default behavior, in case people don't have core.autocrlf set. * text=auto diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 86fcb01c1..f297a5dba 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Intel +# SPDX-License-Identifier: BSD-2-Clause + name: CIFuzz on: [pull_request] jobs: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 92cf98982..aea0dca29 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2022 - 2023 Intel +# SPDX-FileCopyrightText: 2022 Infineon Technologies AG +# SPDX-License-Identifier: BSD-2-Clause + name: "CodeQL" on: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c7fadd66..592868bef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,8 @@ +# SPDX-FileCopyrightText: 2020 - 2022 Intel +# SPDX-FileCopyrightText: 2021 - 2022 Fraunhofer SIT sponsored by Infineon +# SPDX-FileCopyrightText: 2024 Juergen Repp +# SPDX-License-Identifier: BSD-2-Clause + name: CI on: [push, pull_request] diff --git a/.lgtm.yml b/.lgtm.yml index 8144ca5f4..32187099e 100644 --- a/.lgtm.yml +++ b/.lgtm.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 Jonas Witschel +# SPDX-FileCopyrightText: 2021 Infineon Technologies AG +# SPDX-License-Identifier: BSD-2-Clause + extraction: cpp: prepare: diff --git a/.readthedocs.yml b/.readthedocs.yml index 17ee24133..781aa0dca 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 Infineon Technologies AG +# SPDX-FileCopyrightText: 2024 Juergen Repp +# SPDX-License-Identifier: BSD-2-Clause + # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details @@ -8,4 +12,4 @@ build: python: "3" sphinx: builder: html - configuration: sphinx/conf.py \ No newline at end of file + configuration: sphinx/conf.py diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100644 index 000000000..570b2ff0f --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,90 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: + *.md + doc/*.png + doc/*.md + doc/doxygen.dox +Copyright: 2016-2024 tpm2-software community +License: TODO + +Files: + man/*.in + man/*.troff +Copyright: 2017 - 2022 Intel + 2017 Doug Goldstein + 2017 - 2020 Red Hat + 2018 - 2022 Fraunhofer SIT sponsored by Infineon + 2020 - 2024 Infineon Technologies AG +License: TODO + +Files: + dist/fapi-config.json.in + dist/fapi-profiles/*.json +Copyright: 2019-2022 Fraunhofer SIT sponsored by Infineon +License: BSD-2-Clause + +Files: + dist/sysusers.d/tpm2-tss.conf +Copyright: 2020 Jonas Witschel +License: BSD-2-Clause + +Files: + dist/tmpfiles.d/tpm2-tss-fapi.conf.in +Copyright: 2020 Jonas Witschel + 2022 Erik Larsson + 2023 Dan De Meyer +License: BSD-2-Clause + +Files: + dist/tpm-udev.rules +Copyright: TODO +License: BSD-2-Clause + +Files: + lib/*.def + lib/*.map + lib/*.pc.in +Copyright: 2016 - 2022 Intel + 2018 - 2022 Fraunhofer SIT sponsored by Infineon + 2018 - 2018 David J. Maria @ fb.com + 2019 Jonas Witschel + 2019 - 2022 Erik Larsson + 2020 - 2024 Infineon Technologies AG +License: BSD-2-Clause + +Files: + test/data/fapi/*.json + test/data/fapi/eventlog/*.b64 + test/data/fapi/policy/*.pem + test/data/fapi/policy/pol_*.json +Copyright: 2019-2022 Fraunhofer SIT sponsored by Infineon +License: BSD-2-Clause + +Files: + src/tss2-esys/openssl.props + src/tss2-esys/tss2-esys.vcxproj + src/tss2-mu/tss2-mu.vcxproj + src/tss2-rc/tss2-rc.vcxproj + src/tss2-sys/tss2-sys.vcxproj + src/tss2-tcti/tss2-tcti-mssim.vcxproj + src/tss2-tcti/tss2-tcti-swtpm.vcxproj + src/tss2-tcti/tss2-tcti-tbs.vcxproj + src/tss2-tcti/tss2-tctildr.vcxproj + tpm2-tss.sln +Copyright: 2018 David J. Maria @ fb.com + 2018 - 2022 Intel + 2021 Petr Gotthard + 2024 Philipp Unger +License: BSD-2-Clause + +Files: + git.mk +Copyright: 2009 Red Hat, Inc. + 2010 - 2013 Behdad Esfahbod +License: TODO + +Files: + m4/ld-version-script.m4 +Copyright: 2008 - 2019 Free Software Foundation, Inc. +License: FSFULLR diff --git a/Doxyfile.in b/Doxyfile.in index 9e76e641a..aeae3fcc7 100644 --- a/Doxyfile.in +++ b/Doxyfile.in @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: TODO +# +# SPDX-License-Identifier: BSD-2-Clause + # Unfortunately AC_CONFIG_FILES is too intelligent if this file lives inside the # /doc subdirectory; i.e. it will set @top_srcdir@ to ".." which screws up all # doxygen generation. Thus this file needs to live on top-level until anybody diff --git a/afl-fuzzing/fuzz-ima.sh b/afl-fuzzing/fuzz-ima.sh index 9787b875a..8f3ce09da 100755 --- a/afl-fuzzing/fuzz-ima.sh +++ b/afl-fuzzing/fuzz-ima.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 - 2023 Juergen Repp # SPDX-License-Identifier: BSD-2-Clause #set -x export srcdir=$(pwd) diff --git a/afl-fuzzing/fuzz-system.sh b/afl-fuzzing/fuzz-system.sh index 27da309cb..4981c64b4 100755 --- a/afl-fuzzing/fuzz-system.sh +++ b/afl-fuzzing/fuzz-system.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2022 - 2023 Juergen Repp # SPDX-License-Identifier: BSD-2-Clause #set -x export srcdir=$(pwd) diff --git a/bootstrap b/bootstrap index f70ff0366..9601eb825 100755 --- a/bootstrap +++ b/bootstrap @@ -1,4 +1,11 @@ #!/bin/sh +# SPDX-FileCopyrightText: 2015 - 2022 Intel +# SPDX-FileCopyrightText: 2017 Bernhard M. Wiedemann +# SPDX-FileCopyrightText: 2017 David Bild +# SPDX-FileCopyrightText: 2018 - 2019 Fraunhofer SIT sponsored by Infineon +# SPDX-FileCopyrightText: 2023 Infineon Technologies AG +# SPDX-License-Identifier: BSD-2-Clause + set -e git describe --tags --always --dirty > VERSION diff --git a/doc/coding_standard_c.md b/doc/coding_standard_c.md index 52767d9c7..a4a7bbfca 100644 --- a/doc/coding_standard_c.md +++ b/doc/coding_standard_c.md @@ -275,6 +275,15 @@ some_long_variable_name = some_long_function_name (lots_of_parameters_1, ``` These formatting conditions are contrary to Kernighan and Ritchie's "one true brace style" [3]. +## Licenses + +All files shall contain `SPDX-FileCopyrightText` and `SPDX-License-Identifier` +information in their header. +For files that cannot contain them (e.g. Markdown would render it and +.def and .map files should not have them), the corresponding entry shall +be included in the .reuse/dep5 file. +There will be a CI job to check `reuse lint` on this project. + ## References 1. GNOME C Coding Style : https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en 2. Alan Bridger, Mick Brooks, and Jim Pisano, C Coding Standards, 2001, http://www.alma.nrao.edu/development/computing/docs/joint/0009/2001-02-28.pdf diff --git a/m4/flags.m4 b/m4/flags.m4 index c7b9a1cf6..337726044 100644 --- a/m4/flags.m4 +++ b/m4/flags.m4 @@ -1,3 +1,6 @@ +dnl SPDX-FileCopyrightText: 2017 - 2019, Intel */ +dnl SPDX-License-Identifier: BSD-2-Clause */ + dnl ADD_COMPILER_FLAG: dnl A macro to add a CFLAG to the EXTRA_CFLAGS variable. This macro will dnl check to be sure the compiler supports the flag. Flags can be made diff --git a/m4/misc.m4 b/m4/misc.m4 index f05ef7a16..057522d3d 100644 --- a/m4/misc.m4 +++ b/m4/misc.m4 @@ -1,3 +1,7 @@ +dnl SPDX-FileCopyrightText: 2018, Intel */ +dnl SPDX-FileCopyrightText: 2019, Jonas Witschel */ +dnl SPDX-License-Identifier: BSD-2-Clause */ + dnl ERROR_IF_NO_PROG dnl A quick / dirty macro to ensure that a required program / executable dnl is on PATH. If it is not we display an error message using AC_MSG_ERROR. diff --git a/script/ekca/create_ca.sh b/script/ekca/create_ca.sh index 3a57ec07c..52ce2f8ec 100755 --- a/script/ekca/create_ca.sh +++ b/script/ekca/create_ca.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# SPDX-FileCopyrightText: 2019 - 2020 Fraunhofer SIT sponsored by Infineon +# SPDX-FileCopyrightText: 2020 Intel +# SPDX-FileCopyrightText: 2021 Petr Gotthard +# SPDX-FileCopyrightText: 2024 Juergen Repp +# SPDX-License-Identifier: BSD-2-Clause #set -x diff --git a/script/ekca/ek.cnf b/script/ekca/ek.cnf index e0edaff38..fc33a3a3b 100644 --- a/script/ekca/ek.cnf +++ b/script/ekca/ek.cnf @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2019 - 2020 Fraunhofer SIT sponsored by Infineon +# SPDX-License-Identifier: BSD-2-Clause + oid_section = tcg_oids [ tcg_oids ] diff --git a/script/ekca/init_ca.sh b/script/ekca/init_ca.sh index fd1864089..b7bd55377 100755 --- a/script/ekca/init_ca.sh +++ b/script/ekca/init_ca.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash - +# SPDX-FileCopyrightText: 2023 - 2024 Juergen Repp +# SPDX-License-Identifier: BSD-2-Clause #set -x #set -euf diff --git a/script/ekca/intermed-ca.cnf b/script/ekca/intermed-ca.cnf index 3a5c4cae6..49bff50ec 100644 --- a/script/ekca/intermed-ca.cnf +++ b/script/ekca/intermed-ca.cnf @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2019 - 2020 Fraunhofer SIT sponsored by Infineon +# SPDX-FileCopyrightText: 2021 Petr Gotthard +# SPDX-License-Identifier: BSD-2-Clause + # # OpenSSL configuration for the Intermediate Certification Authority. # diff --git a/script/ekca/root-ca.cnf b/script/ekca/root-ca.cnf index 9e1f6d8e2..dcf73cc3f 100644 --- a/script/ekca/root-ca.cnf +++ b/script/ekca/root-ca.cnf @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2019 - 2020 Fraunhofer SIT sponsored by Infineon +# SPDX-License-Identifier: BSD-2-Clause # # OpenSSL configuration for the Root Certification Authority. # diff --git a/sphinx/conf.py b/sphinx/conf.py index 9235b35dd..e36686e68 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -1,6 +1,11 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # +# SPDX-FileCopyrightText: 2019 Infineon Technologies AG +# SPDX-FileCopyrightText: 2019 Jonas Witschel +# SPDX-FileCopyrightText: 2021 - 2023 Intel +# SPDX-License-Identifier: BSD-2-Clause +# # tpm2-tss documentation build configuration file, created by # sphinx-quickstart on Thu Aug 29 14:00:06 2019. # diff --git a/src/tss2-esys/esys_crypto_mbed.c b/src/tss2-esys/esys_crypto_mbed.c index db6a5ed0f..b01d2687d 100644 --- a/src/tss2-esys/esys_crypto_mbed.c +++ b/src/tss2-esys/esys_crypto_mbed.c @@ -1,8 +1,5 @@ +/* SPDX-FileCopyrightText: 2020, Andreas Droescher */ /* SPDX-License-Identifier: BSD-2-Clause */ -/******************************************************************************* - * Copyright: 2020, Andreas Droescher - * All rights reserved. - ******************************************************************************/ #ifdef HAVE_CONFIG_H #include diff --git a/src/tss2-esys/esys_crypto_mbed.h b/src/tss2-esys/esys_crypto_mbed.h index 40a976bb0..788992bc8 100644 --- a/src/tss2-esys/esys_crypto_mbed.h +++ b/src/tss2-esys/esys_crypto_mbed.h @@ -1,8 +1,5 @@ +/* SPDX-FileCopyrightText: 2020, Andreas Droescher */ /* SPDX-License-Identifier: BSD-2-Clause */ -/******************************************************************************* - * Copyright: 2020, Andreas Droescher - * All rights reserved. - ******************************************************************************/ #ifndef ESYS_CRYPTO_MBED_H #define ESYS_CRYPTO_MBED_H diff --git a/src/tss2-esys/esys_free.c b/src/tss2-esys/esys_free.c index 5a2ee6493..8c847e4c2 100644 --- a/src/tss2-esys/esys_free.c +++ b/src/tss2-esys/esys_free.c @@ -1,4 +1,10 @@ +/* SPDX-FileCopyrightText: 2018, David J. Maria @ fb.com */ +/* SPDX-FileCopyrightText: 2018, Intel */ +/* SPDX-FileCopyrightText: 2019, Infineon Technologies AG */ +/* SPDX-FileCopyrightText: 2019, Alon Bar-Lev */ +/* SPDX-FileCopyrightText: 2019, Fraunhofer SIT sponsored by Infineon */ /* SPDX-License-Identifier: BSD-2-Clause */ + #ifdef HAVE_CONFIG_H #include #endif diff --git a/src/tss2-fapi/efi_event.h b/src/tss2-fapi/efi_event.h index 7c6b91842..9dcbc6ea5 100644 --- a/src/tss2-fapi/efi_event.h +++ b/src/tss2-fapi/efi_event.h @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2021, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef TCG_EFI_EVENT_H #define TCG_EFI_EVENT_H 1 diff --git a/src/tss2-fapi/ifapi_curl.c b/src/tss2-fapi/ifapi_curl.c index 976f36d00..9482d239e 100644 --- a/src/tss2-fapi/ifapi_curl.c +++ b/src/tss2-fapi/ifapi_curl.c @@ -1,3 +1,6 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ +/* SPDX-FileCopyrightText: 2022, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/src/tss2-fapi/ifapi_curl.h b/src/tss2-fapi/ifapi_curl.h index 70d1576f3..58b058316 100644 --- a/src/tss2-fapi/ifapi_curl.h +++ b/src/tss2-fapi/ifapi_curl.h @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef IFAPI_CURL_H #define IFAPI_CURL_H diff --git a/src/tss2-fapi/ifapi_get_web_cert.c b/src/tss2-fapi/ifapi_get_web_cert.c index d06e8d814..83facc5db 100644 --- a/src/tss2-fapi/ifapi_get_web_cert.c +++ b/src/tss2-fapi/ifapi_get_web_cert.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/src/tss2-policy/tss2_policy.c b/src/tss2-policy/tss2_policy.c index e8c6b2520..046b99c75 100644 --- a/src/tss2-policy/tss2_policy.c +++ b/src/tss2-policy/tss2_policy.c @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ +/* SPDX-FileCopyrightText: 2023, Infineon Technologies AG */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/src/tss2-rc/tss2_rc.c b/src/tss2-rc/tss2_rc.c index a3d5a6059..8d1052797 100644 --- a/src/tss2-rc/tss2_rc.c +++ b/src/tss2-rc/tss2_rc.c @@ -1,3 +1,8 @@ +/* SPDX-FileCopyrightText: 2019 - 2023, Intel */ +/* SPDX-FileCopyrightText: 2019, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2022, Erik Larsson */ +/* SPDX-FileCopyrightText: 2023 - 2024, Infineon Technologies AG */ +/* SPDX-FileCopyrightText: 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/src/tss2-tcti/tcti-cmd.h b/src/tss2-tcti/tcti-cmd.h index 923e66c5e..55e1ee980 100644 --- a/src/tss2-tcti/tcti-cmd.h +++ b/src/tss2-tcti/tcti-cmd.h @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2020, Intel */ +/* SPDX-FileCopyrightText: 2023, Infineon Technologies AG */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef TCTI_CMD_H diff --git a/src/util/log.c b/src/util/log.c index 9b5943727..8af1c7061 100644 --- a/src/util/log.c +++ b/src/util/log.c @@ -1,3 +1,9 @@ +/* SPDX-FileCopyrightText: 2018 - 2022, Intel */ +/* SPDX-FileCopyrightText: 2018 - 2020, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2019, Fabrice Funtaine */ +/* SPDX-FileCopyrightText: 2019, Alon Bar-Lev */ +/* SPDX-FileCopyrightText: 2019 - 2022, Infineon Technologies AG */ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/src/util/log.h b/src/util/log.h index ee7f114ae..eee4469dd 100644 --- a/src/util/log.h +++ b/src/util/log.h @@ -1,3 +1,8 @@ +/* SPDX-FileCopyrightText: 2018 - 2022, Intel */ +/* SPDX-FileCopyrightText: 2018, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2019, Alon Bar-Lev */ +/* SPDX-FileCopyrightText: 2019, Infineon Technologies AG */ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef LOG_H #define LOG_H diff --git a/test/data/test-fapi-policies.h b/test/data/test-fapi-policies.h index b4b574664..244d0e7a3 100644 --- a/test/data/test-fapi-policies.h +++ b/test/data/test-fapi-policies.h @@ -1,3 +1,6 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ +/* SPDX-FileCopyrightText: 2022, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef TEST_FAPI_POLICIES_H #define TEST_FAPI_POLICIES_H diff --git a/test/fuzz/tcti-spi-helper-fuzz-test.c b/test/fuzz/tcti-spi-helper-fuzz-test.c index c21aea0bd..57b7a3338 100644 --- a/test/fuzz/tcti-spi-helper-fuzz-test.c +++ b/test/fuzz/tcti-spi-helper-fuzz-test.c @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ +/* SPDX-FileCopyrightText: 2023, Infineon Technologies AG */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/helper/tpm_cmd_tcti_dummy.c b/test/helper/tpm_cmd_tcti_dummy.c index 37ad194e5..b3d564b3b 100644 --- a/test/helper/tpm_cmd_tcti_dummy.c +++ b/test/helper/tpm_cmd_tcti_dummy.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2020-2022, Intel */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/integration/esys-check-auth-with-trailing-zero.int.c b/test/integration/esys-check-auth-with-trailing-zero.int.c index a9f52e587..477944a48 100644 --- a/test/integration/esys-check-auth-with-trailing-zero.int.c +++ b/test/integration/esys-check-auth-with-trailing-zero.int.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/integration/esys-create-policy-auth.int.c b/test/integration/esys-create-policy-auth.int.c index 09bd54bf6..63b253331 100644 --- a/test/integration/esys-create-policy-auth.int.c +++ b/test/integration/esys-create-policy-auth.int.c @@ -1,3 +1,6 @@ +/* SPDX-FileCopyrightText: 2019, Jeffrey Ferreira */ +/* SPDX-FileCopyrightText: 2019, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2020, manuknz */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/integration/esys-get-capability-act.int.c b/test/integration/esys-get-capability-act.int.c index d1f9d2600..6d068d2d9 100644 --- a/test/integration/esys-get-capability-act.int.c +++ b/test/integration/esys-get-capability-act.int.c @@ -1,3 +1,6 @@ +/* SPDX-FileCopyrightText: 2021, Jesper Brynolf */ +/* SPDX-FileCopyrightText: 2021, Fraunhofer SIT sponsored by Infineon */ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/integration/esys-tr-fromTpmPublic-session.int.c b/test/integration/esys-tr-fromTpmPublic-session.int.c index f3b6e0d91..046fa5b0d 100644 --- a/test/integration/esys-tr-fromTpmPublic-session.int.c +++ b/test/integration/esys-tr-fromTpmPublic-session.int.c @@ -1,3 +1,7 @@ +/* SPDX-FileCopyrightText: 2019, Intel */ +/* SPDX-FileCopyrightText: 2019, Alon Bar-Lev */ +/* SPDX-FileCopyrightText: 2020, manuknz */ +/* SPDX-FileCopyrightText: 2021, Fraunhofer SIT sponsored by Infineon */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/integration/esys-tr-getName.int.c b/test/integration/esys-tr-getName.int.c index 895c23822..57623963f 100644 --- a/test/integration/esys-tr-getName.int.c +++ b/test/integration/esys-tr-getName.int.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/integration/esys-tr-getTpmHandle-key.int.c b/test/integration/esys-tr-getTpmHandle-key.int.c index 3bf411902..615cc088e 100644 --- a/test/integration/esys-tr-getTpmHandle-key.int.c +++ b/test/integration/esys-tr-getTpmHandle-key.int.c @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2019, Intel */ +/* SPDX-FileCopyrightText: 2020, manuknz */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/integration/fapi-provisioning-with-template.int.c b/test/integration/fapi-provisioning-with-template.int.c index 74184cdc8..1015ab6b5 100644 --- a/test/integration/fapi-provisioning-with-template.int.c +++ b/test/integration/fapi-provisioning-with-template.int.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2022 - 2023, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/unit/dlopen-fail.c b/test/unit/dlopen-fail.c index 243e60d5c..e1dc058d5 100644 --- a/test/unit/dlopen-fail.c +++ b/test/unit/dlopen-fail.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2021, Fraunhofer SIT sponsored by Infineon */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/unit/esys-vendor.c b/test/unit/esys-vendor.c index 5490624bb..9673c6481 100644 --- a/test/unit/esys-vendor.c +++ b/test/unit/esys-vendor.c @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2022, Intel */ +/* SPDX-FileCopyrightText: 2024, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/unit/fapi-ima-fuzzing.c b/test/unit/fapi-ima-fuzzing.c index 11558d875..c16252b29 100644 --- a/test/unit/fapi-ima-fuzzing.c +++ b/test/unit/fapi-ima-fuzzing.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/unit/fapi-system-fuzzing.c b/test/unit/fapi-system-fuzzing.c index 688a460be..7f2fc8dd5 100644 --- a/test/unit/fapi-system-fuzzing.c +++ b/test/unit/fapi-system-fuzzing.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2022, Juergen Repp */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H #include diff --git a/test/unit/tcti-cmd-test.h b/test/unit/tcti-cmd-test.h index 547795a81..bd95a22a8 100644 --- a/test/unit/tcti-cmd-test.h +++ b/test/unit/tcti-cmd-test.h @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2020, Intel */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifndef TEST_UNIT_TCTI_CMD_TEST_H_ diff --git a/test/unit/tcti-cmd.c b/test/unit/tcti-cmd.c index 3cfe6a2cd..0d53b8ffd 100644 --- a/test/unit/tcti-cmd.c +++ b/test/unit/tcti-cmd.c @@ -1,3 +1,4 @@ +/* SPDX-FileCopyrightText: 2020, Intel */ /* SPDX-License-Identifier: BSD-2-Clause */ #ifdef HAVE_CONFIG_H diff --git a/test/unit/test_tss2_rc.c b/test/unit/test_tss2_rc.c index 4eb263a7f..2d4486fc7 100644 --- a/test/unit/test_tss2_rc.c +++ b/test/unit/test_tss2_rc.c @@ -1,3 +1,5 @@ +/* SPDX-FileCopyrightText: 2019 - 2023, Intel */ +/* SPDX-FileCopyrightText: 2022, Erik Larsson */ /* SPDX-License-Identifier: BSD-2-Clause */ #include