Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
change license from Apache-2.0 to Apache-2.0 + MIT dual license
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Oct 25, 2023
1 parent d9be4a2 commit 185ceda
Show file tree
Hide file tree
Showing 331 changed files with 335 additions and 335 deletions.
2 changes: 1 addition & 1 deletion codec/src/codec.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

#[cfg(feature = "alloc")]
extern crate alloc;
Expand Down
2 changes: 1 addition & 1 deletion codec/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

#![forbid(unsafe_code)]
#![no_std]
Expand Down
2 changes: 1 addition & 1 deletion codec/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

/// A macro which defines an enum type.
#[macro_export]
Expand Down
2 changes: 1 addition & 1 deletion executor/src/executor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @file
//
// Copyright (c) 2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT
//

extern crate alloc;
Expand Down
2 changes: 1 addition & 1 deletion executor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @file
//
// Copyright (c) 2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT
//

#![cfg_attr(any(target_os = "uefi", target_os = "none"), no_std)]
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/fake_aead_impl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use spdmlib::crypto::SpdmAead;
use spdmlib::error::SpdmResult;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/fake_device_io.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

#![forbid(unsafe_code)]

Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/fake_hkdf_impl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::spdmlib::crypto::SpdmHkdf;
use spdmlib::protocol::{
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

pub mod fake_device_io;
pub mod time;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/secret.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

#![allow(dead_code)]
#![allow(unused_variables)]
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/fuzzlib/src/time.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use spdmlib::time::SpdmTime;
pub static SPDM_TIME_IMPL: SpdmTime = SpdmTime {
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/pass_context/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

mod pass_responder;
use pass_responder::*;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/pass_context/src/pass_requester.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::protocol::SpdmMeasurementSummaryHashType;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/pass_context/src/pass_responder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spin::Mutex;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/random_requester/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2022 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use async_recursion::async_recursion;
// import commonly used items from the prelude:
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/algorithm_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{spdmlib::protocol::SpdmVersion, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/capability_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{spdmlib::protocol::SpdmVersion, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/certificate_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::session::{SpdmSession, SpdmSessionState};
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/challenge_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::protocol::*;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/digest_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT
use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
use spdmlib::protocol::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use codec::Writer;
use fuzzlib::spdmlib::message::SpdmKeyExchangeMutAuthAttributes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use codec::Writer;
use fuzzlib::spdmlib::message::SpdmKeyExchangeMutAuthAttributes;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/encapsulated_request_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::spdmlib::message::SpdmKeyExchangeMutAuthAttributes;
use fuzzlib::*;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/end_session_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/finish_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::{
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/heartbeat_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use spdmlib::protocol::*;

Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/key_exchange_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{common::SpdmOpaqueSupport, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/key_update_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use crate::spdmlib::message::*;
use fuzzlib::{
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/measurement_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/psk_exchange_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{common::SpdmOpaqueSupport, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/psk_finish_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/vendor_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/requester/version_req/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
fake_device_io::{self, FakeSpdmDeviceIo},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/algorithm_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::config::MAX_SPDM_MSG_SIZE;
use fuzzlib::{spdmlib::protocol::SpdmVersion, *};
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/capability_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{spdmlib::protocol::SpdmVersion, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/certificate_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT
use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
spdmlib::common::SpdmConnectionState,
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/challenge_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/digest_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::session::{SpdmSession, SpdmSessionState};
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/end_session_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/finish_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::*;
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/heartbeat_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/key_update_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/keyexchange_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{common::SpdmOpaqueSupport, *};
use spdmlib::common::SpdmConnectionState;
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/measurement_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2020 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
2 changes: 1 addition & 1 deletion fuzz-target/responder/psk_finish_rsp/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: Apache-2.0 or MIT

use fuzzlib::{
spdmlib::common::session::{SpdmSession, SpdmSessionState},
Expand Down
Loading

0 comments on commit 185ceda

Please sign in to comment.