Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete license information #2831

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions .ci/coverity.run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2019 - 2021 Intel
# SPDX-License-Identifier: BSD-3-Clause

set -eo pipefail
Expand Down
2 changes: 2 additions & 0 deletions .ci/docker-prelude.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions .ci/docker.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-FileCopyrightText: 2019 - 2021 Intel
# SPDX-License-Identifier: BSD-3-Clause


Expand Down
2 changes: 2 additions & 0 deletions .ci/docker.run
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions .ci/download-deps.sh
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
6 changes: 6 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2019 Fraunhofer SIT sponsored by Infineon
# SPDX-License-Identifier: BSD-2-Clause

ignore:
- "test"

Expand Down
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# SPDX-FileCopyrightText: 2019 Intel
# SPDX-License-Identifier: BSD-2-Clause

test/fuzz/*.fuzz*
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2021 Intel
# SPDX-License-Identifier: BSD-2-Clause

name: CIFuzz
on: [pull_request]
jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 - 2023 Intel
# SPDX-FileCopyrightText: 2022 Infineon Technologies AG
# SPDX-License-Identifier: BSD-2-Clause

name: "CodeQL"

on:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 4 additions & 0 deletions .lgtm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2019 Jonas Witschel
# SPDX-FileCopyrightText: 2021 Infineon Technologies AG
# SPDX-License-Identifier: BSD-2-Clause

extraction:
cpp:
prepare:
Expand Down
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -8,4 +12,4 @@ build:
python: "3"
sphinx:
builder: html
configuration: sphinx/conf.py
configuration: sphinx/conf.py
90 changes: 90 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions Doxyfile.in
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions afl-fuzzing/fuzz-ima.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2022 - 2023 Juergen Repp
# SPDX-License-Identifier: BSD-2-Clause
#set -x
export srcdir=$(pwd)
Expand Down
1 change: 1 addition & 0 deletions afl-fuzzing/fuzz-system.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2022 - 2023 Juergen Repp
# SPDX-License-Identifier: BSD-2-Clause
#set -x
export srcdir=$(pwd)
Expand Down
7 changes: 7 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 9 additions & 0 deletions doc/coding_standard_c.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions m4/flags.m4
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions m4/misc.m4
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 5 additions & 0 deletions script/ekca/create_ca.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions script/ekca/ek.cnf
Original file line number Diff line number Diff line change
@@ -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 ]
Expand Down
3 changes: 2 additions & 1 deletion script/ekca/init_ca.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2023 - 2024 Juergen Repp
# SPDX-License-Identifier: BSD-2-Clause
#set -x

#set -euf
Expand Down
4 changes: 4 additions & 0 deletions script/ekca/intermed-ca.cnf
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
2 changes: 2 additions & 0 deletions script/ekca/root-ca.cnf
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
5 changes: 5 additions & 0 deletions sphinx/conf.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down
5 changes: 1 addition & 4 deletions src/tss2-esys/esys_crypto_mbed.c
Original file line number Diff line number Diff line change
@@ -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 <config.h>
Expand Down
5 changes: 1 addition & 4 deletions src/tss2-esys/esys_crypto_mbed.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/tss2-esys/esys_free.c
Original file line number Diff line number Diff line change
@@ -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 <config.h>
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/tss2-fapi/efi_event.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/tss2-fapi/ifapi_curl.c
Original file line number Diff line number Diff line change
@@ -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 <config.h>
Expand Down
1 change: 1 addition & 0 deletions src/tss2-fapi/ifapi_curl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-FileCopyrightText: 2022, Intel */
/* SPDX-License-Identifier: BSD-2-Clause */
#ifndef IFAPI_CURL_H
#define IFAPI_CURL_H
Expand Down
1 change: 1 addition & 0 deletions src/tss2-fapi/ifapi_get_web_cert.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-FileCopyrightText: 2023, Juergen Repp */
/* SPDX-License-Identifier: BSD-2-Clause */

#ifdef HAVE_CONFIG_H
Expand Down
2 changes: 2 additions & 0 deletions src/tss2-policy/tss2_policy.c
Original file line number Diff line number Diff line change
@@ -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 <config.h>
Expand Down
5 changes: 5 additions & 0 deletions src/tss2-rc/tss2_rc.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/tss2-tcti/tcti-cmd.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-FileCopyrightText: 2020, Intel */
/* SPDX-FileCopyrightText: 2023, Infineon Technologies AG */
/* SPDX-License-Identifier: BSD-2-Clause */

#ifndef TCTI_CMD_H
Expand Down
Loading
Loading