[repo] Licence: CPAL-1.0 file headers instead of the MPL-2.0 notice
Each source file's three-line MPL-2.0 notice becomes an SPDX CPAL-1.0 header with the copyright line; the Exhibit A notice itself is in LICENSE (CPAL 3.5). Shell scripts' SPDX ids follow. Comments only: no code changes.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: MPL-2.0
|
# SPDX-License-Identifier: CPAL-1.0
|
||||||
#
|
#
|
||||||
# Pre-commit hook (shared with Ianitor). Rejects staged files that must never be in git:
|
# Pre-commit hook (shared with Ianitor). Rejects staged files that must never be in git:
|
||||||
# - binaries: any NUL byte anywhere in the staged blob (git attributes do not matter)
|
# - binaries: any NUL byte anywhere in the staged blob (git attributes do not matter)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: MPL-2.0
|
# SPDX-License-Identifier: CPAL-1.0
|
||||||
#
|
#
|
||||||
# Self-test for .githooks/pre-commit. Creates a throw-away repository, points it at the
|
# Self-test for .githooks/pre-commit. Creates a throw-away repository, points it at the
|
||||||
# hook and checks that every forbidden case is rejected and normal files are accepted.
|
# hook and checks that every forbidden case is rejected and normal files are accepted.
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Making certificates: the root's (through a [`Signer`]), intermediates from CSRs, and the
|
//! Making certificates: the root's (through a [`Signer`]), intermediates from CSRs, and the
|
||||||
//! leaves an [`Intermediate`] issues (server, device, agent).
|
//! leaves an [`Intermediate`] issues (server, device, agent).
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Reading certificates and CSRs (hostile input): what they say, who signed them, match codes.
|
//! Reading certificates and CSRs (hostile input): what they say, who signed them, match codes.
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! The Domi CA (docs/01_domi_pki.md): a small CA on rcgen, checked with rustls-webpki. Pure: the
|
//! The Domi CA (docs/01_domi_pki.md): a small CA on rcgen, checked with rustls-webpki. Pure: the
|
||||||
//! caller passes the time in and does every file read and write. Keys are ECDSA P-256; a root
|
//! caller passes the time in and does every file read and write. Keys are ECDSA P-256; a root
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Who signs: the [`Signer`] trait (the root lives in Custos and signs through it) and the local
|
//! Who signs: the [`Signer`] trait (the root lives in Custos and signs through it) and the local
|
||||||
//! [`KeyPair`] (intermediates, tests, the offline machine).
|
//! [`KeyPair`] (intermediates, tests, the offline machine).
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Helpers for tests that need certificates the Domi CA itself would never make.
|
//! Helpers for tests that need certificates the Domi CA itself would never make.
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Checking chains (rustls-webpki) and agent certificates. Everything presented is hostile.
|
//! Checking chains (rustls-webpki) and agent certificates. Everything presented is hostile.
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Agent certificates (tests first, docs/01): issued from the agent's own CSR, only by the agents
|
//! Agent certificates (tests first, docs/01): issued from the agent's own CSR, only by the agents
|
||||||
//! intermediate; `verify_agent` names the agent, and refuses expired, foreign and mis-chained ones.
|
//! intermediate; `verify_agent` names the agent, and refuses expired, foreign and mis-chained ones.
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! Chains, expiry and wrong issuers (tests first, docs/01): issued chains validate to the root,
|
//! Chains, expiry and wrong issuers (tests first, docs/01): issued chains validate to the root,
|
||||||
//! a leaf cannot sign, pathLen 0 holds, expired and not-yet-valid certificates are refused, and a
|
//! a leaf cannot sign, pathLen 0 holds, expired and not-yet-valid certificates are refused, and a
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
#![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
|
#![allow(dead_code, clippy::unwrap_used, clippy::expect_used, clippy::panic)]
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
// SPDX-License-Identifier: CPAL-1.0
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// Copyright (c) 2026 Marek Novák. Exhibit A notice: LICENSE at the repository root.
|
||||||
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
||||||
|
|
||||||
//! The root signs only through `Signer` (tests first, docs/01): once per operation, a signer whose
|
//! The root signs only through `Signer` (tests first, docs/01): once per operation, a signer whose
|
||||||
//! key is not the root's is refused, a lying signer is caught, and CSRs never steer the profile.
|
//! key is not the root's is refused, a lying signer is caught, and CSRs never steer the profile.
|
||||||
|
|||||||
Reference in New Issue
Block a user