From 185ceda2b19bc005d88053d5a016560361e27059 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Wed, 25 Oct 2023 22:17:09 +0800 Subject: [PATCH] change license from Apache-2.0 to Apache-2.0 + MIT dual license Signed-off-by: Jiewen Yao --- codec/src/codec.rs | 2 +- codec/src/lib.rs | 2 +- codec/src/macros.rs | 2 +- executor/src/executor.rs | 2 +- executor/src/lib.rs | 2 +- fuzz-target/fuzzlib/src/fake_aead_impl.rs | 2 +- fuzz-target/fuzzlib/src/fake_device_io.rs | 2 +- fuzz-target/fuzzlib/src/fake_hkdf_impl.rs | 2 +- fuzz-target/fuzzlib/src/lib.rs | 2 +- fuzz-target/fuzzlib/src/secret.rs | 2 +- fuzz-target/fuzzlib/src/time.rs | 2 +- fuzz-target/pass_context/src/main.rs | 2 +- fuzz-target/pass_context/src/pass_requester.rs | 2 +- fuzz-target/pass_context/src/pass_responder.rs | 2 +- fuzz-target/random_requester/src/main.rs | 2 +- fuzz-target/requester/algorithm_req/src/main.rs | 2 +- fuzz-target/requester/capability_req/src/main.rs | 2 +- fuzz-target/requester/certificate_req/src/main.rs | 2 +- fuzz-target/requester/challenge_req/src/main.rs | 2 +- fuzz-target/requester/digest_req/src/main.rs | 2 +- .../encapsulated_request_certificate_req/src/main.rs | 2 +- .../requester/encapsulated_request_digest_req/src/main.rs | 2 +- .../requester/encapsulated_request_req/src/main.rs | 2 +- fuzz-target/requester/end_session_req/src/main.rs | 2 +- fuzz-target/requester/finish_req/src/main.rs | 2 +- fuzz-target/requester/heartbeat_req/src/main.rs | 2 +- fuzz-target/requester/key_exchange_req/src/main.rs | 2 +- fuzz-target/requester/key_update_req/src/main.rs | 2 +- fuzz-target/requester/measurement_req/src/main.rs | 2 +- fuzz-target/requester/psk_exchange_req/src/main.rs | 2 +- fuzz-target/requester/psk_finish_req/src/main.rs | 2 +- fuzz-target/requester/vendor_req/src/main.rs | 2 +- fuzz-target/requester/version_req/src/main.rs | 2 +- fuzz-target/responder/algorithm_rsp/src/main.rs | 2 +- fuzz-target/responder/capability_rsp/src/main.rs | 2 +- fuzz-target/responder/certificate_rsp/src/main.rs | 2 +- fuzz-target/responder/challenge_rsp/src/main.rs | 2 +- .../src/main.rs | 2 +- .../deliver_encapsulated_response_digest_rsp/src/main.rs | 2 +- .../deliver_encapsulated_response_rsp/src/main.rs | 2 +- fuzz-target/responder/digest_rsp/src/main.rs | 2 +- fuzz-target/responder/end_session_rsp/src/main.rs | 2 +- fuzz-target/responder/finish_rsp/src/main.rs | 2 +- .../responder/get_encapsulated_request_rsp/src/main.rs | 2 +- fuzz-target/responder/heartbeat_rsp/src/main.rs | 2 +- fuzz-target/responder/key_update_rsp/src/main.rs | 2 +- fuzz-target/responder/keyexchange_rsp/src/main.rs | 2 +- fuzz-target/responder/measurement_rsp/src/main.rs | 2 +- fuzz-target/responder/psk_finish_rsp/src/main.rs | 2 +- fuzz-target/responder/pskexchange_rsp/src/main.rs | 2 +- fuzz-target/responder/vendor_rsp/src/main.rs | 2 +- fuzz-target/responder/version_rsp/src/main.rs | 2 +- idekm/src/lib.rs | 2 +- idekm/src/pci_ide_km_requester/mod.rs | 2 +- idekm/src/pci_ide_km_requester/pci_ide_km_req_key_prog.rs | 2 +- .../src/pci_ide_km_requester/pci_ide_km_req_key_set_go.rs | 2 +- .../pci_ide_km_requester/pci_ide_km_req_key_set_stop.rs | 2 +- idekm/src/pci_ide_km_requester/pci_ide_km_req_query.rs | 2 +- idekm/src/pci_ide_km_responder/mod.rs | 2 +- .../src/pci_ide_km_responder/pci_ide_km_rsp_dispatcher.rs | 2 +- idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_prog.rs | 2 +- .../src/pci_ide_km_responder/pci_ide_km_rsp_key_set_go.rs | 2 +- .../pci_ide_km_responder/pci_ide_km_rsp_key_set_stop.rs | 2 +- idekm/src/pci_ide_km_responder/pci_ide_km_rsp_query.rs | 2 +- idekm/src/pci_idekm.rs | 2 +- license.md | 8 ++++---- mctp_transport/src/header.rs | 2 +- mctp_transport/src/lib.rs | 2 +- pcidoe_transport/src/header.rs | 2 +- pcidoe_transport/src/lib.rs | 2 +- spdmlib/build.rs | 4 ++-- spdmlib/fuzz/fuzz_targets/algorithm_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/algorithm_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/capability_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/capability_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/certificate_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/certificate_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/challenge_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/challenge_rsp.rs | 2 +- .../deliver_encapsulated_response_certificate_rsp.rs | 2 +- .../deliver_encapsulated_response_digest_rsp.rs | 2 +- .../fuzz_targets/deliver_encapsulated_response_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/digest_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/digest_rsp.rs | 2 +- .../fuzz_targets/encapsulated_request_certificate_req.rs | 2 +- .../fuzz/fuzz_targets/encapsulated_request_digest_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/encapsulated_request_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/end_session_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/end_session_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/finish_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/finish_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/get_encapsulated_request_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/heartbeat_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/heartbeat_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/key_exchange_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/key_update_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/key_update_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/keyexchange_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/measurement_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/measurement_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/psk_exchange_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/psk_finish_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/psk_finish_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/pskexchange_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/vendor_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/vendor_rsp.rs | 2 +- spdmlib/fuzz/fuzz_targets/version_req.rs | 2 +- spdmlib/fuzz/fuzz_targets/version_rsp.rs | 2 +- spdmlib/src/common/key_schedule.rs | 2 +- spdmlib/src/common/mod.rs | 2 +- spdmlib/src/common/opaque.rs | 2 +- spdmlib/src/common/session.rs | 2 +- spdmlib/src/common/spdm_codec.rs | 2 +- spdmlib/src/crypto/bytes_mut_scrubbed.rs | 2 +- spdmlib/src/crypto/crypto_callbacks.rs | 2 +- spdmlib/src/crypto/crypto_tests.rs | 2 +- spdmlib/src/crypto/mod.rs | 2 +- spdmlib/src/crypto/spdm_ring/aead_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/asym_verify_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/cert_operation_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/dhe_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/hash_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/hkdf_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/hmac_impl.rs | 2 +- spdmlib/src/crypto/spdm_ring/mod.rs | 2 +- spdmlib/src/crypto/spdm_ring/rand_impl.rs | 2 +- spdmlib/src/crypto/x509v3.rs | 2 +- spdmlib/src/error.rs | 2 +- spdmlib/src/lib.rs | 2 +- spdmlib/src/message/algorithm.rs | 2 +- spdmlib/src/message/algorithm_test.rs | 2 +- spdmlib/src/message/capability.rs | 2 +- spdmlib/src/message/capability_test.rs | 2 +- spdmlib/src/message/certificate.rs | 2 +- spdmlib/src/message/certificate_test.rs | 2 +- spdmlib/src/message/challenge.rs | 2 +- spdmlib/src/message/challenge_test.rs | 2 +- spdmlib/src/message/digest.rs | 2 +- spdmlib/src/message/digest_test.rs | 2 +- spdmlib/src/message/encapsulated.rs | 2 +- spdmlib/src/message/encapsulated_test.rs | 2 +- spdmlib/src/message/end_session.rs | 2 +- spdmlib/src/message/end_session_test.rs | 2 +- spdmlib/src/message/error.rs | 2 +- spdmlib/src/message/finish.rs | 2 +- spdmlib/src/message/finish_test.rs | 2 +- spdmlib/src/message/heartbeat.rs | 2 +- spdmlib/src/message/heartbeat_test.rs | 2 +- spdmlib/src/message/key_exchange.rs | 2 +- spdmlib/src/message/key_exchange_test.rs | 2 +- spdmlib/src/message/key_update.rs | 2 +- spdmlib/src/message/key_update_test.rs | 2 +- spdmlib/src/message/measurement.rs | 2 +- spdmlib/src/message/measurement_test.rs | 2 +- spdmlib/src/message/mod.rs | 2 +- spdmlib/src/message/mod_test.common.inc.rs | 2 +- spdmlib/src/message/psk_exchange.rs | 2 +- spdmlib/src/message/psk_finish.rs | 2 +- spdmlib/src/message/respond_if_ready.rs | 2 +- spdmlib/src/message/vendor.rs | 2 +- spdmlib/src/message/version.rs | 2 +- spdmlib/src/message/version_test.rs | 2 +- spdmlib/src/protocol/algo.rs | 2 +- spdmlib/src/protocol/capability.rs | 2 +- spdmlib/src/protocol/mod.rs | 2 +- spdmlib/src/protocol/version.rs | 2 +- spdmlib/src/requester/challenge_req.rs | 2 +- spdmlib/src/requester/context.rs | 2 +- spdmlib/src/requester/encap_certificate.rs | 2 +- spdmlib/src/requester/encap_digest.rs | 2 +- spdmlib/src/requester/encap_error.rs | 2 +- spdmlib/src/requester/encap_req.rs | 2 +- spdmlib/src/requester/end_session_req.rs | 2 +- spdmlib/src/requester/finish_req.rs | 2 +- spdmlib/src/requester/get_capabilities_req.rs | 2 +- spdmlib/src/requester/get_certificate_req.rs | 2 +- spdmlib/src/requester/get_digests_req.rs | 2 +- spdmlib/src/requester/get_measurements_req.rs | 2 +- spdmlib/src/requester/get_version_req.rs | 2 +- spdmlib/src/requester/handle_error_response_req.rs | 2 +- spdmlib/src/requester/heartbeat_req.rs | 2 +- spdmlib/src/requester/key_exchange_req.rs | 2 +- spdmlib/src/requester/key_update_req.rs | 2 +- spdmlib/src/requester/mod.rs | 2 +- spdmlib/src/requester/mutual_authenticate.rs | 2 +- spdmlib/src/requester/negotiate_algorithms_req.rs | 2 +- spdmlib/src/requester/psk_exchange_req.rs | 2 +- spdmlib/src/requester/psk_finish_req.rs | 2 +- spdmlib/src/requester/vendor_req.rs | 2 +- spdmlib/src/responder/algorithm_rsp.rs | 2 +- spdmlib/src/responder/app_message_handler.rs | 2 +- spdmlib/src/responder/capability_rsp.rs | 2 +- spdmlib/src/responder/certificate_rsp.rs | 2 +- spdmlib/src/responder/challenge_rsp.rs | 2 +- spdmlib/src/responder/context.rs | 2 +- spdmlib/src/responder/digest_rsp.rs | 2 +- spdmlib/src/responder/encap_get_certificate.rs | 2 +- spdmlib/src/responder/encap_get_digest.rs | 2 +- spdmlib/src/responder/encap_rsp.rs | 2 +- spdmlib/src/responder/end_session_rsp.rs | 2 +- spdmlib/src/responder/error_rsp.rs | 2 +- spdmlib/src/responder/finish_rsp.rs | 2 +- spdmlib/src/responder/heartbeat_rsp.rs | 2 +- spdmlib/src/responder/key_exchange_rsp.rs | 2 +- spdmlib/src/responder/key_update_rsp.rs | 2 +- spdmlib/src/responder/measurement_rsp.rs | 2 +- spdmlib/src/responder/mod.rs | 2 +- spdmlib/src/responder/psk_exchange_rsp.rs | 2 +- spdmlib/src/responder/psk_finish_rsp.rs | 2 +- spdmlib/src/responder/vendor_rsp.rs | 2 +- spdmlib/src/responder/version_rsp.rs | 2 +- spdmlib/src/secret/mod.rs | 2 +- spdmlib/src/secret/secret_callback.rs | 2 +- spdmlib/src/time/mod.rs | 2 +- spdmlib/src/time/time_callbacks.rs | 2 +- spdmlib/src/watchdog/mod.rs | 2 +- spdmlib/src/watchdog/watchdog_callbacks.rs | 2 +- spdmlib_crypto_mbedtls/src/aead_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/asym_verify_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/cert_operation_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/dhe_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/hash_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/hkdf_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/hmac_impl.rs | 2 +- spdmlib_crypto_mbedtls/src/lib.rs | 2 +- spdmlib_crypto_mbedtls/src/rand_impl.rs | 2 +- sys_time/src/lib.rs | 2 +- sys_time/src/rtc.rs | 2 +- tdisp/src/common.rs | 2 +- tdisp/src/config.rs | 2 +- tdisp/src/context.rs | 2 +- tdisp/src/device.rs | 2 +- tdisp/src/lib.rs | 2 +- tdisp/src/message.rs | 2 +- tdisp/src/state_machine.rs | 2 +- tdisp/src/tdisp_codec.rs | 2 +- tdisp/src/tdisp_requester/bind_p2p_stream_request_req.rs | 2 +- .../tdisp_requester/get_device_interface_report_req.rs | 2 +- .../src/tdisp_requester/get_device_interface_state_req.rs | 2 +- tdisp/src/tdisp_requester/get_tdisp_capabilities_req.rs | 2 +- tdisp/src/tdisp_requester/get_tdisp_version_req.rs | 2 +- tdisp/src/tdisp_requester/lock_interface_request_req.rs | 2 +- tdisp/src/tdisp_requester/mod.rs | 2 +- .../src/tdisp_requester/set_mmio_attribute_request_req.rs | 2 +- tdisp/src/tdisp_requester/start_interface_request_req.rs | 2 +- tdisp/src/tdisp_requester/stop_interface_request_req.rs | 2 +- .../src/tdisp_requester/unbind_p2p_stream_request_req.rs | 2 +- tdisp/src/tdisp_requester/vdm_request.rs | 2 +- tdisp/src/tdisp_responder/bind_p2p_stream_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/device_interface_report_rsp.rs | 2 +- tdisp/src/tdisp_responder/device_interface_state_rsp.rs | 2 +- tdisp/src/tdisp_responder/lock_interface_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/mod.rs | 2 +- .../src/tdisp_responder/set_mmio_attribute_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/start_interface_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/stop_interface_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/tdisp_capabilities_rsp.rs | 2 +- tdisp/src/tdisp_responder/tdisp_error_rsp.rs | 2 +- tdisp/src/tdisp_responder/tdisp_version_rsp.rs | 2 +- .../src/tdisp_responder/unbind_p2p_stream_request_rsp.rs | 2 +- tdisp/src/tdisp_responder/vdm_response.rs | 2 +- test/spdm-emu/src/crypto.rs | 2 +- test/spdm-emu/src/crypto_callback.rs | 2 +- test/spdm-emu/src/lib.rs | 2 +- test/spdm-emu/src/secret_impl_sample.rs | 2 +- test/spdm-emu/src/socket_io_transport.rs | 2 +- test/spdm-emu/src/spdm_emu.rs | 2 +- test/spdm-emu/src/tcp_transport.rs | 2 +- test/spdm-emu/src/watchdog_impl_sample.rs | 2 +- test/spdm-requester-emu/src/main.rs | 2 +- test/spdm-responder-emu/src/main.rs | 2 +- test/spdm-responder-emu/src/spdm_device_example.rs | 2 +- test/spdmlib-test/src/common/crypto_callback.rs | 2 +- test/spdmlib-test/src/common/device_io.rs | 2 +- test/spdmlib-test/src/common/mod.rs | 2 +- test/spdmlib-test/src/common/secret_callback.rs | 2 +- test/spdmlib-test/src/common/util.rs | 2 +- test/spdmlib-test/src/lib.rs | 2 +- test/spdmlib-test/src/protocol/algorithm.rs | 2 +- test/spdmlib-test/src/protocol/capability.rs | 2 +- test/spdmlib-test/src/protocol/certificate.rs | 2 +- test/spdmlib-test/src/protocol/challenge.rs | 2 +- test/spdmlib-test/src/protocol/digest.rs | 2 +- test/spdmlib-test/src/protocol/measurement.rs | 2 +- test/spdmlib-test/src/protocol/mod.rs | 2 +- test/spdmlib-test/src/protocol/version.rs | 2 +- test/spdmlib-test/src/requester_tests/challenge_req.rs | 2 +- test/spdmlib-test/src/requester_tests/context.rs | 2 +- .../spdmlib-test/src/requester_tests/encap_certificate.rs | 2 +- test/spdmlib-test/src/requester_tests/encap_digest.rs | 2 +- test/spdmlib-test/src/requester_tests/encap_error.rs | 2 +- test/spdmlib-test/src/requester_tests/encap_req.rs | 2 +- test/spdmlib-test/src/requester_tests/end_session_req.rs | 2 +- test/spdmlib-test/src/requester_tests/finish_req.rs | 2 +- .../src/requester_tests/get_capabilities_req.rs | 2 +- .../src/requester_tests/get_certificate_req.rs | 2 +- test/spdmlib-test/src/requester_tests/get_digests_req.rs | 2 +- .../src/requester_tests/get_measurements_req.rs | 2 +- test/spdmlib-test/src/requester_tests/get_version_req.rs | 2 +- test/spdmlib-test/src/requester_tests/heartbeat_req.rs | 2 +- test/spdmlib-test/src/requester_tests/key_exchange_req.rs | 2 +- test/spdmlib-test/src/requester_tests/key_update_req.rs | 2 +- test/spdmlib-test/src/requester_tests/mod.rs | 2 +- .../src/requester_tests/negotiate_algorithms_req.rs | 2 +- test/spdmlib-test/src/requester_tests/psk_exchange_req.rs | 2 +- test/spdmlib-test/src/requester_tests/psk_finish_req.rs | 2 +- test/spdmlib-test/src/requester_tests/vendor_req.rs | 2 +- test/spdmlib-test/src/responder_tests/algorithm_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/capability_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/certificate_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/challenge_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/context.rs | 2 +- test/spdmlib-test/src/responder_tests/digest_rsp.rs | 2 +- .../src/responder_tests/encap_get_certificate.rs | 2 +- test/spdmlib-test/src/responder_tests/encap_get_digest.rs | 2 +- test/spdmlib-test/src/responder_tests/encap_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/end_session_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/error_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/finish_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/heartbeat_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/key_exchange_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/key_update_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/measurement_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/mod.rs | 2 +- test/spdmlib-test/src/responder_tests/psk_exchange_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/psk_finish_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/vendor_rsp.rs | 2 +- test/spdmlib-test/src/responder_tests/version_rsp.rs | 2 +- test/spdmlib-test/src/test_client_server.rs | 2 +- test/spdmlib-test/src/test_library.rs | 2 +- test/spdmlib-test/src/watchdog_impl_sample.rs | 2 +- 331 files changed, 335 insertions(+), 335 deletions(-) diff --git a/codec/src/codec.rs b/codec/src/codec.rs index 1d69a08c..1aeb9dea 100644 --- a/codec/src/codec.rs +++ b/codec/src/codec.rs @@ -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; diff --git a/codec/src/lib.rs b/codec/src/lib.rs index efad29b0..e2b6ece5 100644 --- a/codec/src/lib.rs +++ b/codec/src/lib.rs @@ -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] diff --git a/codec/src/macros.rs b/codec/src/macros.rs index a2c151ca..a905c62c 100644 --- a/codec/src/macros.rs +++ b/codec/src/macros.rs @@ -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] diff --git a/executor/src/executor.rs b/executor/src/executor.rs index 65b203b8..cf0cf425 100644 --- a/executor/src/executor.rs +++ b/executor/src/executor.rs @@ -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; diff --git a/executor/src/lib.rs b/executor/src/lib.rs index d325b07d..68e26b94 100644 --- a/executor/src/lib.rs +++ b/executor/src/lib.rs @@ -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)] diff --git a/fuzz-target/fuzzlib/src/fake_aead_impl.rs b/fuzz-target/fuzzlib/src/fake_aead_impl.rs index c29ca631..ebacdbe5 100644 --- a/fuzz-target/fuzzlib/src/fake_aead_impl.rs +++ b/fuzz-target/fuzzlib/src/fake_aead_impl.rs @@ -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; diff --git a/fuzz-target/fuzzlib/src/fake_device_io.rs b/fuzz-target/fuzzlib/src/fake_device_io.rs index 60aa5664..3c0f6344 100644 --- a/fuzz-target/fuzzlib/src/fake_device_io.rs +++ b/fuzz-target/fuzzlib/src/fake_device_io.rs @@ -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)] diff --git a/fuzz-target/fuzzlib/src/fake_hkdf_impl.rs b/fuzz-target/fuzzlib/src/fake_hkdf_impl.rs index 25d00322..65c8291d 100644 --- a/fuzz-target/fuzzlib/src/fake_hkdf_impl.rs +++ b/fuzz-target/fuzzlib/src/fake_hkdf_impl.rs @@ -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::{ diff --git a/fuzz-target/fuzzlib/src/lib.rs b/fuzz-target/fuzzlib/src/lib.rs index 1bc18306..83754aef 100644 --- a/fuzz-target/fuzzlib/src/lib.rs +++ b/fuzz-target/fuzzlib/src/lib.rs @@ -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; diff --git a/fuzz-target/fuzzlib/src/secret.rs b/fuzz-target/fuzzlib/src/secret.rs index ba075f6b..8d110a1f 100644 --- a/fuzz-target/fuzzlib/src/secret.rs +++ b/fuzz-target/fuzzlib/src/secret.rs @@ -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)] diff --git a/fuzz-target/fuzzlib/src/time.rs b/fuzz-target/fuzzlib/src/time.rs index b53f810f..daa2760e 100644 --- a/fuzz-target/fuzzlib/src/time.rs +++ b/fuzz-target/fuzzlib/src/time.rs @@ -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 { diff --git a/fuzz-target/pass_context/src/main.rs b/fuzz-target/pass_context/src/main.rs index 9927b8d2..c6c070ad 100644 --- a/fuzz-target/pass_context/src/main.rs +++ b/fuzz-target/pass_context/src/main.rs @@ -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::*; diff --git a/fuzz-target/pass_context/src/pass_requester.rs b/fuzz-target/pass_context/src/pass_requester.rs index 4621dfff..2977a4fd 100644 --- a/fuzz-target/pass_context/src/pass_requester.rs +++ b/fuzz-target/pass_context/src/pass_requester.rs @@ -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; diff --git a/fuzz-target/pass_context/src/pass_responder.rs b/fuzz-target/pass_context/src/pass_responder.rs index a5c601b6..66f5e7a5 100644 --- a/fuzz-target/pass_context/src/pass_responder.rs +++ b/fuzz-target/pass_context/src/pass_responder.rs @@ -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; diff --git a/fuzz-target/random_requester/src/main.rs b/fuzz-target/random_requester/src/main.rs index aabfee34..ea8c11a4 100644 --- a/fuzz-target/random_requester/src/main.rs +++ b/fuzz-target/random_requester/src/main.rs @@ -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: diff --git a/fuzz-target/requester/algorithm_req/src/main.rs b/fuzz-target/requester/algorithm_req/src/main.rs index 4c58cc88..0b841210 100644 --- a/fuzz-target/requester/algorithm_req/src/main.rs +++ b/fuzz-target/requester/algorithm_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/capability_req/src/main.rs b/fuzz-target/requester/capability_req/src/main.rs index 652c91f1..32c08a6d 100644 --- a/fuzz-target/requester/capability_req/src/main.rs +++ b/fuzz-target/requester/capability_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/certificate_req/src/main.rs b/fuzz-target/requester/certificate_req/src/main.rs index f23dc774..49e0cb6e 100644 --- a/fuzz-target/requester/certificate_req/src/main.rs +++ b/fuzz-target/requester/certificate_req/src/main.rs @@ -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}; diff --git a/fuzz-target/requester/challenge_req/src/main.rs b/fuzz-target/requester/challenge_req/src/main.rs index 025fd37d..49d77b89 100644 --- a/fuzz-target/requester/challenge_req/src/main.rs +++ b/fuzz-target/requester/challenge_req/src/main.rs @@ -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::*; diff --git a/fuzz-target/requester/digest_req/src/main.rs b/fuzz-target/requester/digest_req/src/main.rs index e6b6db3c..39cb8d68 100644 --- a/fuzz-target/requester/digest_req/src/main.rs +++ b/fuzz-target/requester/digest_req/src/main.rs @@ -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::*; diff --git a/fuzz-target/requester/encapsulated_request_certificate_req/src/main.rs b/fuzz-target/requester/encapsulated_request_certificate_req/src/main.rs index 7efc0a93..351d3526 100644 --- a/fuzz-target/requester/encapsulated_request_certificate_req/src/main.rs +++ b/fuzz-target/requester/encapsulated_request_certificate_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/encapsulated_request_digest_req/src/main.rs b/fuzz-target/requester/encapsulated_request_digest_req/src/main.rs index 23621296..c3447416 100644 --- a/fuzz-target/requester/encapsulated_request_digest_req/src/main.rs +++ b/fuzz-target/requester/encapsulated_request_digest_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/encapsulated_request_req/src/main.rs b/fuzz-target/requester/encapsulated_request_req/src/main.rs index b7294065..41b5bbf3 100644 --- a/fuzz-target/requester/encapsulated_request_req/src/main.rs +++ b/fuzz-target/requester/encapsulated_request_req/src/main.rs @@ -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::*; diff --git a/fuzz-target/requester/end_session_req/src/main.rs b/fuzz-target/requester/end_session_req/src/main.rs index 5566976e..4e03c780 100644 --- a/fuzz-target/requester/end_session_req/src/main.rs +++ b/fuzz-target/requester/end_session_req/src/main.rs @@ -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}, diff --git a/fuzz-target/requester/finish_req/src/main.rs b/fuzz-target/requester/finish_req/src/main.rs index 2f012b36..bdc826da 100644 --- a/fuzz-target/requester/finish_req/src/main.rs +++ b/fuzz-target/requester/finish_req/src/main.rs @@ -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::{ diff --git a/fuzz-target/requester/heartbeat_req/src/main.rs b/fuzz-target/requester/heartbeat_req/src/main.rs index 676f0abe..7e45ce64 100644 --- a/fuzz-target/requester/heartbeat_req/src/main.rs +++ b/fuzz-target/requester/heartbeat_req/src/main.rs @@ -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::*; diff --git a/fuzz-target/requester/key_exchange_req/src/main.rs b/fuzz-target/requester/key_exchange_req/src/main.rs index d8aa4833..fb40bd6f 100644 --- a/fuzz-target/requester/key_exchange_req/src/main.rs +++ b/fuzz-target/requester/key_exchange_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/key_update_req/src/main.rs b/fuzz-target/requester/key_update_req/src/main.rs index 7c54ab03..4e9bf36c 100644 --- a/fuzz-target/requester/key_update_req/src/main.rs +++ b/fuzz-target/requester/key_update_req/src/main.rs @@ -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::{ diff --git a/fuzz-target/requester/measurement_req/src/main.rs b/fuzz-target/requester/measurement_req/src/main.rs index 8538391b..3676bfc9 100644 --- a/fuzz-target/requester/measurement_req/src/main.rs +++ b/fuzz-target/requester/measurement_req/src/main.rs @@ -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}, diff --git a/fuzz-target/requester/psk_exchange_req/src/main.rs b/fuzz-target/requester/psk_exchange_req/src/main.rs index 29f8ea94..a1431075 100644 --- a/fuzz-target/requester/psk_exchange_req/src/main.rs +++ b/fuzz-target/requester/psk_exchange_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/psk_finish_req/src/main.rs b/fuzz-target/requester/psk_finish_req/src/main.rs index b8ae22d8..4333ac07 100644 --- a/fuzz-target/requester/psk_finish_req/src/main.rs +++ b/fuzz-target/requester/psk_finish_req/src/main.rs @@ -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}, diff --git a/fuzz-target/requester/vendor_req/src/main.rs b/fuzz-target/requester/vendor_req/src/main.rs index 8099d45d..8c59f323 100644 --- a/fuzz-target/requester/vendor_req/src/main.rs +++ b/fuzz-target/requester/vendor_req/src/main.rs @@ -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; diff --git a/fuzz-target/requester/version_req/src/main.rs b/fuzz-target/requester/version_req/src/main.rs index 55dcc87d..813bdad5 100644 --- a/fuzz-target/requester/version_req/src/main.rs +++ b/fuzz-target/requester/version_req/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/algorithm_rsp/src/main.rs b/fuzz-target/responder/algorithm_rsp/src/main.rs index e10bd5b9..b50a9447 100644 --- a/fuzz-target/responder/algorithm_rsp/src/main.rs +++ b/fuzz-target/responder/algorithm_rsp/src/main.rs @@ -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, *}; diff --git a/fuzz-target/responder/capability_rsp/src/main.rs b/fuzz-target/responder/capability_rsp/src/main.rs index 68a72bac..bf1d0302 100644 --- a/fuzz-target/responder/capability_rsp/src/main.rs +++ b/fuzz-target/responder/capability_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/certificate_rsp/src/main.rs b/fuzz-target/responder/certificate_rsp/src/main.rs index 8b908877..422d77db 100644 --- a/fuzz-target/responder/certificate_rsp/src/main.rs +++ b/fuzz-target/responder/certificate_rsp/src/main.rs @@ -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, diff --git a/fuzz-target/responder/challenge_rsp/src/main.rs b/fuzz-target/responder/challenge_rsp/src/main.rs index c1c91d00..120f8298 100644 --- a/fuzz-target/responder/challenge_rsp/src/main.rs +++ b/fuzz-target/responder/challenge_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/deliver_encapsulated_response_certificate_rsp/src/main.rs b/fuzz-target/responder/deliver_encapsulated_response_certificate_rsp/src/main.rs index b7d3a340..f146935e 100644 --- a/fuzz-target/responder/deliver_encapsulated_response_certificate_rsp/src/main.rs +++ b/fuzz-target/responder/deliver_encapsulated_response_certificate_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/deliver_encapsulated_response_digest_rsp/src/main.rs b/fuzz-target/responder/deliver_encapsulated_response_digest_rsp/src/main.rs index f1264295..16eba801 100644 --- a/fuzz-target/responder/deliver_encapsulated_response_digest_rsp/src/main.rs +++ b/fuzz-target/responder/deliver_encapsulated_response_digest_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/deliver_encapsulated_response_rsp/src/main.rs b/fuzz-target/responder/deliver_encapsulated_response_rsp/src/main.rs index c0cea8f5..543b355c 100644 --- a/fuzz-target/responder/deliver_encapsulated_response_rsp/src/main.rs +++ b/fuzz-target/responder/deliver_encapsulated_response_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/digest_rsp/src/main.rs b/fuzz-target/responder/digest_rsp/src/main.rs index b3cd89be..326784a6 100644 --- a/fuzz-target/responder/digest_rsp/src/main.rs +++ b/fuzz-target/responder/digest_rsp/src/main.rs @@ -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}; diff --git a/fuzz-target/responder/end_session_rsp/src/main.rs b/fuzz-target/responder/end_session_rsp/src/main.rs index 0c58504a..284b6962 100644 --- a/fuzz-target/responder/end_session_rsp/src/main.rs +++ b/fuzz-target/responder/end_session_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/finish_rsp/src/main.rs b/fuzz-target/responder/finish_rsp/src/main.rs index 138ae216..b5a68bda 100644 --- a/fuzz-target/responder/finish_rsp/src/main.rs +++ b/fuzz-target/responder/finish_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/get_encapsulated_request_rsp/src/main.rs b/fuzz-target/responder/get_encapsulated_request_rsp/src/main.rs index 50bde2c0..95145748 100644 --- a/fuzz-target/responder/get_encapsulated_request_rsp/src/main.rs +++ b/fuzz-target/responder/get_encapsulated_request_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/heartbeat_rsp/src/main.rs b/fuzz-target/responder/heartbeat_rsp/src/main.rs index 69b212f5..7c0e63e5 100644 --- a/fuzz-target/responder/heartbeat_rsp/src/main.rs +++ b/fuzz-target/responder/heartbeat_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/key_update_rsp/src/main.rs b/fuzz-target/responder/key_update_rsp/src/main.rs index 1d403557..2fd29f1d 100644 --- a/fuzz-target/responder/key_update_rsp/src/main.rs +++ b/fuzz-target/responder/key_update_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/keyexchange_rsp/src/main.rs b/fuzz-target/responder/keyexchange_rsp/src/main.rs index bb1ecbbe..69ecbd27 100644 --- a/fuzz-target/responder/keyexchange_rsp/src/main.rs +++ b/fuzz-target/responder/keyexchange_rsp/src/main.rs @@ -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; diff --git a/fuzz-target/responder/measurement_rsp/src/main.rs b/fuzz-target/responder/measurement_rsp/src/main.rs index 44aea0f7..1d18ea94 100644 --- a/fuzz-target/responder/measurement_rsp/src/main.rs +++ b/fuzz-target/responder/measurement_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/psk_finish_rsp/src/main.rs b/fuzz-target/responder/psk_finish_rsp/src/main.rs index 0ac8044b..698aac08 100644 --- a/fuzz-target/responder/psk_finish_rsp/src/main.rs +++ b/fuzz-target/responder/psk_finish_rsp/src/main.rs @@ -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}, diff --git a/fuzz-target/responder/pskexchange_rsp/src/main.rs b/fuzz-target/responder/pskexchange_rsp/src/main.rs index faf71cf4..1a2f5ec5 100644 --- a/fuzz-target/responder/pskexchange_rsp/src/main.rs +++ b/fuzz-target/responder/pskexchange_rsp/src/main.rs @@ -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_SESSION_COUNT; use fuzzlib::spdmlib::common::session::SpdmSession; diff --git a/fuzz-target/responder/vendor_rsp/src/main.rs b/fuzz-target/responder/vendor_rsp/src/main.rs index 78b3e650..6dc186e3 100644 --- a/fuzz-target/responder/vendor_rsp/src/main.rs +++ b/fuzz-target/responder/vendor_rsp/src/main.rs @@ -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::error::SpdmResult; use fuzzlib::spdmlib::message::{ diff --git a/fuzz-target/responder/version_rsp/src/main.rs b/fuzz-target/responder/version_rsp/src/main.rs index a4cdf97c..61924dd1 100644 --- a/fuzz-target/responder/version_rsp/src/main.rs +++ b/fuzz-target/responder/version_rsp/src/main.rs @@ -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; diff --git a/idekm/src/lib.rs b/idekm/src/lib.rs index a338d760..a61d1ce0 100644 --- a/idekm/src/lib.rs +++ b/idekm/src/lib.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![forbid(unsafe_code)] #![cfg_attr(not(feature = "std"), no_std)] diff --git a/idekm/src/pci_ide_km_requester/mod.rs b/idekm/src/pci_ide_km_requester/mod.rs index 9b86bf8c..e5489f40 100644 --- a/idekm/src/pci_ide_km_requester/mod.rs +++ b/idekm/src/pci_ide_km_requester/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[derive(Debug, Default, Copy, Clone)] pub struct IdekmReqContext; diff --git a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_prog.rs b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_prog.rs index 03ede616..1958cfc9 100644 --- a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_prog.rs +++ b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_prog.rs @@ -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::Codec; use codec::Writer; diff --git a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_go.rs b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_go.rs index 579d6f40..38d2e5ad 100644 --- a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_go.rs +++ b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_go.rs @@ -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::Codec; use codec::Writer; diff --git a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_stop.rs b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_stop.rs index 23a92ce8..e23c85e7 100644 --- a/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_stop.rs +++ b/idekm/src/pci_ide_km_requester/pci_ide_km_req_key_set_stop.rs @@ -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::Codec; use codec::Writer; diff --git a/idekm/src/pci_ide_km_requester/pci_ide_km_req_query.rs b/idekm/src/pci_ide_km_requester/pci_ide_km_req_query.rs index 94c440cd..a491df80 100644 --- a/idekm/src/pci_ide_km_requester/pci_ide_km_req_query.rs +++ b/idekm/src/pci_ide_km_requester/pci_ide_km_req_query.rs @@ -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::{Codec, Writer}; use spdmlib::{ diff --git a/idekm/src/pci_ide_km_responder/mod.rs b/idekm/src/pci_ide_km_responder/mod.rs index e7283029..8de674d6 100644 --- a/idekm/src/pci_ide_km_responder/mod.rs +++ b/idekm/src/pci_ide_km_responder/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[derive(Debug, Default, Copy, Clone)] pub struct IdekmRspContext; diff --git a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_dispatcher.rs b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_dispatcher.rs index cd8aed11..4827fcca 100644 --- a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_dispatcher.rs +++ b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_dispatcher.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::{ pci_ide_km_rsp_key_prog, pci_ide_km_rsp_key_set_go, pci_ide_km_rsp_key_set_stop, diff --git a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_prog.rs b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_prog.rs index 2362296c..ea305784 100644 --- a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_prog.rs +++ b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_prog.rs @@ -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::{Codec, Writer}; use spdmlib::{ diff --git a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_go.rs b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_go.rs index 46222d02..b48fbaa8 100644 --- a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_go.rs +++ b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_go.rs @@ -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::{Codec, Writer}; use conquer_once::spin::OnceCell; diff --git a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_stop.rs b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_stop.rs index 6ca889af..8eb7bb8c 100644 --- a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_stop.rs +++ b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_key_set_stop.rs @@ -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::{Codec, Writer}; use conquer_once::spin::OnceCell; diff --git a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_query.rs b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_query.rs index e840192e..73d622cb 100644 --- a/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_query.rs +++ b/idekm/src/pci_ide_km_responder/pci_ide_km_rsp_query.rs @@ -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::{Codec, Writer}; use spdmlib::{ diff --git a/idekm/src/pci_idekm.rs b/idekm/src/pci_idekm.rs index bfd59b0a..700202ef 100644 --- a/idekm/src/pci_idekm.rs +++ b/idekm/src/pci_idekm.rs @@ -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::Codec; use core::convert::TryFrom; diff --git a/license.md b/license.md index fe462139..9ed5c518 100644 --- a/license.md +++ b/license.md @@ -1,12 +1,12 @@ -This project uses Apache-2.0 license. +This project uses Apache-2.0 license or MIT license, at your option. -[SPDX-License-Identifier](https://spdx.org/licenses/): [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html). +[SPDX-License-Identifier](https://spdx.org/licenses/): [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) or [MIT](https://spdx.org/licenses/MIT.html) ``` Copyright (c) 2021, Intel Corporation. All rights reserved. -SPDX-License-Identifier: Apache-2.0 +SPDX-License-Identifier: Apache-2.0 or MIT ``` codec derived from [rustls](https://github.com/ctz/rustls) project. -They reuse [rustls license](https://github.com/ctz/rustls/blob/main/LICENSE) - [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html). +They reuse [rustls license](https://github.com/ctz/rustls/blob/main/LICENSE) - [Apache-2.0](https://spdx.org/licenses/Apache-2.0.html) or [MIT](https://spdx.org/licenses/MIT.html). diff --git a/mctp_transport/src/header.rs b/mctp_transport/src/header.rs index f0f905f3..9a4e3dc4 100644 --- a/mctp_transport/src/header.rs +++ b/mctp_transport/src/header.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use async_trait::async_trait; use codec::enum_builder; diff --git a/mctp_transport/src/lib.rs b/mctp_transport/src/lib.rs index 22ff61b5..0810cc47 100644 --- a/mctp_transport/src/lib.rs +++ b/mctp_transport/src/lib.rs @@ -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] diff --git a/pcidoe_transport/src/header.rs b/pcidoe_transport/src/header.rs index 0e7a9222..072792db 100644 --- a/pcidoe_transport/src/header.rs +++ b/pcidoe_transport/src/header.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use async_trait::async_trait; extern crate alloc; diff --git a/pcidoe_transport/src/lib.rs b/pcidoe_transport/src/lib.rs index 9d26609e..f1de0b4f 100644 --- a/pcidoe_transport/src/lib.rs +++ b/pcidoe_transport/src/lib.rs @@ -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] diff --git a/spdmlib/build.rs b/spdmlib/build.rs index d54100f9..d819a765 100644 --- a/spdmlib/build.rs +++ b/spdmlib/build.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use serde::Deserialize; use std::assert; @@ -86,7 +86,7 @@ macro_rules! TEMPLATE { () => { "// Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT // // Automatically generated by build scripts. // It is not intended for manual editing. diff --git a/spdmlib/fuzz/fuzz_targets/algorithm_req.rs b/spdmlib/fuzz/fuzz_targets/algorithm_req.rs index 4558ff9a..2e39217f 100644 --- a/spdmlib/fuzz/fuzz_targets/algorithm_req.rs +++ b/spdmlib/fuzz/fuzz_targets/algorithm_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/algorithm_rsp.rs b/spdmlib/fuzz/fuzz_targets/algorithm_rsp.rs index 7ee8d84b..c7415689 100644 --- a/spdmlib/fuzz/fuzz_targets/algorithm_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/algorithm_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/capability_req.rs b/spdmlib/fuzz/fuzz_targets/capability_req.rs index d9c6418e..8cb722dd 100644 --- a/spdmlib/fuzz/fuzz_targets/capability_req.rs +++ b/spdmlib/fuzz/fuzz_targets/capability_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/capability_rsp.rs b/spdmlib/fuzz/fuzz_targets/capability_rsp.rs index b0116655..7c748f00 100644 --- a/spdmlib/fuzz/fuzz_targets/capability_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/capability_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/certificate_req.rs b/spdmlib/fuzz/fuzz_targets/certificate_req.rs index 5baee9b7..a23f28af 100644 --- a/spdmlib/fuzz/fuzz_targets/certificate_req.rs +++ b/spdmlib/fuzz/fuzz_targets/certificate_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/certificate_rsp.rs b/spdmlib/fuzz/fuzz_targets/certificate_rsp.rs index 3e0d6829..e3cddad7 100644 --- a/spdmlib/fuzz/fuzz_targets/certificate_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/certificate_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/challenge_req.rs b/spdmlib/fuzz/fuzz_targets/challenge_req.rs index f6833786..2851b063 100644 --- a/spdmlib/fuzz/fuzz_targets/challenge_req.rs +++ b/spdmlib/fuzz/fuzz_targets/challenge_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/challenge_rsp.rs b/spdmlib/fuzz/fuzz_targets/challenge_rsp.rs index 32882962..746637c1 100644 --- a/spdmlib/fuzz/fuzz_targets/challenge_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/challenge_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_certificate_rsp.rs b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_certificate_rsp.rs index 006c8607..c33fee69 100644 --- a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_certificate_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_certificate_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_digest_rsp.rs b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_digest_rsp.rs index bb1c1497..367d9d8a 100644 --- a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_digest_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_digest_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_rsp.rs b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_rsp.rs index e33884ef..8261ae99 100644 --- a/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/deliver_encapsulated_response_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/digest_req.rs b/spdmlib/fuzz/fuzz_targets/digest_req.rs index 47b82670..ed47a807 100644 --- a/spdmlib/fuzz/fuzz_targets/digest_req.rs +++ b/spdmlib/fuzz/fuzz_targets/digest_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/digest_rsp.rs b/spdmlib/fuzz/fuzz_targets/digest_rsp.rs index 692f2aed..764786bc 100644 --- a/spdmlib/fuzz/fuzz_targets/digest_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/digest_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/encapsulated_request_certificate_req.rs b/spdmlib/fuzz/fuzz_targets/encapsulated_request_certificate_req.rs index f58e392b..6204f5b9 100644 --- a/spdmlib/fuzz/fuzz_targets/encapsulated_request_certificate_req.rs +++ b/spdmlib/fuzz/fuzz_targets/encapsulated_request_certificate_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/encapsulated_request_digest_req.rs b/spdmlib/fuzz/fuzz_targets/encapsulated_request_digest_req.rs index 2d777aaa..a143122a 100644 --- a/spdmlib/fuzz/fuzz_targets/encapsulated_request_digest_req.rs +++ b/spdmlib/fuzz/fuzz_targets/encapsulated_request_digest_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/encapsulated_request_req.rs b/spdmlib/fuzz/fuzz_targets/encapsulated_request_req.rs index f6d50802..fb164ab6 100644 --- a/spdmlib/fuzz/fuzz_targets/encapsulated_request_req.rs +++ b/spdmlib/fuzz/fuzz_targets/encapsulated_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/end_session_req.rs b/spdmlib/fuzz/fuzz_targets/end_session_req.rs index 17533da2..99dbd899 100644 --- a/spdmlib/fuzz/fuzz_targets/end_session_req.rs +++ b/spdmlib/fuzz/fuzz_targets/end_session_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/end_session_rsp.rs b/spdmlib/fuzz/fuzz_targets/end_session_rsp.rs index 81ca41b6..4852bbe2 100644 --- a/spdmlib/fuzz/fuzz_targets/end_session_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/end_session_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/finish_req.rs b/spdmlib/fuzz/fuzz_targets/finish_req.rs index 04e847f0..4d51cbb7 100644 --- a/spdmlib/fuzz/fuzz_targets/finish_req.rs +++ b/spdmlib/fuzz/fuzz_targets/finish_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/finish_rsp.rs b/spdmlib/fuzz/fuzz_targets/finish_rsp.rs index 69a55632..6ecb0fb2 100644 --- a/spdmlib/fuzz/fuzz_targets/finish_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/finish_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/get_encapsulated_request_rsp.rs b/spdmlib/fuzz/fuzz_targets/get_encapsulated_request_rsp.rs index adaf0a72..5aeaa0d7 100644 --- a/spdmlib/fuzz/fuzz_targets/get_encapsulated_request_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/get_encapsulated_request_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/heartbeat_req.rs b/spdmlib/fuzz/fuzz_targets/heartbeat_req.rs index 07202cd0..51e4d65f 100644 --- a/spdmlib/fuzz/fuzz_targets/heartbeat_req.rs +++ b/spdmlib/fuzz/fuzz_targets/heartbeat_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/heartbeat_rsp.rs b/spdmlib/fuzz/fuzz_targets/heartbeat_rsp.rs index 48227a1e..6f711f7b 100644 --- a/spdmlib/fuzz/fuzz_targets/heartbeat_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/heartbeat_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/key_exchange_req.rs b/spdmlib/fuzz/fuzz_targets/key_exchange_req.rs index b3e0c449..7574abc0 100644 --- a/spdmlib/fuzz/fuzz_targets/key_exchange_req.rs +++ b/spdmlib/fuzz/fuzz_targets/key_exchange_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/key_update_req.rs b/spdmlib/fuzz/fuzz_targets/key_update_req.rs index 1c26d136..b02c49cb 100644 --- a/spdmlib/fuzz/fuzz_targets/key_update_req.rs +++ b/spdmlib/fuzz/fuzz_targets/key_update_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/key_update_rsp.rs b/spdmlib/fuzz/fuzz_targets/key_update_rsp.rs index 68366c68..ea414a01 100644 --- a/spdmlib/fuzz/fuzz_targets/key_update_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/key_update_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/keyexchange_rsp.rs b/spdmlib/fuzz/fuzz_targets/keyexchange_rsp.rs index d0656c5b..25dbb2b2 100644 --- a/spdmlib/fuzz/fuzz_targets/keyexchange_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/keyexchange_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/measurement_req.rs b/spdmlib/fuzz/fuzz_targets/measurement_req.rs index cf78d87f..e6e8a2fe 100644 --- a/spdmlib/fuzz/fuzz_targets/measurement_req.rs +++ b/spdmlib/fuzz/fuzz_targets/measurement_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/measurement_rsp.rs b/spdmlib/fuzz/fuzz_targets/measurement_rsp.rs index 867476a3..38eeb333 100644 --- a/spdmlib/fuzz/fuzz_targets/measurement_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/measurement_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/psk_exchange_req.rs b/spdmlib/fuzz/fuzz_targets/psk_exchange_req.rs index 64fa1780..e36fc74e 100644 --- a/spdmlib/fuzz/fuzz_targets/psk_exchange_req.rs +++ b/spdmlib/fuzz/fuzz_targets/psk_exchange_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/psk_finish_req.rs b/spdmlib/fuzz/fuzz_targets/psk_finish_req.rs index 8ca87eac..a06ba6f4 100644 --- a/spdmlib/fuzz/fuzz_targets/psk_finish_req.rs +++ b/spdmlib/fuzz/fuzz_targets/psk_finish_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/psk_finish_rsp.rs b/spdmlib/fuzz/fuzz_targets/psk_finish_rsp.rs index e32a49d5..adc494e5 100644 --- a/spdmlib/fuzz/fuzz_targets/psk_finish_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/psk_finish_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/pskexchange_rsp.rs b/spdmlib/fuzz/fuzz_targets/pskexchange_rsp.rs index 47a0721b..17580bef 100644 --- a/spdmlib/fuzz/fuzz_targets/pskexchange_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/pskexchange_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/vendor_req.rs b/spdmlib/fuzz/fuzz_targets/vendor_req.rs index 54922dfb..321d5b85 100644 --- a/spdmlib/fuzz/fuzz_targets/vendor_req.rs +++ b/spdmlib/fuzz/fuzz_targets/vendor_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/vendor_rsp.rs b/spdmlib/fuzz/fuzz_targets/vendor_rsp.rs index 2f8b9ddb..3669accc 100644 --- a/spdmlib/fuzz/fuzz_targets/vendor_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/vendor_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/version_req.rs b/spdmlib/fuzz/fuzz_targets/version_req.rs index 5079932c..6617184d 100644 --- a/spdmlib/fuzz/fuzz_targets/version_req.rs +++ b/spdmlib/fuzz/fuzz_targets/version_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/fuzz/fuzz_targets/version_rsp.rs b/spdmlib/fuzz/fuzz_targets/version_rsp.rs index c78145b2..f1b2d0de 100644 --- a/spdmlib/fuzz/fuzz_targets/version_rsp.rs +++ b/spdmlib/fuzz/fuzz_targets/version_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_main] diff --git a/spdmlib/src/common/key_schedule.rs b/spdmlib/src/common/key_schedule.rs index dc955c62..98634de2 100644 --- a/spdmlib/src/common/key_schedule.rs +++ b/spdmlib/src/common/key_schedule.rs @@ -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::crypto; use crate::protocol::*; diff --git a/spdmlib/src/common/mod.rs b/spdmlib/src/common/mod.rs index 97976fad..e917e799 100644 --- a/spdmlib/src/common/mod.rs +++ b/spdmlib/src/common/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub mod key_schedule; pub mod opaque; diff --git a/spdmlib/src/common/opaque.rs b/spdmlib/src/common/opaque.rs index dc62cd7d..b422c31e 100644 --- a/spdmlib/src/common/opaque.rs +++ b/spdmlib/src/common/opaque.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::spdm_codec::SpdmCodec; use super::*; diff --git a/spdmlib/src/common/session.rs b/spdmlib/src/common/session.rs index 61458db1..2d62e644 100644 --- a/spdmlib/src/common/session.rs +++ b/spdmlib/src/common/session.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::key_schedule::SpdmKeySchedule; use crate::config; diff --git a/spdmlib/src/common/spdm_codec.rs b/spdmlib/src/common/spdm_codec.rs index f9443a8b..1ebc9630 100644 --- a/spdmlib/src/common/spdm_codec.rs +++ b/spdmlib/src/common/spdm_codec.rs @@ -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::common::SpdmContext; use crate::config; diff --git a/spdmlib/src/crypto/bytes_mut_scrubbed.rs b/spdmlib/src/crypto/bytes_mut_scrubbed.rs index c1c87168..c68b71ef 100644 --- a/spdmlib/src/crypto/bytes_mut_scrubbed.rs +++ b/spdmlib/src/crypto/bytes_mut_scrubbed.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use bytes::{buf::IntoIter, Buf, BufMut, Bytes, BytesMut}; use core::{ diff --git a/spdmlib/src/crypto/crypto_callbacks.rs b/spdmlib/src/crypto/crypto_callbacks.rs index 96e2ff93..e1ef8570 100644 --- a/spdmlib/src/crypto/crypto_callbacks.rs +++ b/spdmlib/src/crypto/crypto_callbacks.rs @@ -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::error::SpdmResult; diff --git a/spdmlib/src/crypto/crypto_tests.rs b/spdmlib/src/crypto/crypto_tests.rs index f8712012..85c19d71 100644 --- a/spdmlib/src/crypto/crypto_tests.rs +++ b/spdmlib/src/crypto/crypto_tests.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::aead::{decrypt, encrypt}; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/crypto/mod.rs b/spdmlib/src/crypto/mod.rs index 4b4a9e78..ccc368e5 100644 --- a/spdmlib/src/crypto/mod.rs +++ b/spdmlib/src/crypto/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub mod bytes_mut_scrubbed; mod crypto_callbacks; diff --git a/spdmlib/src/crypto/spdm_ring/aead_impl.rs b/spdmlib/src/crypto/spdm_ring/aead_impl.rs index 94b2b7da..da04cabf 100644 --- a/spdmlib/src/crypto/spdm_ring/aead_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/aead_impl.rs @@ -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::crypto::bytes_mut_scrubbed::BytesMutStrubbed; use crate::crypto::SpdmAead; diff --git a/spdmlib/src/crypto/spdm_ring/asym_verify_impl.rs b/spdmlib/src/crypto/spdm_ring/asym_verify_impl.rs index a1b0d7d5..9eb35968 100644 --- a/spdmlib/src/crypto/spdm_ring/asym_verify_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/asym_verify_impl.rs @@ -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::crypto::{x509v3, SpdmAsymVerify}; use crate::error::{SpdmResult, SPDM_STATUS_INVALID_CERT, SPDM_STATUS_VERIF_FAIL}; diff --git a/spdmlib/src/crypto/spdm_ring/cert_operation_impl.rs b/spdmlib/src/crypto/spdm_ring/cert_operation_impl.rs index 3197664f..86b70e36 100644 --- a/spdmlib/src/crypto/spdm_ring/cert_operation_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/cert_operation_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT extern crate alloc; use alloc::vec; diff --git a/spdmlib/src/crypto/spdm_ring/dhe_impl.rs b/spdmlib/src/crypto/spdm_ring/dhe_impl.rs index cf9b136a..7c360500 100644 --- a/spdmlib/src/crypto/spdm_ring/dhe_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/dhe_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT extern crate alloc; use alloc::boxed::Box; diff --git a/spdmlib/src/crypto/spdm_ring/hash_impl.rs b/spdmlib/src/crypto/spdm_ring/hash_impl.rs index 74874c6e..171c1b17 100644 --- a/spdmlib/src/crypto/spdm_ring/hash_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/hash_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT extern crate alloc; diff --git a/spdmlib/src/crypto/spdm_ring/hkdf_impl.rs b/spdmlib/src/crypto/spdm_ring/hkdf_impl.rs index 631ee647..e25bd0a8 100644 --- a/spdmlib/src/crypto/spdm_ring/hkdf_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/hkdf_impl.rs @@ -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::crypto::SpdmHkdf; use crate::protocol::{ diff --git a/spdmlib/src/crypto/spdm_ring/hmac_impl.rs b/spdmlib/src/crypto/spdm_ring/hmac_impl.rs index 10eb8f30..e1a20f61 100644 --- a/spdmlib/src/crypto/spdm_ring/hmac_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/hmac_impl.rs @@ -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::crypto::SpdmHmac; use crate::error::{SpdmResult, SPDM_STATUS_VERIF_FAIL}; diff --git a/spdmlib/src/crypto/spdm_ring/mod.rs b/spdmlib/src/crypto/spdm_ring/mod.rs index 6321d5cd..36530ef1 100644 --- a/spdmlib/src/crypto/spdm_ring/mod.rs +++ b/spdmlib/src/crypto/spdm_ring/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub mod aead_impl; pub mod asym_verify_impl; diff --git a/spdmlib/src/crypto/spdm_ring/rand_impl.rs b/spdmlib/src/crypto/spdm_ring/rand_impl.rs index f7d31405..ba804eda 100644 --- a/spdmlib/src/crypto/spdm_ring/rand_impl.rs +++ b/spdmlib/src/crypto/spdm_ring/rand_impl.rs @@ -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::crypto::SpdmCryptoRandom; use crate::error::{SpdmResult, SPDM_STATUS_CRYPTO_ERROR}; diff --git a/spdmlib/src/crypto/x509v3.rs b/spdmlib/src/crypto/x509v3.rs index 08a78a6b..6eb4d06c 100644 --- a/spdmlib/src/crypto/x509v3.rs +++ b/spdmlib/src/crypto/x509v3.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::error::{SpdmResult, SPDM_STATUS_VERIF_FAIL}; use crate::protocol::SpdmBaseAsymAlgo; diff --git a/spdmlib/src/error.rs b/spdmlib/src/error.rs index 3b0fa504..99f53a24 100644 --- a/spdmlib/src/error.rs +++ b/spdmlib/src/error.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use core::{ convert::{TryFrom, TryInto}, diff --git a/spdmlib/src/lib.rs b/spdmlib/src/lib.rs index 0f3eb11a..e8d2bae5 100644 --- a/spdmlib/src/lib.rs +++ b/spdmlib/src/lib.rs @@ -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)] #![cfg_attr(not(feature = "std"), no_std)] diff --git a/spdmlib/src/message/algorithm.rs b/spdmlib/src/message/algorithm.rs index 39d94074..2479a579 100644 --- a/spdmlib/src/message/algorithm.rs +++ b/spdmlib/src/message/algorithm.rs @@ -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::common::spdm_codec::*; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/algorithm_test.rs b/spdmlib/src/message/algorithm_test.rs index 61df2906..5a3e3510 100644 --- a/spdmlib/src/message/algorithm_test.rs +++ b/spdmlib/src/message/algorithm_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/capability.rs b/spdmlib/src/message/capability.rs index 31e09837..09cee1e3 100644 --- a/spdmlib/src/message/capability.rs +++ b/spdmlib/src/message/capability.rs @@ -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::common::spdm_codec::SpdmCodec; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/capability_test.rs b/spdmlib/src/message/capability_test.rs index 9128d333..320a5baa 100644 --- a/spdmlib/src/message/capability_test.rs +++ b/spdmlib/src/message/capability_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/certificate.rs b/spdmlib/src/message/certificate.rs index 7ea6b2c5..ff3bfc23 100644 --- a/spdmlib/src/message/certificate.rs +++ b/spdmlib/src/message/certificate.rs @@ -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::common::spdm_codec::SpdmCodec; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/certificate_test.rs b/spdmlib/src/message/certificate_test.rs index cf689c97..352b077e 100644 --- a/spdmlib/src/message/certificate_test.rs +++ b/spdmlib/src/message/certificate_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/challenge.rs b/spdmlib/src/message/challenge.rs index 837abea2..77860846 100644 --- a/spdmlib/src/message/challenge.rs +++ b/spdmlib/src/message/challenge.rs @@ -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::common; use crate::common::opaque::SpdmOpaqueStruct; diff --git a/spdmlib/src/message/challenge_test.rs b/spdmlib/src/message/challenge_test.rs index 49e4ac7f..d51ca996 100644 --- a/spdmlib/src/message/challenge_test.rs +++ b/spdmlib/src/message/challenge_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/digest.rs b/spdmlib/src/message/digest.rs index 91e618a1..4fb987e5 100644 --- a/spdmlib/src/message/digest.rs +++ b/spdmlib/src/message/digest.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/digest_test.rs b/spdmlib/src/message/digest_test.rs index 200d3233..8f78a57b 100644 --- a/spdmlib/src/message/digest_test.rs +++ b/spdmlib/src/message/digest_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/encapsulated.rs b/spdmlib/src/message/encapsulated.rs index 4fb0c088..f6e229f5 100644 --- a/spdmlib/src/message/encapsulated.rs +++ b/spdmlib/src/message/encapsulated.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/encapsulated_test.rs b/spdmlib/src/message/encapsulated_test.rs index 4d2da617..d99f43c2 100644 --- a/spdmlib/src/message/encapsulated_test.rs +++ b/spdmlib/src/message/encapsulated_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/end_session.rs b/spdmlib/src/message/end_session.rs index b4d0604b..0fc62092 100644 --- a/spdmlib/src/message/end_session.rs +++ b/spdmlib/src/message/end_session.rs @@ -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::common::spdm_codec::SpdmCodec; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/end_session_test.rs b/spdmlib/src/message/end_session_test.rs index 07058100..b3354cae 100644 --- a/spdmlib/src/message/end_session_test.rs +++ b/spdmlib/src/message/end_session_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/error.rs b/spdmlib/src/message/error.rs index acd9e1bd..ce4a4ec4 100644 --- a/spdmlib/src/message/error.rs +++ b/spdmlib/src/message/error.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/finish.rs b/spdmlib/src/message/finish.rs index c0f9065c..341342e7 100644 --- a/spdmlib/src/message/finish.rs +++ b/spdmlib/src/message/finish.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/finish_test.rs b/spdmlib/src/message/finish_test.rs index 6677bf10..13ad7dae 100644 --- a/spdmlib/src/message/finish_test.rs +++ b/spdmlib/src/message/finish_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/heartbeat.rs b/spdmlib/src/message/heartbeat.rs index e029d360..21259826 100644 --- a/spdmlib/src/message/heartbeat.rs +++ b/spdmlib/src/message/heartbeat.rs @@ -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::common::spdm_codec::SpdmCodec; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/heartbeat_test.rs b/spdmlib/src/message/heartbeat_test.rs index 0b43699d..9b017c05 100644 --- a/spdmlib/src/message/heartbeat_test.rs +++ b/spdmlib/src/message/heartbeat_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/message/key_exchange.rs b/spdmlib/src/message/key_exchange.rs index 7c4f9fd9..ad37d205 100644 --- a/spdmlib/src/message/key_exchange.rs +++ b/spdmlib/src/message/key_exchange.rs @@ -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::common; use crate::common::opaque::SpdmOpaqueStruct; diff --git a/spdmlib/src/message/key_exchange_test.rs b/spdmlib/src/message/key_exchange_test.rs index 34584ecc..11308ac2 100644 --- a/spdmlib/src/message/key_exchange_test.rs +++ b/spdmlib/src/message/key_exchange_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/key_update.rs b/spdmlib/src/message/key_update.rs index 89f72535..b93679ee 100644 --- a/spdmlib/src/message/key_update.rs +++ b/spdmlib/src/message/key_update.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/key_update_test.rs b/spdmlib/src/message/key_update_test.rs index d897eeef..f3b0a75c 100644 --- a/spdmlib/src/message/key_update_test.rs +++ b/spdmlib/src/message/key_update_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/measurement.rs b/spdmlib/src/message/measurement.rs index 0be239c1..e53fe75a 100644 --- a/spdmlib/src/message/measurement.rs +++ b/spdmlib/src/message/measurement.rs @@ -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::common; use crate::common::opaque::SpdmOpaqueStruct; diff --git a/spdmlib/src/message/measurement_test.rs b/spdmlib/src/message/measurement_test.rs index 100565b5..3a5936bb 100644 --- a/spdmlib/src/message/measurement_test.rs +++ b/spdmlib/src/message/measurement_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::{ diff --git a/spdmlib/src/message/mod.rs b/spdmlib/src/message/mod.rs index 14c56946..1d1e35ca 100644 --- a/spdmlib/src/message/mod.rs +++ b/spdmlib/src/message/mod.rs @@ -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::common::{SpdmCodec, SpdmContext}; use crate::error::{SpdmStatus, SPDM_STATUS_BUFFER_FULL}; diff --git a/spdmlib/src/message/mod_test.common.inc.rs b/spdmlib/src/message/mod_test.common.inc.rs index e14c5116..5c168172 100644 --- a/spdmlib/src/message/mod_test.common.inc.rs +++ b/spdmlib/src/message/mod_test.common.inc.rs @@ -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::common::{SpdmCodec, SpdmContext, SpdmDeviceIo, SpdmTransportEncap}; use crate::config::MAX_SPDM_MSG_SIZE; diff --git a/spdmlib/src/message/psk_exchange.rs b/spdmlib/src/message/psk_exchange.rs index b65d7230..bcaa6dd4 100644 --- a/spdmlib/src/message/psk_exchange.rs +++ b/spdmlib/src/message/psk_exchange.rs @@ -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::common; use crate::common::opaque::{SpdmOpaqueStruct, MAX_SPDM_OPAQUE_SIZE}; diff --git a/spdmlib/src/message/psk_finish.rs b/spdmlib/src/message/psk_finish.rs index 73a0e544..762a7d6e 100644 --- a/spdmlib/src/message/psk_finish.rs +++ b/spdmlib/src/message/psk_finish.rs @@ -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::common::spdm_codec::SpdmCodec; use crate::error::SPDM_STATUS_BUFFER_FULL; diff --git a/spdmlib/src/message/respond_if_ready.rs b/spdmlib/src/message/respond_if_ready.rs index dfeea844..7291362b 100644 --- a/spdmlib/src/message/respond_if_ready.rs +++ b/spdmlib/src/message/respond_if_ready.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::spdm_codec::SpdmCodec; use crate::common::{self}; diff --git a/spdmlib/src/message/vendor.rs b/spdmlib/src/message/vendor.rs index c75672ca..adba7381 100644 --- a/spdmlib/src/message/vendor.rs +++ b/spdmlib/src/message/vendor.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/version.rs b/spdmlib/src/message/version.rs index d4afbbed..4f6621dd 100644 --- a/spdmlib/src/message/version.rs +++ b/spdmlib/src/message/version.rs @@ -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::common; use crate::common::spdm_codec::SpdmCodec; diff --git a/spdmlib/src/message/version_test.rs b/spdmlib/src/message/version_test.rs index 7e5b9afe..ecea226c 100644 --- a/spdmlib/src/message/version_test.rs +++ b/spdmlib/src/message/version_test.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::*; use crate::common::{SpdmCodec, SpdmConfigInfo, SpdmContext, SpdmProvisionInfo}; diff --git a/spdmlib/src/protocol/algo.rs b/spdmlib/src/protocol/algo.rs index 142e9ba4..25f80108 100644 --- a/spdmlib/src/protocol/algo.rs +++ b/spdmlib/src/protocol/algo.rs @@ -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::config; use crate::crypto::bytes_mut_scrubbed::BytesMutStrubbed; diff --git a/spdmlib/src/protocol/capability.rs b/spdmlib/src/protocol/capability.rs index 89d80901..a11bf85c 100644 --- a/spdmlib/src/protocol/capability.rs +++ b/spdmlib/src/protocol/capability.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::{Codec, Reader, Writer}; diff --git a/spdmlib/src/protocol/mod.rs b/spdmlib/src/protocol/mod.rs index c2e3d11b..7c0b9ccc 100644 --- a/spdmlib/src/protocol/mod.rs +++ b/spdmlib/src/protocol/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT extern crate alloc; use alloc::vec::Vec; diff --git a/spdmlib/src/protocol/version.rs b/spdmlib/src/protocol/version.rs index aa627345..e42d4877 100644 --- a/spdmlib/src/protocol/version.rs +++ b/spdmlib/src/protocol/version.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::{Codec, EncodeErr}; use core::convert::TryFrom; diff --git a/spdmlib/src/requester/challenge_req.rs b/spdmlib/src/requester/challenge_req.rs index 83299ef3..88f97415 100644 --- a/spdmlib/src/requester/challenge_req.rs +++ b/spdmlib/src/requester/challenge_req.rs @@ -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::crypto; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/requester/context.rs b/spdmlib/src/requester/context.rs index f2f2dd46..0dc53b98 100644 --- a/spdmlib/src/requester/context.rs +++ b/spdmlib/src/requester/context.rs @@ -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::common::{self, SpdmDeviceIo, SpdmTransportEncap}; use crate::common::{ManagedBufferA, ST1}; diff --git a/spdmlib/src/requester/encap_certificate.rs b/spdmlib/src/requester/encap_certificate.rs index 4918aa71..ed94281c 100644 --- a/spdmlib/src/requester/encap_certificate.rs +++ b/spdmlib/src/requester/encap_certificate.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/requester/encap_digest.rs b/spdmlib/src/requester/encap_digest.rs index d43017c3..db50e39a 100644 --- a/spdmlib/src/requester/encap_digest.rs +++ b/spdmlib/src/requester/encap_digest.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/requester/encap_error.rs b/spdmlib/src/requester/encap_error.rs index 2c51b4a4..32c4ee80 100644 --- a/spdmlib/src/requester/encap_error.rs +++ b/spdmlib/src/requester/encap_error.rs @@ -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; diff --git a/spdmlib/src/requester/encap_req.rs b/spdmlib/src/requester/encap_req.rs index 1a5839e0..e3bc885a 100644 --- a/spdmlib/src/requester/encap_req.rs +++ b/spdmlib/src/requester/encap_req.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/requester/end_session_req.rs b/spdmlib/src/requester/end_session_req.rs index 2421103a..9d363425 100644 --- a/spdmlib/src/requester/end_session_req.rs +++ b/spdmlib/src/requester/end_session_req.rs @@ -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::error::{ SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD, diff --git a/spdmlib/src/requester/finish_req.rs b/spdmlib/src/requester/finish_req.rs index fd6103da..c5c6eb10 100644 --- a/spdmlib/src/requester/finish_req.rs +++ b/spdmlib/src/requester/finish_req.rs @@ -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::common::session::SpdmSession; use crate::error::*; diff --git a/spdmlib/src/requester/get_capabilities_req.rs b/spdmlib/src/requester/get_capabilities_req.rs index cd5be864..e73c9d53 100644 --- a/spdmlib/src/requester/get_capabilities_req.rs +++ b/spdmlib/src/requester/get_capabilities_req.rs @@ -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::error::{SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD}; use crate::message::*; diff --git a/spdmlib/src/requester/get_certificate_req.rs b/spdmlib/src/requester/get_certificate_req.rs index e964e1c1..76b55d2a 100644 --- a/spdmlib/src/requester/get_certificate_req.rs +++ b/spdmlib/src/requester/get_certificate_req.rs @@ -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::crypto::{self, is_root_certificate}; use crate::error::{ diff --git a/spdmlib/src/requester/get_digests_req.rs b/spdmlib/src/requester/get_digests_req.rs index 53036d60..8b12887a 100644 --- a/spdmlib/src/requester/get_digests_req.rs +++ b/spdmlib/src/requester/get_digests_req.rs @@ -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::error::{SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD}; use crate::message::*; diff --git a/spdmlib/src/requester/get_measurements_req.rs b/spdmlib/src/requester/get_measurements_req.rs index 1ac5eaf9..0137f89d 100644 --- a/spdmlib/src/requester/get_measurements_req.rs +++ b/spdmlib/src/requester/get_measurements_req.rs @@ -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::crypto; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/requester/get_version_req.rs b/spdmlib/src/requester/get_version_req.rs index 9f49f758..474686e5 100644 --- a/spdmlib/src/requester/get_version_req.rs +++ b/spdmlib/src/requester/get_version_req.rs @@ -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::error::{ SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD, SPDM_STATUS_NEGOTIATION_FAIL, diff --git a/spdmlib/src/requester/handle_error_response_req.rs b/spdmlib/src/requester/handle_error_response_req.rs index 47d7646d..474b8ed1 100644 --- a/spdmlib/src/requester/handle_error_response_req.rs +++ b/spdmlib/src/requester/handle_error_response_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::{Codec, Reader}; diff --git a/spdmlib/src/requester/heartbeat_req.rs b/spdmlib/src/requester/heartbeat_req.rs index 1c53e813..245e5167 100644 --- a/spdmlib/src/requester/heartbeat_req.rs +++ b/spdmlib/src/requester/heartbeat_req.rs @@ -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::error::{SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD}; use crate::message::*; diff --git a/spdmlib/src/requester/key_exchange_req.rs b/spdmlib/src/requester/key_exchange_req.rs index 8535e090..c9b45ef2 100644 --- a/spdmlib/src/requester/key_exchange_req.rs +++ b/spdmlib/src/requester/key_exchange_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT extern crate alloc; use alloc::boxed::Box; diff --git a/spdmlib/src/requester/key_update_req.rs b/spdmlib/src/requester/key_update_req.rs index 294364dd..49d3ea7d 100644 --- a/spdmlib/src/requester/key_update_req.rs +++ b/spdmlib/src/requester/key_update_req.rs @@ -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::error::{ SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD, diff --git a/spdmlib/src/requester/mod.rs b/spdmlib/src/requester/mod.rs index 1262c743..d32f9ad9 100644 --- a/spdmlib/src/requester/mod.rs +++ b/spdmlib/src/requester/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT mod context; diff --git a/spdmlib/src/requester/mutual_authenticate.rs b/spdmlib/src/requester/mutual_authenticate.rs index 9a842c44..3478f692 100644 --- a/spdmlib/src/requester/mutual_authenticate.rs +++ b/spdmlib/src/requester/mutual_authenticate.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::{ error::{SpdmResult, SPDM_STATUS_INVALID_MSG_FIELD, SPDM_STATUS_INVALID_STATE_LOCAL}, diff --git a/spdmlib/src/requester/negotiate_algorithms_req.rs b/spdmlib/src/requester/negotiate_algorithms_req.rs index 4d38107d..5fb7def0 100644 --- a/spdmlib/src/requester/negotiate_algorithms_req.rs +++ b/spdmlib/src/requester/negotiate_algorithms_req.rs @@ -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::error::{ SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD, SPDM_STATUS_NEGOTIATION_FAIL, diff --git a/spdmlib/src/requester/psk_exchange_req.rs b/spdmlib/src/requester/psk_exchange_req.rs index 04c4db30..8166fa1a 100644 --- a/spdmlib/src/requester/psk_exchange_req.rs +++ b/spdmlib/src/requester/psk_exchange_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use config::MAX_SPDM_PSK_CONTEXT_SIZE; diff --git a/spdmlib/src/requester/psk_finish_req.rs b/spdmlib/src/requester/psk_finish_req.rs index 9dcbc3c8..1b1f2159 100644 --- a/spdmlib/src/requester/psk_finish_req.rs +++ b/spdmlib/src/requester/psk_finish_req.rs @@ -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::error::{ SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD, diff --git a/spdmlib/src/requester/vendor_req.rs b/spdmlib/src/requester/vendor_req.rs index db95b881..2c82591a 100644 --- a/spdmlib/src/requester/vendor_req.rs +++ b/spdmlib/src/requester/vendor_req.rs @@ -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::error::{SpdmResult, SPDM_STATUS_ERROR_PEER, SPDM_STATUS_INVALID_MSG_FIELD}; use crate::message::*; diff --git a/spdmlib/src/responder/algorithm_rsp.rs b/spdmlib/src/responder/algorithm_rsp.rs index 6979b2f5..07d66a42 100644 --- a/spdmlib/src/responder/algorithm_rsp.rs +++ b/spdmlib/src/responder/algorithm_rsp.rs @@ -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::common::SpdmCodec; use crate::common::SpdmConnectionState; diff --git a/spdmlib/src/responder/app_message_handler.rs b/spdmlib/src/responder/app_message_handler.rs index 967bfae4..6e6b7520 100644 --- a/spdmlib/src/responder/app_message_handler.rs +++ b/spdmlib/src/responder/app_message_handler.rs @@ -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 conquer_once::spin::OnceCell; diff --git a/spdmlib/src/responder/capability_rsp.rs b/spdmlib/src/responder/capability_rsp.rs index 1d20eab2..b1422957 100644 --- a/spdmlib/src/responder/capability_rsp.rs +++ b/spdmlib/src/responder/capability_rsp.rs @@ -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::common::SpdmCodec; use crate::common::SpdmConnectionState; diff --git a/spdmlib/src/responder/certificate_rsp.rs b/spdmlib/src/responder/certificate_rsp.rs index a158e887..76c33aef 100644 --- a/spdmlib/src/responder/certificate_rsp.rs +++ b/spdmlib/src/responder/certificate_rsp.rs @@ -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::common::SpdmCodec; use crate::common::SpdmConnectionState; diff --git a/spdmlib/src/responder/challenge_rsp.rs b/spdmlib/src/responder/challenge_rsp.rs index e703b36a..727c1f79 100644 --- a/spdmlib/src/responder/challenge_rsp.rs +++ b/spdmlib/src/responder/challenge_rsp.rs @@ -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::common::opaque::{SpdmOpaqueStruct, MAX_SPDM_OPAQUE_SIZE}; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/responder/context.rs b/spdmlib/src/responder/context.rs index 62d58cfc..a5951afd 100644 --- a/spdmlib/src/responder/context.rs +++ b/spdmlib/src/responder/context.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use super::app_message_handler::dispatch_secured_app_message_cb; use crate::common::{session::SpdmSessionState, SpdmDeviceIo, SpdmTransportEncap}; diff --git a/spdmlib/src/responder/digest_rsp.rs b/spdmlib/src/responder/digest_rsp.rs index 7d842b0c..79f5b727 100644 --- a/spdmlib/src/responder/digest_rsp.rs +++ b/spdmlib/src/responder/digest_rsp.rs @@ -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::common::SpdmCodec; use crate::common::SpdmConnectionState; diff --git a/spdmlib/src/responder/encap_get_certificate.rs b/spdmlib/src/responder/encap_get_certificate.rs index edd6ae40..1bc06a2f 100644 --- a/spdmlib/src/responder/encap_get_certificate.rs +++ b/spdmlib/src/responder/encap_get_certificate.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/responder/encap_get_digest.rs b/spdmlib/src/responder/encap_get_digest.rs index eda0f24f..7456fe32 100644 --- a/spdmlib/src/responder/encap_get_digest.rs +++ b/spdmlib/src/responder/encap_get_digest.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/responder/encap_rsp.rs b/spdmlib/src/responder/encap_rsp.rs index 020b7145..310595ae 100644 --- a/spdmlib/src/responder/encap_rsp.rs +++ b/spdmlib/src/responder/encap_rsp.rs @@ -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::{Codec, Reader, Writer}; diff --git a/spdmlib/src/responder/end_session_rsp.rs b/spdmlib/src/responder/end_session_rsp.rs index e476d426..537419e6 100644 --- a/spdmlib/src/responder/end_session_rsp.rs +++ b/spdmlib/src/responder/end_session_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/responder/error_rsp.rs b/spdmlib/src/responder/error_rsp.rs index 4c563206..dc475daf 100644 --- a/spdmlib/src/responder/error_rsp.rs +++ b/spdmlib/src/responder/error_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/responder/finish_rsp.rs b/spdmlib/src/responder/finish_rsp.rs index f88d1766..615e9af9 100644 --- a/spdmlib/src/responder/finish_rsp.rs +++ b/spdmlib/src/responder/finish_rsp.rs @@ -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::common::session::SpdmSession; use crate::common::{ManagedBuffer12Sign, SpdmCodec}; diff --git a/spdmlib/src/responder/heartbeat_rsp.rs b/spdmlib/src/responder/heartbeat_rsp.rs index 6c8b9382..4989be15 100644 --- a/spdmlib/src/responder/heartbeat_rsp.rs +++ b/spdmlib/src/responder/heartbeat_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/responder/key_exchange_rsp.rs b/spdmlib/src/responder/key_exchange_rsp.rs index 0edb3f53..421d6816 100644 --- a/spdmlib/src/responder/key_exchange_rsp.rs +++ b/spdmlib/src/responder/key_exchange_rsp.rs @@ -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::common::session::SpdmSession; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/responder/key_update_rsp.rs b/spdmlib/src/responder/key_update_rsp.rs index 133a6b1e..63d43a56 100644 --- a/spdmlib/src/responder/key_update_rsp.rs +++ b/spdmlib/src/responder/key_update_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/responder/measurement_rsp.rs b/spdmlib/src/responder/measurement_rsp.rs index 7cc56ee1..a9fa777e 100644 --- a/spdmlib/src/responder/measurement_rsp.rs +++ b/spdmlib/src/responder/measurement_rsp.rs @@ -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::common::opaque::{SpdmOpaqueStruct, MAX_SPDM_OPAQUE_SIZE}; #[cfg(feature = "hashed-transcript-data")] diff --git a/spdmlib/src/responder/mod.rs b/spdmlib/src/responder/mod.rs index 4bc67c04..3abe3cd6 100644 --- a/spdmlib/src/responder/mod.rs +++ b/spdmlib/src/responder/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT mod context; diff --git a/spdmlib/src/responder/psk_exchange_rsp.rs b/spdmlib/src/responder/psk_exchange_rsp.rs index 913b3da7..e1fa5c15 100644 --- a/spdmlib/src/responder/psk_exchange_rsp.rs +++ b/spdmlib/src/responder/psk_exchange_rsp.rs @@ -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::common::opaque::SpdmOpaqueStruct; use crate::common::SecuredMessageVersion; diff --git a/spdmlib/src/responder/psk_finish_rsp.rs b/spdmlib/src/responder/psk_finish_rsp.rs index 2f8cd579..6d444de1 100644 --- a/spdmlib/src/responder/psk_finish_rsp.rs +++ b/spdmlib/src/responder/psk_finish_rsp.rs @@ -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::common::SpdmCodec; use crate::common::INVALID_SLOT; diff --git a/spdmlib/src/responder/vendor_rsp.rs b/spdmlib/src/responder/vendor_rsp.rs index 7217fa83..58da6b60 100644 --- a/spdmlib/src/responder/vendor_rsp.rs +++ b/spdmlib/src/responder/vendor_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/responder/version_rsp.rs b/spdmlib/src/responder/version_rsp.rs index b0e6fc6d..05c3fe8d 100644 --- a/spdmlib/src/responder/version_rsp.rs +++ b/spdmlib/src/responder/version_rsp.rs @@ -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::common::SpdmCodec; use crate::error::SpdmResult; diff --git a/spdmlib/src/secret/mod.rs b/spdmlib/src/secret/mod.rs index 23104493..0a36cd87 100644 --- a/spdmlib/src/secret/mod.rs +++ b/spdmlib/src/secret/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT mod secret_callback; use conquer_once::spin::OnceCell; diff --git a/spdmlib/src/secret/secret_callback.rs b/spdmlib/src/secret/secret_callback.rs index 91533787..d9414283 100644 --- a/spdmlib/src/secret/secret_callback.rs +++ b/spdmlib/src/secret/secret_callback.rs @@ -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::protocol::{ SpdmBaseAsymAlgo, SpdmBaseHashAlgo, SpdmDigestStruct, SpdmHkdfOutputKeyingMaterial, diff --git a/spdmlib/src/time/mod.rs b/spdmlib/src/time/mod.rs index 7ae5ed4b..cfb8602f 100644 --- a/spdmlib/src/time/mod.rs +++ b/spdmlib/src/time/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT mod time_callbacks; diff --git a/spdmlib/src/time/time_callbacks.rs b/spdmlib/src/time/time_callbacks.rs index 174aabad..22556ebe 100644 --- a/spdmlib/src/time/time_callbacks.rs +++ b/spdmlib/src/time/time_callbacks.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[derive(Clone)] pub struct SpdmTime { diff --git a/spdmlib/src/watchdog/mod.rs b/spdmlib/src/watchdog/mod.rs index 1ac9d8cc..332e57c2 100644 --- a/spdmlib/src/watchdog/mod.rs +++ b/spdmlib/src/watchdog/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT mod watchdog_callbacks; diff --git a/spdmlib/src/watchdog/watchdog_callbacks.rs b/spdmlib/src/watchdog/watchdog_callbacks.rs index 8ec7f629..639a6ed3 100644 --- a/spdmlib/src/watchdog/watchdog_callbacks.rs +++ b/spdmlib/src/watchdog/watchdog_callbacks.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[derive(Clone)] pub struct SpdmWatchDog { diff --git a/spdmlib_crypto_mbedtls/src/aead_impl.rs b/spdmlib_crypto_mbedtls/src/aead_impl.rs index 38118702..8ed30d06 100644 --- a/spdmlib_crypto_mbedtls/src/aead_impl.rs +++ b/spdmlib_crypto_mbedtls/src/aead_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[cfg(not(feature = "std"))] use alloc::vec::Vec; diff --git a/spdmlib_crypto_mbedtls/src/asym_verify_impl.rs b/spdmlib_crypto_mbedtls/src/asym_verify_impl.rs index b8b3329d..2f1c2b73 100644 --- a/spdmlib_crypto_mbedtls/src/asym_verify_impl.rs +++ b/spdmlib_crypto_mbedtls/src/asym_verify_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use mbedtls::{hash, x509::Certificate}; use spdmlib::crypto::SpdmAsymVerify; diff --git a/spdmlib_crypto_mbedtls/src/cert_operation_impl.rs b/spdmlib_crypto_mbedtls/src/cert_operation_impl.rs index 0f6576eb..03f24272 100644 --- a/spdmlib_crypto_mbedtls/src/cert_operation_impl.rs +++ b/spdmlib_crypto_mbedtls/src/cert_operation_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use mbedtls::x509::Certificate; use spdmlib::crypto::SpdmCertOperation; diff --git a/spdmlib_crypto_mbedtls/src/dhe_impl.rs b/spdmlib_crypto_mbedtls/src/dhe_impl.rs index 8545cafe..a5c7963e 100644 --- a/spdmlib_crypto_mbedtls/src/dhe_impl.rs +++ b/spdmlib_crypto_mbedtls/src/dhe_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[cfg(not(feature = "std"))] use alloc::{boxed::Box, vec::Vec}; diff --git a/spdmlib_crypto_mbedtls/src/hash_impl.rs b/spdmlib_crypto_mbedtls/src/hash_impl.rs index 606bef8b..5ae1184e 100644 --- a/spdmlib_crypto_mbedtls/src/hash_impl.rs +++ b/spdmlib_crypto_mbedtls/src/hash_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use mbedtls::hash; use spdmlib::crypto::SpdmHash; diff --git a/spdmlib_crypto_mbedtls/src/hkdf_impl.rs b/spdmlib_crypto_mbedtls/src/hkdf_impl.rs index ac75e56f..715a5b7d 100644 --- a/spdmlib_crypto_mbedtls/src/hkdf_impl.rs +++ b/spdmlib_crypto_mbedtls/src/hkdf_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use mbedtls::hash; use spdmlib::crypto::SpdmHkdf; diff --git a/spdmlib_crypto_mbedtls/src/hmac_impl.rs b/spdmlib_crypto_mbedtls/src/hmac_impl.rs index 9640c918..7cc42a68 100644 --- a/spdmlib_crypto_mbedtls/src/hmac_impl.rs +++ b/spdmlib_crypto_mbedtls/src/hmac_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use mbedtls::hash; use spdmlib::crypto::SpdmHmac; diff --git a/spdmlib_crypto_mbedtls/src/lib.rs b/spdmlib_crypto_mbedtls/src/lib.rs index ab937ea1..e3af12fc 100644 --- a/spdmlib_crypto_mbedtls/src/lib.rs +++ b/spdmlib_crypto_mbedtls/src/lib.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![cfg_attr(not(feature = "std"), no_std)] diff --git a/spdmlib_crypto_mbedtls/src/rand_impl.rs b/spdmlib_crypto_mbedtls/src/rand_impl.rs index 4eb3ea20..bcc313aa 100644 --- a/spdmlib_crypto_mbedtls/src/rand_impl.rs +++ b/spdmlib_crypto_mbedtls/src/rand_impl.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use core::arch::x86_64::_rdrand64_step; use spdmlib::crypto::SpdmCryptoRandom; diff --git a/sys_time/src/lib.rs b/sys_time/src/lib.rs index 8f86e396..9bf9d8cf 100644 --- a/sys_time/src/lib.rs +++ b/sys_time/src/lib.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![no_std] // use chrono::NaiveDate; diff --git a/sys_time/src/rtc.rs b/sys_time/src/rtc.rs index 3f309643..249303b3 100644 --- a/sys_time/src/rtc.rs +++ b/sys_time/src/rtc.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT //! Untrusted time get from CMOS/RTC device commonly seen on x86 I/O port 0x70/0x71 diff --git a/tdisp/src/common.rs b/tdisp/src/common.rs index b10da332..9d810565 100644 --- a/tdisp/src/common.rs +++ b/tdisp/src/common.rs @@ -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::message::{VendorIDStruct, MAX_SPDM_VENDOR_DEFINED_VENDOR_ID_LEN}; diff --git a/tdisp/src/config.rs b/tdisp/src/config.rs index 357d4691..4962d89f 100644 --- a/tdisp/src/config.rs +++ b/tdisp/src/config.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub const MAX_VERSION_COUNT: usize = 2; pub const MAX_MESSAGE_INTERNAL_BUFFER_SIZE: usize = 0xA000; diff --git a/tdisp/src/context.rs b/tdisp/src/context.rs index d782423d..3a485758 100644 --- a/tdisp/src/context.rs +++ b/tdisp/src/context.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub use crate::message::*; use crate::{ diff --git a/tdisp/src/device.rs b/tdisp/src/device.rs index 57c3396d..0d2e52dc 100644 --- a/tdisp/src/device.rs +++ b/tdisp/src/device.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::TdispResult; use core::fmt::Debug; diff --git a/tdisp/src/lib.rs b/tdisp/src/lib.rs index 22bf6c42..a46361a9 100644 --- a/tdisp/src/lib.rs +++ b/tdisp/src/lib.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[macro_use] extern crate bitflags; diff --git a/tdisp/src/message.rs b/tdisp/src/message.rs index 5a23a8a6..cf38afa0 100644 --- a/tdisp/src/message.rs +++ b/tdisp/src/message.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use core::fmt::Debug; diff --git a/tdisp/src/state_machine.rs b/tdisp/src/state_machine.rs index 3be3d650..32118156 100644 --- a/tdisp/src/state_machine.rs +++ b/tdisp/src/state_machine.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use ::codec::*; diff --git a/tdisp/src/tdisp_codec.rs b/tdisp/src/tdisp_codec.rs index bd0fc28a..71319ad6 100644 --- a/tdisp/src/tdisp_codec.rs +++ b/tdisp/src/tdisp_codec.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub use crate::context; pub use ::codec::*; diff --git a/tdisp/src/tdisp_requester/bind_p2p_stream_request_req.rs b/tdisp/src/tdisp_requester/bind_p2p_stream_request_req.rs index d26495e5..46396f91 100644 --- a/tdisp/src/tdisp_requester/bind_p2p_stream_request_req.rs +++ b/tdisp/src/tdisp_requester/bind_p2p_stream_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/get_device_interface_report_req.rs b/tdisp/src/tdisp_requester/get_device_interface_report_req.rs index 05aeefad..b2af6ad0 100644 --- a/tdisp/src/tdisp_requester/get_device_interface_report_req.rs +++ b/tdisp/src/tdisp_requester/get_device_interface_report_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/get_device_interface_state_req.rs b/tdisp/src/tdisp_requester/get_device_interface_state_req.rs index 951debfd..89620fb1 100644 --- a/tdisp/src/tdisp_requester/get_device_interface_state_req.rs +++ b/tdisp/src/tdisp_requester/get_device_interface_state_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/get_tdisp_capabilities_req.rs b/tdisp/src/tdisp_requester/get_tdisp_capabilities_req.rs index aeafa90b..2f88dc89 100644 --- a/tdisp/src/tdisp_requester/get_tdisp_capabilities_req.rs +++ b/tdisp/src/tdisp_requester/get_tdisp_capabilities_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/get_tdisp_version_req.rs b/tdisp/src/tdisp_requester/get_tdisp_version_req.rs index 219eb5d4..c05b714d 100644 --- a/tdisp/src/tdisp_requester/get_tdisp_version_req.rs +++ b/tdisp/src/tdisp_requester/get_tdisp_version_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/lock_interface_request_req.rs b/tdisp/src/tdisp_requester/lock_interface_request_req.rs index 8a7661ca..1c0f26b1 100644 --- a/tdisp/src/tdisp_requester/lock_interface_request_req.rs +++ b/tdisp/src/tdisp_requester/lock_interface_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/mod.rs b/tdisp/src/tdisp_requester/mod.rs index ad52248c..8b8d9c02 100644 --- a/tdisp/src/tdisp_requester/mod.rs +++ b/tdisp/src/tdisp_requester/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::{ context::{InterfaceId, TdispContext}, diff --git a/tdisp/src/tdisp_requester/set_mmio_attribute_request_req.rs b/tdisp/src/tdisp_requester/set_mmio_attribute_request_req.rs index ef0186c0..8f0e27cc 100644 --- a/tdisp/src/tdisp_requester/set_mmio_attribute_request_req.rs +++ b/tdisp/src/tdisp_requester/set_mmio_attribute_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/start_interface_request_req.rs b/tdisp/src/tdisp_requester/start_interface_request_req.rs index 7542384a..bbad7361 100644 --- a/tdisp/src/tdisp_requester/start_interface_request_req.rs +++ b/tdisp/src/tdisp_requester/start_interface_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/stop_interface_request_req.rs b/tdisp/src/tdisp_requester/stop_interface_request_req.rs index 48d14cee..d1c3aad9 100644 --- a/tdisp/src/tdisp_requester/stop_interface_request_req.rs +++ b/tdisp/src/tdisp_requester/stop_interface_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/unbind_p2p_stream_request_req.rs b/tdisp/src/tdisp_requester/unbind_p2p_stream_request_req.rs index 2b8cb0db..235cd037 100644 --- a/tdisp/src/tdisp_requester/unbind_p2p_stream_request_req.rs +++ b/tdisp/src/tdisp_requester/unbind_p2p_stream_request_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_requester/vdm_request.rs b/tdisp/src/tdisp_requester/vdm_request.rs index 3411b3ce..46c6c53c 100644 --- a/tdisp/src/tdisp_requester/vdm_request.rs +++ b/tdisp/src/tdisp_requester/vdm_request.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use codec::Writer; use core::convert::TryInto; diff --git a/tdisp/src/tdisp_responder/bind_p2p_stream_request_rsp.rs b/tdisp/src/tdisp_responder/bind_p2p_stream_request_rsp.rs index 1e8e8b73..9653c073 100644 --- a/tdisp/src/tdisp_responder/bind_p2p_stream_request_rsp.rs +++ b/tdisp/src/tdisp_responder/bind_p2p_stream_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/device_interface_report_rsp.rs b/tdisp/src/tdisp_responder/device_interface_report_rsp.rs index 53c89151..acd58f1f 100644 --- a/tdisp/src/tdisp_responder/device_interface_report_rsp.rs +++ b/tdisp/src/tdisp_responder/device_interface_report_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/device_interface_state_rsp.rs b/tdisp/src/tdisp_responder/device_interface_state_rsp.rs index d63773d6..a2443be9 100644 --- a/tdisp/src/tdisp_responder/device_interface_state_rsp.rs +++ b/tdisp/src/tdisp_responder/device_interface_state_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/lock_interface_request_rsp.rs b/tdisp/src/tdisp_responder/lock_interface_request_rsp.rs index ed43526f..849993bb 100644 --- a/tdisp/src/tdisp_responder/lock_interface_request_rsp.rs +++ b/tdisp/src/tdisp_responder/lock_interface_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/mod.rs b/tdisp/src/tdisp_responder/mod.rs index 99f26779..b37fafd2 100644 --- a/tdisp/src/tdisp_responder/mod.rs +++ b/tdisp/src/tdisp_responder/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT pub use crate::tdisp_codec::*; pub use ::codec::*; diff --git a/tdisp/src/tdisp_responder/set_mmio_attribute_request_rsp.rs b/tdisp/src/tdisp_responder/set_mmio_attribute_request_rsp.rs index 0a902f29..30b7cf68 100644 --- a/tdisp/src/tdisp_responder/set_mmio_attribute_request_rsp.rs +++ b/tdisp/src/tdisp_responder/set_mmio_attribute_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/start_interface_request_rsp.rs b/tdisp/src/tdisp_responder/start_interface_request_rsp.rs index 0e9a4643..32d69e30 100644 --- a/tdisp/src/tdisp_responder/start_interface_request_rsp.rs +++ b/tdisp/src/tdisp_responder/start_interface_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/stop_interface_request_rsp.rs b/tdisp/src/tdisp_responder/stop_interface_request_rsp.rs index 9d573d8d..0485b5fc 100644 --- a/tdisp/src/tdisp_responder/stop_interface_request_rsp.rs +++ b/tdisp/src/tdisp_responder/stop_interface_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/tdisp_capabilities_rsp.rs b/tdisp/src/tdisp_responder/tdisp_capabilities_rsp.rs index 5908bcc1..5750ac36 100644 --- a/tdisp/src/tdisp_responder/tdisp_capabilities_rsp.rs +++ b/tdisp/src/tdisp_responder/tdisp_capabilities_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/tdisp_error_rsp.rs b/tdisp/src/tdisp_responder/tdisp_error_rsp.rs index d07f86e3..60ef96e7 100644 --- a/tdisp/src/tdisp_responder/tdisp_error_rsp.rs +++ b/tdisp/src/tdisp_responder/tdisp_error_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/tdisp_version_rsp.rs b/tdisp/src/tdisp_responder/tdisp_version_rsp.rs index a2086231..12933f21 100644 --- a/tdisp/src/tdisp_responder/tdisp_version_rsp.rs +++ b/tdisp/src/tdisp_responder/tdisp_version_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/unbind_p2p_stream_request_rsp.rs b/tdisp/src/tdisp_responder/unbind_p2p_stream_request_rsp.rs index 0315a970..2dbf5b66 100644 --- a/tdisp/src/tdisp_responder/unbind_p2p_stream_request_rsp.rs +++ b/tdisp/src/tdisp_responder/unbind_p2p_stream_request_rsp.rs @@ -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::error::*; diff --git a/tdisp/src/tdisp_responder/vdm_response.rs b/tdisp/src/tdisp_responder/vdm_response.rs index 1f2ec647..ab714bfd 100644 --- a/tdisp/src/tdisp_responder/vdm_response.rs +++ b/tdisp/src/tdisp_responder/vdm_response.rs @@ -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::error::*; diff --git a/test/spdm-emu/src/crypto.rs b/test/spdm-emu/src/crypto.rs index 0aef9a88..165f5493 100644 --- a/test/spdm-emu/src/crypto.rs +++ b/test/spdm-emu/src/crypto.rs @@ -1,6 +1,6 @@ // Copyright (c) 2022 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #[cfg(feature = "spdm-mbedtls")] pub fn crypto_mbedtls_register_handles() { diff --git a/test/spdm-emu/src/crypto_callback.rs b/test/spdm-emu/src/crypto_callback.rs index 4fb882ba..8f92e579 100644 --- a/test/spdm-emu/src/crypto_callback.rs +++ b/test/spdm-emu/src/crypto_callback.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use std::path::PathBuf; diff --git a/test/spdm-emu/src/lib.rs b/test/spdm-emu/src/lib.rs index 0475453d..39fc4c7a 100644 --- a/test/spdm-emu/src/lib.rs +++ b/test/spdm-emu/src/lib.rs @@ -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)] diff --git a/test/spdm-emu/src/secret_impl_sample.rs b/test/spdm-emu/src/secret_impl_sample.rs index e50d71a1..98367430 100644 --- a/test/spdm-emu/src/secret_impl_sample.rs +++ b/test/spdm-emu/src/secret_impl_sample.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![allow(dead_code)] #![allow(unused_variables)] diff --git a/test/spdm-emu/src/socket_io_transport.rs b/test/spdm-emu/src/socket_io_transport.rs index 5d9e192f..b9c0c5b2 100644 --- a/test/spdm-emu/src/socket_io_transport.rs +++ b/test/spdm-emu/src/socket_io_transport.rs @@ -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::spdm_emu::*; use std::net::TcpStream; diff --git a/test/spdm-emu/src/spdm_emu.rs b/test/spdm-emu/src/spdm_emu.rs index 7375bdb1..93fdc7f1 100644 --- a/test/spdm-emu/src/spdm_emu.rs +++ b/test/spdm-emu/src/spdm_emu.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use std::io::{Read, Write}; use std::net::TcpStream; diff --git a/test/spdm-emu/src/tcp_transport.rs b/test/spdm-emu/src/tcp_transport.rs index 8d9b8f2a..42e3ffb9 100644 --- a/test/spdm-emu/src/tcp_transport.rs +++ b/test/spdm-emu/src/tcp_transport.rs @@ -1,6 +1,6 @@ // Copyright (c) 2020 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT // use codec::{Reader, Codec, Writer}; use std::io::{Read, Write}; diff --git a/test/spdm-emu/src/watchdog_impl_sample.rs b/test/spdm-emu/src/watchdog_impl_sample.rs index 50aae582..089c712c 100644 --- a/test/spdm-emu/src/watchdog_impl_sample.rs +++ b/test/spdm-emu/src/watchdog_impl_sample.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use spdmlib::watchdog::SpdmWatchDog; diff --git a/test/spdm-requester-emu/src/main.rs b/test/spdm-requester-emu/src/main.rs index 6cafd62e..040f9ec2 100644 --- a/test/spdm-requester-emu/src/main.rs +++ b/test/spdm-requester-emu/src/main.rs @@ -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)] diff --git a/test/spdm-responder-emu/src/main.rs b/test/spdm-responder-emu/src/main.rs index 1bcb0826..8b8e7d2c 100644 --- a/test/spdm-responder-emu/src/main.rs +++ b/test/spdm-responder-emu/src/main.rs @@ -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)] diff --git a/test/spdm-responder-emu/src/spdm_device_example.rs b/test/spdm-responder-emu/src/spdm_device_example.rs index 461e4239..1077eda3 100644 --- a/test/spdm-responder-emu/src/spdm_device_example.rs +++ b/test/spdm-responder-emu/src/spdm_device_example.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use idekm::{ pci_ide_km_responder::{ diff --git a/test/spdmlib-test/src/common/crypto_callback.rs b/test/spdmlib-test/src/common/crypto_callback.rs index 12fde803..02c627f4 100644 --- a/test/spdmlib-test/src/common/crypto_callback.rs +++ b/test/spdmlib-test/src/common/crypto_callback.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use spdmlib::crypto::SpdmCertOperation; use spdmlib::crypto::SpdmCryptoRandom; diff --git a/test/spdmlib-test/src/common/device_io.rs b/test/spdmlib-test/src/common/device_io.rs index 5e049c68..a2583090 100644 --- a/test/spdmlib-test/src/common/device_io.rs +++ b/test/spdmlib-test/src/common/device_io.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![allow(unused)] diff --git a/test/spdmlib-test/src/common/mod.rs b/test/spdmlib-test/src/common/mod.rs index 659f74c4..40c32af0 100644 --- a/test/spdmlib-test/src/common/mod.rs +++ b/test/spdmlib-test/src/common/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![forbid(unsafe_code)] diff --git a/test/spdmlib-test/src/common/secret_callback.rs b/test/spdmlib-test/src/common/secret_callback.rs index df900744..bed6ad13 100644 --- a/test/spdmlib-test/src/common/secret_callback.rs +++ b/test/spdmlib-test/src/common/secret_callback.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![allow(dead_code)] #![allow(unused_variables)] diff --git a/test/spdmlib-test/src/common/util.rs b/test/spdmlib-test/src/common/util.rs index 227fbb14..3fa674da 100644 --- a/test/spdmlib-test/src/common/util.rs +++ b/test/spdmlib-test/src/common/util.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![allow(unused)] diff --git a/test/spdmlib-test/src/lib.rs b/test/spdmlib-test/src/lib.rs index 200a4c4e..d094d798 100644 --- a/test/spdmlib-test/src/lib.rs +++ b/test/spdmlib-test/src/lib.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![forbid(unsafe_code)] diff --git a/test/spdmlib-test/src/protocol/algorithm.rs b/test/spdmlib-test/src/protocol/algorithm.rs index ed5f1d51..131b6a9a 100644 --- a/test/spdmlib-test/src/protocol/algorithm.rs +++ b/test/spdmlib-test/src/protocol/algorithm.rs @@ -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::Codec; diff --git a/test/spdmlib-test/src/protocol/capability.rs b/test/spdmlib-test/src/protocol/capability.rs index a751a7f6..9755c98a 100644 --- a/test/spdmlib-test/src/protocol/capability.rs +++ b/test/spdmlib-test/src/protocol/capability.rs @@ -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::Codec; diff --git a/test/spdmlib-test/src/protocol/certificate.rs b/test/spdmlib-test/src/protocol/certificate.rs index 298afc13..d1ca084b 100644 --- a/test/spdmlib-test/src/protocol/certificate.rs +++ b/test/spdmlib-test/src/protocol/certificate.rs @@ -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::Codec; diff --git a/test/spdmlib-test/src/protocol/challenge.rs b/test/spdmlib-test/src/protocol/challenge.rs index 05b19342..30450364 100644 --- a/test/spdmlib-test/src/protocol/challenge.rs +++ b/test/spdmlib-test/src/protocol/challenge.rs @@ -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::Codec; diff --git a/test/spdmlib-test/src/protocol/digest.rs b/test/spdmlib-test/src/protocol/digest.rs index 6ccdb4eb..937bf463 100644 --- a/test/spdmlib-test/src/protocol/digest.rs +++ b/test/spdmlib-test/src/protocol/digest.rs @@ -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::Codec; #[derive(Debug, PartialEq, Eq)] diff --git a/test/spdmlib-test/src/protocol/measurement.rs b/test/spdmlib-test/src/protocol/measurement.rs index ba310ff1..761a34a5 100644 --- a/test/spdmlib-test/src/protocol/measurement.rs +++ b/test/spdmlib-test/src/protocol/measurement.rs @@ -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::{u24, Codec}; diff --git a/test/spdmlib-test/src/protocol/mod.rs b/test/spdmlib-test/src/protocol/mod.rs index e51929c8..91fb224d 100644 --- a/test/spdmlib-test/src/protocol/mod.rs +++ b/test/spdmlib-test/src/protocol/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT // The naming rules are ignored here to align with spdmspec #![allow(non_snake_case)] diff --git a/test/spdmlib-test/src/protocol/version.rs b/test/spdmlib-test/src/protocol/version.rs index b05565fc..c52369fc 100644 --- a/test/spdmlib-test/src/protocol/version.rs +++ b/test/spdmlib-test/src/protocol/version.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT // Follow SPDM spec field name. use codec::Codec; diff --git a/test/spdmlib-test/src/requester_tests/challenge_req.rs b/test/spdmlib-test/src/requester_tests/challenge_req.rs index ff1ee5a9..2a285937 100644 --- a/test/spdmlib-test/src/requester_tests/challenge_req.rs +++ b/test/spdmlib-test/src/requester_tests/challenge_req.rs @@ -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::common::crypto_callback::FAKE_RAND; use crate::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/requester_tests/context.rs b/test/spdmlib-test/src/requester_tests/context.rs index 77f8e95c..7da3091f 100644 --- a/test/spdmlib-test/src/requester_tests/context.rs +++ b/test/spdmlib-test/src/requester_tests/context.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/encap_certificate.rs b/test/spdmlib-test/src/requester_tests/encap_certificate.rs index 56674772..b83cb057 100644 --- a/test/spdmlib-test/src/requester_tests/encap_certificate.rs +++ b/test/spdmlib-test/src/requester_tests/encap_certificate.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/requester_tests/encap_digest.rs b/test/spdmlib-test/src/requester_tests/encap_digest.rs index 738fa057..a92b664e 100644 --- a/test/spdmlib-test/src/requester_tests/encap_digest.rs +++ b/test/spdmlib-test/src/requester_tests/encap_digest.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/requester_tests/encap_error.rs b/test/spdmlib-test/src/requester_tests/encap_error.rs index 622d5fd6..8ffc05fe 100644 --- a/test/spdmlib-test/src/requester_tests/encap_error.rs +++ b/test/spdmlib-test/src/requester_tests/encap_error.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::transport::PciDoeTransportEncap; diff --git a/test/spdmlib-test/src/requester_tests/encap_req.rs b/test/spdmlib-test/src/requester_tests/encap_req.rs index 62c6b022..5a9c98c8 100644 --- a/test/spdmlib-test/src/requester_tests/encap_req.rs +++ b/test/spdmlib-test/src/requester_tests/encap_req.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::crypto_callback::FAKE_HMAC; use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/requester_tests/end_session_req.rs b/test/spdmlib-test/src/requester_tests/end_session_req.rs index b1e0f0be..19855295 100644 --- a/test/spdmlib-test/src/requester_tests/end_session_req.rs +++ b/test/spdmlib-test/src/requester_tests/end_session_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/finish_req.rs b/test/spdmlib-test/src/requester_tests/finish_req.rs index 20106fd6..6e878fb8 100644 --- a/test/spdmlib-test/src/requester_tests/finish_req.rs +++ b/test/spdmlib-test/src/requester_tests/finish_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/get_capabilities_req.rs b/test/spdmlib-test/src/requester_tests/get_capabilities_req.rs index c3a1fb2c..501e7ef8 100644 --- a/test/spdmlib-test/src/requester_tests/get_capabilities_req.rs +++ b/test/spdmlib-test/src/requester_tests/get_capabilities_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/get_certificate_req.rs b/test/spdmlib-test/src/requester_tests/get_certificate_req.rs index 621f10b9..16dbfcc4 100644 --- a/test/spdmlib-test/src/requester_tests/get_certificate_req.rs +++ b/test/spdmlib-test/src/requester_tests/get_certificate_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/get_digests_req.rs b/test/spdmlib-test/src/requester_tests/get_digests_req.rs index 971478b5..3e8534d6 100644 --- a/test/spdmlib-test/src/requester_tests/get_digests_req.rs +++ b/test/spdmlib-test/src/requester_tests/get_digests_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/get_measurements_req.rs b/test/spdmlib-test/src/requester_tests/get_measurements_req.rs index 6e0e974c..9be24e91 100644 --- a/test/spdmlib-test/src/requester_tests/get_measurements_req.rs +++ b/test/spdmlib-test/src/requester_tests/get_measurements_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/get_version_req.rs b/test/spdmlib-test/src/requester_tests/get_version_req.rs index 5d752ebf..2c3b2bcd 100644 --- a/test/spdmlib-test/src/requester_tests/get_version_req.rs +++ b/test/spdmlib-test/src/requester_tests/get_version_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/heartbeat_req.rs b/test/spdmlib-test/src/requester_tests/heartbeat_req.rs index a6bdc1c4..c4a92f44 100644 --- a/test/spdmlib-test/src/requester_tests/heartbeat_req.rs +++ b/test/spdmlib-test/src/requester_tests/heartbeat_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/key_exchange_req.rs b/test/spdmlib-test/src/requester_tests/key_exchange_req.rs index 444c01c6..d8ffe85e 100644 --- a/test/spdmlib-test/src/requester_tests/key_exchange_req.rs +++ b/test/spdmlib-test/src/requester_tests/key_exchange_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/key_update_req.rs b/test/spdmlib-test/src/requester_tests/key_update_req.rs index 24dc3267..01a7b1ac 100644 --- a/test/spdmlib-test/src/requester_tests/key_update_req.rs +++ b/test/spdmlib-test/src/requester_tests/key_update_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/mod.rs b/test/spdmlib-test/src/requester_tests/mod.rs index a7feea84..7d7baa85 100644 --- a/test/spdmlib-test/src/requester_tests/mod.rs +++ b/test/spdmlib-test/src/requester_tests/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![forbid(unsafe_code)] diff --git a/test/spdmlib-test/src/requester_tests/negotiate_algorithms_req.rs b/test/spdmlib-test/src/requester_tests/negotiate_algorithms_req.rs index eebdaa96..a069a945 100644 --- a/test/spdmlib-test/src/requester_tests/negotiate_algorithms_req.rs +++ b/test/spdmlib-test/src/requester_tests/negotiate_algorithms_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/psk_exchange_req.rs b/test/spdmlib-test/src/requester_tests/psk_exchange_req.rs index 7e55f986..61d86d9e 100644 --- a/test/spdmlib-test/src/requester_tests/psk_exchange_req.rs +++ b/test/spdmlib-test/src/requester_tests/psk_exchange_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/requester_tests/psk_finish_req.rs b/test/spdmlib-test/src/requester_tests/psk_finish_req.rs index 9dd8f5ce..a0c2df3a 100644 --- a/test/spdmlib-test/src/requester_tests/psk_finish_req.rs +++ b/test/spdmlib-test/src/requester_tests/psk_finish_req.rs @@ -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::common::crypto_callback::*; use crate::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/requester_tests/vendor_req.rs b/test/spdmlib-test/src/requester_tests/vendor_req.rs index bb084633..2cbf3824 100644 --- a/test/spdmlib-test/src/requester_tests/vendor_req.rs +++ b/test/spdmlib-test/src/requester_tests/vendor_req.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/algorithm_rsp.rs b/test/spdmlib-test/src/responder_tests/algorithm_rsp.rs index 7d04acd3..f808cffc 100644 --- a/test/spdmlib-test/src/responder_tests/algorithm_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/algorithm_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/capability_rsp.rs b/test/spdmlib-test/src/responder_tests/capability_rsp.rs index 3167a0a3..87f5b5d9 100644 --- a/test/spdmlib-test/src/responder_tests/capability_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/capability_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/certificate_rsp.rs b/test/spdmlib-test/src/responder_tests/certificate_rsp.rs index 9dbe0288..12384a2e 100644 --- a/test/spdmlib-test/src/responder_tests/certificate_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/certificate_rsp.rs @@ -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::common::device_io::{self, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/challenge_rsp.rs b/test/spdmlib-test/src/responder_tests/challenge_rsp.rs index c3ad0c33..46fbb105 100644 --- a/test/spdmlib-test/src/responder_tests/challenge_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/challenge_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2021 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![allow(unused)] diff --git a/test/spdmlib-test/src/responder_tests/context.rs b/test/spdmlib-test/src/responder_tests/context.rs index ef75dcd5..29233e90 100644 --- a/test/spdmlib-test/src/responder_tests/context.rs +++ b/test/spdmlib-test/src/responder_tests/context.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/digest_rsp.rs b/test/spdmlib-test/src/responder_tests/digest_rsp.rs index 74972810..900ec461 100644 --- a/test/spdmlib-test/src/responder_tests/digest_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/digest_rsp.rs @@ -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::common::device_io::{self, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/encap_get_certificate.rs b/test/spdmlib-test/src/responder_tests/encap_get_certificate.rs index f6a053fd..37f0c15b 100644 --- a/test/spdmlib-test/src/responder_tests/encap_get_certificate.rs +++ b/test/spdmlib-test/src/responder_tests/encap_get_certificate.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/encap_get_digest.rs b/test/spdmlib-test/src/responder_tests/encap_get_digest.rs index bb4f5307..7e4653fa 100644 --- a/test/spdmlib-test/src/responder_tests/encap_get_digest.rs +++ b/test/spdmlib-test/src/responder_tests/encap_get_digest.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/responder_tests/encap_rsp.rs b/test/spdmlib-test/src/responder_tests/encap_rsp.rs index a6d09b81..012d59f8 100644 --- a/test/spdmlib-test/src/responder_tests/encap_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/encap_rsp.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::crypto_callback::FAKE_HMAC; use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/responder_tests/end_session_rsp.rs b/test/spdmlib-test/src/responder_tests/end_session_rsp.rs index fdfd90b5..759b8508 100644 --- a/test/spdmlib-test/src/responder_tests/end_session_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/end_session_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/error_rsp.rs b/test/spdmlib-test/src/responder_tests/error_rsp.rs index 6e50facb..6cbc0e1c 100644 --- a/test/spdmlib-test/src/responder_tests/error_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/error_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/finish_rsp.rs b/test/spdmlib-test/src/responder_tests/finish_rsp.rs index 43b1fc3f..a64f79e9 100644 --- a/test/spdmlib-test/src/responder_tests/finish_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/finish_rsp.rs @@ -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::common::crypto_callback::FAKE_HMAC; use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/responder_tests/heartbeat_rsp.rs b/test/spdmlib-test/src/responder_tests/heartbeat_rsp.rs index 61115b58..86160bbf 100644 --- a/test/spdmlib-test/src/responder_tests/heartbeat_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/heartbeat_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/key_exchange_rsp.rs b/test/spdmlib-test/src/responder_tests/key_exchange_rsp.rs index 09427bd1..02853261 100644 --- a/test/spdmlib-test/src/responder_tests/key_exchange_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/key_exchange_rsp.rs @@ -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::common::crypto_callback::FAKE_HMAC; use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/responder_tests/key_update_rsp.rs b/test/spdmlib-test/src/responder_tests/key_update_rsp.rs index 3a82f512..ca6937dd 100644 --- a/test/spdmlib-test/src/responder_tests/key_update_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/key_update_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/measurement_rsp.rs b/test/spdmlib-test/src/responder_tests/measurement_rsp.rs index 3a64f04d..6c3a0e91 100644 --- a/test/spdmlib-test/src/responder_tests/measurement_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/measurement_rsp.rs @@ -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::common::device_io::{self, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/mod.rs b/test/spdmlib-test/src/responder_tests/mod.rs index 8e4b5df9..130c82cb 100644 --- a/test/spdmlib-test/src/responder_tests/mod.rs +++ b/test/spdmlib-test/src/responder_tests/mod.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT #![forbid(unsafe_code)] diff --git a/test/spdmlib-test/src/responder_tests/psk_exchange_rsp.rs b/test/spdmlib-test/src/responder_tests/psk_exchange_rsp.rs index 08383ace..d599ab12 100644 --- a/test/spdmlib-test/src/responder_tests/psk_exchange_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/psk_exchange_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/psk_finish_rsp.rs b/test/spdmlib-test/src/responder_tests/psk_finish_rsp.rs index 0b67aab8..ea35e5c5 100644 --- a/test/spdmlib-test/src/responder_tests/psk_finish_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/psk_finish_rsp.rs @@ -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::common::crypto_callback::FAKE_HMAC; use crate::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; diff --git a/test/spdmlib-test/src/responder_tests/vendor_rsp.rs b/test/spdmlib-test/src/responder_tests/vendor_rsp.rs index 0b6d6428..96e063d0 100644 --- a/test/spdmlib-test/src/responder_tests/vendor_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/vendor_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::*; diff --git a/test/spdmlib-test/src/responder_tests/version_rsp.rs b/test/spdmlib-test/src/responder_tests/version_rsp.rs index 96c741ad..7dd75707 100644 --- a/test/spdmlib-test/src/responder_tests/version_rsp.rs +++ b/test/spdmlib-test/src/responder_tests/version_rsp.rs @@ -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::common::device_io::{FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/test_client_server.rs b/test/spdmlib-test/src/test_client_server.rs index 06fd54ea..2e57c9c0 100644 --- a/test/spdmlib-test/src/test_client_server.rs +++ b/test/spdmlib-test/src/test_client_server.rs @@ -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::common::device_io::{FakeSpdmDeviceIo, FakeSpdmDeviceIoReceve, SharedBuffer}; use crate::common::secret_callback::SECRET_ASYM_IMPL_INSTANCE; diff --git a/test/spdmlib-test/src/test_library.rs b/test/spdmlib-test/src/test_library.rs index 6a3c8c4f..d38fc7d7 100644 --- a/test/spdmlib-test/src/test_library.rs +++ b/test/spdmlib-test/src/test_library.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use crate::common::device_io::MySpdmDeviceIo; use crate::common::transport::PciDoeTransportEncap; diff --git a/test/spdmlib-test/src/watchdog_impl_sample.rs b/test/spdmlib-test/src/watchdog_impl_sample.rs index 50aae582..089c712c 100644 --- a/test/spdmlib-test/src/watchdog_impl_sample.rs +++ b/test/spdmlib-test/src/watchdog_impl_sample.rs @@ -1,6 +1,6 @@ // Copyright (c) 2023 Intel Corporation // -// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 or MIT use spdmlib::watchdog::SpdmWatchDog;