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

Update license copyright year(s) #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion verifier/src/advisories.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

use crate::{Accessor, SpacedStructName, VerificationOutput, Verifier};
use alloc::{
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/certificate_chain.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Trait and Error for verifying certificate chains

Expand All @@ -6,7 +6,7 @@
use x509_cert::{crl::CertificateList, Certificate};

/// Error verifying a certificate chain
#[derive(displaydoc::Display, Debug, Clone, PartialEq)]

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 9 in verifier/src/certificate_chain.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub enum CertificateChainVerifierError {
/// X509 certificate not yet valid
CertificateNotYetValid,
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Errors that can occur during verification

Expand All @@ -7,7 +7,7 @@
use serde::{Deserialize, Serialize};

/// Error working with quote evidence
#[derive(displaydoc::Display, Debug, Clone, PartialEq, Serialize, Deserialize)]

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 10 in verifier/src/error.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub enum Error {
/// Error converting from DER {0}
Der(String),
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/evidence.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! The full set of evidence needed for attesting a quote

Expand Down
2 changes: 1 addition & 1 deletion verifier/src/identity.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Provides logic for verifying MRENCLAVE and MRSIGNER identities in combination with allowed
//! [`Advisories`].
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

#![doc = include_str!("../README.md")]
#![deny(missing_docs, missing_debug_implementations, unsafe_code)]
Expand Down Expand Up @@ -153,7 +153,7 @@
}
}

impl<'a, V: VerificationMessage<O>, O> Display for VerificationTreeDisplay<'a, V, O> {

Check failure on line 156 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

the following explicit lifetimes could be elided: 'a

Check failure on line 156 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

the following explicit lifetimes could be elided: 'a
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
self.verifier.fmt_padded(f, 0, &self.result)
}
Expand Down Expand Up @@ -558,7 +558,7 @@
}

/// Negated due to `Not`
#[derive(displaydoc::Display, Debug)]

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 561 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub struct Not<V> {
verifier: V,
}
Expand Down Expand Up @@ -604,7 +604,7 @@
pub struct AlwaysTrueValue;

/// Success due to `AlwaysTrue`
#[derive(displaydoc::Display, Clone, Debug, Eq, Hash, PartialEq, Default)]

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 607 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub struct AlwaysTrue;

impl<E> Verifier<E> for AlwaysTrue {
Expand Down Expand Up @@ -632,7 +632,7 @@
pub struct AlwaysFalseValue;

/// Failure due to `AlwaysFalse`
#[derive(displaydoc::Display, Clone, Debug, Eq, Hash, PartialEq, Default)]

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 635 in verifier/src/lib.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub struct AlwaysFalse;

impl<E> Verifier<E> for AlwaysFalse {
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/mbedtls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Implementation of certificate chain verification using MbedTls.

Expand All @@ -20,7 +20,7 @@
pub type Result<T> = core::result::Result<T, Error>;

/// Error type for decoding and verifying certificates.
#[derive(Debug, displaydoc::Display, PartialEq, Eq)]

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / clippy (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / build (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / test (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / clippy (beta)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / build (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item

Check failure on line 23 in verifier/src/mbedtls.rs

View workflow job for this annotation

GitHub Actions / test (stable)

non-local `impl` definition, `impl` blocks should be written at the same level as their item
pub enum Error {
/// An error occurred working with MbedTls: {0}
MbedTls(mbedtls::Error),
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/qe_identity.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Handles the QE(Quoting Enclave) identity verification.
//!
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/qe_report_body.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Verification of a QE(Quoting Enclave) report body.

Expand Down
2 changes: 1 addition & 1 deletion verifier/src/quote.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

use crate::{Accessor, Error, VerificationMessage, VerificationOutput, Verifier};
use core::fmt::Formatter;
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/report_body.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2018-2024 The MobileCoin Foundation
// Copyright (c) 2018-2025 The MobileCoin Foundation

//! Verifiers which operate on the [`ReportBody`]

Expand Down
2 changes: 1 addition & 1 deletion verifier/src/struct_name.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Provides a trait that provides a textual friendly version of a struct name.
//! The names are all lowercase and use spaces between the words.
Expand Down
2 changes: 1 addition & 1 deletion verifier/src/tcb.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2023-2024 The MobileCoin Foundation
// Copyright (c) 2023-2025 The MobileCoin Foundation

//! Verifier for TCB(Trusted Computing Base) information
//!
Expand Down
Loading