summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2020-05-18 13:18:19 -0600
committerAngel Pons <th3fanbus@gmail.com>2020-05-25 22:18:13 +0000
commitfa8f567f3243e3d547a9e8388064a091ee294f98 (patch)
treeb394079a9e8ffc17c4bc15fbd64a7d96199932fb
parente6fcfc2a48fdb96637ee50b9afed98e38ce01a0a (diff)
downloadcoreboot-fa8f567f3243e3d547a9e8388064a091ee294f98.tar.gz
coreboot-fa8f567f3243e3d547a9e8388064a091ee294f98.tar.bz2
coreboot-fa8f567f3243e3d547a9e8388064a091ee294f98.zip
security/tpm: Use SPDX identifiers
Also adjust a few comments to follow the style guide. Change-Id: I22001320f2ce1f0db348e0f7fabc5a65b50ba53e Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41600 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--LICENSES/retained-copyrights.txt4
-rw-r--r--src/security/tpm/tss.h6
-rw-r--r--src/security/tpm/tss/tcg-1.2/tss.c11
-rw-r--r--src/security/tpm/tss/tcg-1.2/tss_internal.h5
-rw-r--r--src/security/tpm/tss/tcg-1.2/tss_structures.h7
-rw-r--r--src/security/tpm/tss/tcg-2.0/tss.c7
-rw-r--r--src/security/tpm/tss/tcg-2.0/tss_marshaling.c7
-rw-r--r--src/security/tpm/tss/tcg-2.0/tss_marshaling.h7
-rw-r--r--src/security/tpm/tss/tcg-2.0/tss_structures.h6
-rw-r--r--src/security/tpm/tss/vendor/cr50/cr50.c6
-rw-r--r--src/security/tpm/tss_errors.h8
11 files changed, 23 insertions, 51 deletions
diff --git a/LICENSES/retained-copyrights.txt b/LICENSES/retained-copyrights.txt
index 671f37f0a330..066bf6f7d0fb 100644
--- a/LICENSES/retained-copyrights.txt
+++ b/LICENSES/retained-copyrights.txt
@@ -11,6 +11,7 @@ Copyright 2015 Google Inc.
Copyright 2015, Google Inc.
Copyright 2016 Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Copyright 2016 The Chromium OS Authors. All rights reserved.
+Copyright 2017-2019 Eltan B.V.
Copyright 2017 Google Inc.
Copyright 2018 Generated Code
Copyright 2018-present Facebook, Inc.
@@ -32,6 +33,7 @@ Copyright (c) 2010-2017, The Regents of the University of California
Copyright (c) 2010, Code Aurora Forum. All rights reserved.
Copyright (C) 2010 coresystems GmbH
Copyright (c) 2010 Per Odlund <per.odlund@armagedon.se>
+Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
Copyright (c) 2011-2012 The Linux Foundation. All rights reserved.
Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
@@ -79,7 +81,9 @@ Copyright (C) 2015 Timothy Pearson <tpearson@raptorengineeringinc.com>, Raptor E
Copyright (c) 2016, 2018, The Linux Foundation. All rights reserved.
Copyright (C) 2016 Google Inc.
Copyright (c) 2016, The Regents of the University of California (Regents).
+Copyright (C) 2018-2019 Eltan B.V.
Copyright (C) 2018 - 2019 The Linux Foundation. All rights reserved.
+Copyright (c) 2018 Eltan B.V.
Copyright (c) 2018, HardenedLinux.
Copyright (C) 2018, The Linux Foundation. All rights reserved.
Copyright Dave Airlie <airlied@redhat.com>
diff --git a/src/security/tpm/tss.h b/src/security/tpm/tss.h
index 57f3b2484734..f644e3e7e7ed 100644
--- a/src/security/tpm/tss.h
+++ b/src/security/tpm/tss.h
@@ -1,8 +1,4 @@
-/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
- * Copyright (C) 2018-2019 Eltan B.V.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
/*
* TPM Lightweight Command Library.
diff --git a/src/security/tpm/tss/tcg-1.2/tss.c b/src/security/tpm/tss/tcg-1.2/tss.c
index ea3f94d5f803..4434ca698354 100644
--- a/src/security/tpm/tss/tcg-1.2/tss.c
+++ b/src/security/tpm/tss/tcg-1.2/tss.c
@@ -1,9 +1,7 @@
-/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
-/* A lightweight TPM command library.
+/*
+ * A lightweight TPM command library.
*
* The general idea is that TPM commands are array of bytes whose
* fields are mostly compile-time constant. The goal is to build much
@@ -75,7 +73,8 @@ static inline int tpm_return_code(const uint8_t *buffer)
return tpm_command_code(buffer);
}
-/* Like TlclSendReceive below, but do not retry if NEEDS_SELFTEST or
+/*
+ * Like TlclSendReceive below, but do not retry if NEEDS_SELFTEST or
* DOING_SELFTEST errors are returned.
*/
static uint32_t tlcl_send_receive_no_retry(const uint8_t *request,
diff --git a/src/security/tpm/tss/tcg-1.2/tss_internal.h b/src/security/tpm/tss/tcg-1.2/tss_internal.h
index e999cb947f17..1f49f041f4ea 100644
--- a/src/security/tpm/tss/tcg-1.2/tss_internal.h
+++ b/src/security/tpm/tss/tcg-1.2/tss_internal.h
@@ -1,7 +1,4 @@
-/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef TCG_TSS_INTERNAL_H_
#define TCG_TSS_INTERNAL_H_
diff --git a/src/security/tpm/tss/tcg-1.2/tss_structures.h b/src/security/tpm/tss/tcg-1.2/tss_structures.h
index 50fa3fbf0c7c..4a976c810df5 100644
--- a/src/security/tpm/tss/tcg-1.2/tss_structures.h
+++ b/src/security/tpm/tss/tcg-1.2/tss_structures.h
@@ -1,7 +1,6 @@
-/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- *
+/* SPDX-License-Identifier: BSD-3-Clause */
+
+/*
* Some TPM constants and type definitions for standalone compilation for use
* in the firmware
*/
diff --git a/src/security/tpm/tss/tcg-2.0/tss.c b/src/security/tpm/tss/tcg-2.0/tss.c
index 49a6cea08361..79d8eb91b450 100644
--- a/src/security/tpm/tss/tcg-2.0/tss.c
+++ b/src/security/tpm/tss/tcg-2.0/tss.c
@@ -1,9 +1,4 @@
-/*
- * Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Copyright 2017-2019 Eltan B.V.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
#include <console/console.h>
#include <endian.h>
diff --git a/src/security/tpm/tss/tcg-2.0/tss_marshaling.c b/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
index eff1acd2cd54..f31c7d0178b1 100644
--- a/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
+++ b/src/security/tpm/tss/tcg-2.0/tss_marshaling.c
@@ -1,9 +1,4 @@
-/*
- * Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Copyright (c) 2018 Eltan B.V.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
#include <commonlib/iobuf.h>
#include <console/console.h>
diff --git a/src/security/tpm/tss/tcg-2.0/tss_marshaling.h b/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
index d34756d566a9..432cf5a382af 100644
--- a/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
+++ b/src/security/tpm/tss/tcg-2.0/tss_marshaling.h
@@ -1,8 +1,5 @@
-/*
- * Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
+
#ifndef TCG2_TSS_MARSHALING_H_
#define TCG2_TSS_MARSHALING_H_
diff --git a/src/security/tpm/tss/tcg-2.0/tss_structures.h b/src/security/tpm/tss/tcg-2.0/tss_structures.h
index 3f0c6545abe5..f8c6012990f2 100644
--- a/src/security/tpm/tss/tcg-2.0/tss_structures.h
+++ b/src/security/tpm/tss/tcg-2.0/tss_structures.h
@@ -1,8 +1,4 @@
-/*
- * Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
#ifndef TCG2_TSS_STRUCTURES_H_
#define TCG2_TSS_STRUCTURES_H_
diff --git a/src/security/tpm/tss/vendor/cr50/cr50.c b/src/security/tpm/tss/vendor/cr50/cr50.c
index d7bf48d7112a..3be1e5a72272 100644
--- a/src/security/tpm/tss/vendor/cr50/cr50.c
+++ b/src/security/tpm/tss/vendor/cr50/cr50.c
@@ -1,8 +1,4 @@
-/*
- * Copyright 2016 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
#include <console/console.h>
#include <endian.h>
diff --git a/src/security/tpm/tss_errors.h b/src/security/tpm/tss_errors.h
index ed6fc3d77c90..7c4e5693973d 100644
--- a/src/security/tpm/tss_errors.h
+++ b/src/security/tpm/tss_errors.h
@@ -1,9 +1,7 @@
-/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
+/* SPDX-License-Identifier: BSD-3-Clause */
-/* TPM error codes.
+/*
+ * TPM error codes.
*
* Copy-pasted and lightly edited from TCG TPM Main Part 2 TPM Structures
* Version 1.2 Level 2 Revision 103 26 October 2006 Draft.