[<prev] [next>] [day] [month] [year] [list]
Message-ID: <cfc226dc9d457593cf3639d7698809391dd96d49.camel@HansenPartnership.com>
Date: Fri, 17 Oct 2025 16:14:05 -0400
From: James Bottomley <James.Bottomley@...senPartnership.com>
To: keyrings@...r.kernel.org
Cc: David Howells <dhowells@...hat.com>, Andrew Morton
<akpm@...ux-foundation.org>, linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH v2] lib: update the licence of the ASN.1 encoder and decoder
The open source project leancrypto (github.com/smuellerDD/leancrypto)
has asked to use the ASN.1 encoder/decoder files from the kernel.
Since leancrypto is licensed under BSD-3-Clause the fairest thing to do for everyone is add BSD-3-Clause as an OR to the SPDX tag so every project could import them under the same terms.
The copyright holders of both files have agreed to this change.
Signed-off-by: James Bottomley <James.Bottomley@...senPartnership.com>
Acked-by: David Howells <dhowells@...hat.com>
---
v2: update the header and script file licences as well and add David's Ack
---
include/linux/asn1.h | 2 +-
include/linux/asn1_ber_bytecode.h | 2 +-
include/linux/asn1_decoder.h | 2 +-
include/linux/asn1_encoder.h | 2 +-
lib/asn1_decoder.c | 2 +-
lib/asn1_encoder.c | 2 +-
scripts/asn1_compiler.c | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/linux/asn1.h b/include/linux/asn1.h
index a4d0bdd10711..995f41fac5d0 100644
--- a/include/linux/asn1.h
+++ b/include/linux/asn1.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+/* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause */
/* ASN.1 BER/DER/CER encoding definitions
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
diff --git a/include/linux/asn1_ber_bytecode.h b/include/linux/asn1_ber_bytecode.h
index b38361953a48..c4fb688e5bf1 100644
--- a/include/linux/asn1_ber_bytecode.h
+++ b/include/linux/asn1_ber_bytecode.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+/* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause */
/* ASN.1 BER/DER/CER parsing state machine internal definitions
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
diff --git a/include/linux/asn1_decoder.h b/include/linux/asn1_decoder.h
index b41bce82a191..24058c3ad492 100644
--- a/include/linux/asn1_decoder.h
+++ b/include/linux/asn1_decoder.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
+/* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause */
/* ASN.1 decoder
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
diff --git a/include/linux/asn1_encoder.h b/include/linux/asn1_encoder.h
index d17484dffb74..afda8743d8d4 100644
--- a/include/linux/asn1_encoder.h
+++ b/include/linux/asn1_encoder.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */
#ifndef _LINUX_ASN1_ENCODER_H
#define _LINUX_ASN1_ENCODER_H
diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c
index 5738ae286b41..1be81a80aed7 100644
--- a/lib/asn1_decoder.c
+++ b/lib/asn1_decoder.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause
/* Decoder for ASN.1 BER/DER/CER encoded bytestream
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
diff --git a/lib/asn1_encoder.c b/lib/asn1_encoder.c
index 92f35aae13b1..e1285208478d 100644
--- a/lib/asn1_encoder.c
+++ b/lib/asn1_encoder.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0-only
+// SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
/*
* Simple encoder primitives for ASN.1 BER/DER/CER
*
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c
index 4c3f645065a4..59369e39aab0 100644
--- a/scripts/asn1_compiler.c
+++ b/scripts/asn1_compiler.c
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
+// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause
/* Simplified ASN.1 notation parser
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
--
2.51.0
Powered by blists - more mailing lists