Skip to content

Commit

Permalink
chore: relicense as Apache 2
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <[email protected]>
  • Loading branch information
rjzak committed Oct 21, 2023
1 parent b96efaa commit 49e4293
Show file tree
Hide file tree
Showing 27 changed files with 230 additions and 692 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sgx = { git = "https://github.com/enarx/sgx", rev = "c9bf274dd1a843b084bae92e182
name = "steward"
version = "0.2.0"
edition = "2021"
license = "AGPL-3.0"
license = "Apache-2.0"

[workspace.dependencies]
# Internal dependencies
Expand Down
862 changes: 201 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ connections.
- [Attestation Flow](https://hackmd.io/@enarx/SySK2_tHo)
- [Full Provisioning Flow](https://hackmd.io/@enarx/rJ55urrvo)

## Licensing and Copyright
## Licensing

Contributions to this project require copyright assignment to Profian.

License: AGPL-3.0
Steward is released under the Apache-2.0 license.
2 changes: 1 addition & 1 deletion crates/attestation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "attestation"
version = "0.2.0"
edition = "2021"
license = "AGPL-3.0"
license = "Apache-2.0"
description = "Common workload attestation validation library"

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/cert.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/certreq.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use anyhow::{anyhow, Result};
use der::{asn1::BitStringRef, Encode};
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/crl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use crate::crypto::{SubjectPublicKeyInfoExt, TbsCertificateExt};
use std::collections::HashSet;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

mod cert;
mod certreq;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/pki.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use anyhow::{anyhow, bail, Result};
use sec1::pkcs8::{EncodePrivateKey, ObjectIdentifier, PrivateKeyInfo, SubjectPublicKeyInfo};
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/crypto/spki.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use anyhow::{anyhow, Result};
use const_oid::ObjectIdentifier;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

pub mod crypto;
#[cfg(feature = "sgx")]
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::super::Measurements;
use std::collections::HashSet;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

pub mod config;
pub mod quote;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/body.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::{FromBytes, ParseBytes};

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/es256.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::{qe::QuotingEnclave, FromBytes, ParseBytes};

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

//! Intel SGX Documentation is available at the following link.
//! Section references in further documentation refer to this document.
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/qe/auth.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::super::{FromBytes, ParseBytes, Steal};

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/qe/cert.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::super::{FromBytes, ParseBytes, Steal};

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/qe/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

pub mod auth;
pub mod cert;
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/tcb.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use chrono::DateTime;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/sgx/quote/traits.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use std::array::TryFromSliceError;

Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/snp/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use super::super::{Digest, Measurements};
use super::{PlatformInfoFlags, PolicyFlags};
Expand Down
2 changes: 1 addition & 1 deletion crates/attestation/src/snp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

pub mod config;

Expand Down
2 changes: 1 addition & 1 deletion crates/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "steward-server"
version = "0.2.0"
edition = "2021"
license = "AGPL-3.0"
license = "Apache-2.0"
description = "Server library for Steward"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/kvm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

use anyhow::{anyhow, Result};
use const_oid::ObjectIdentifier;
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

#![warn(rust_2018_idioms, unused_lifetimes, unused_qualifications, clippy::all)]

Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2022 Profian Inc. <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: Apache-2.0

//!
//! # Overview
Expand Down Expand Up @@ -46,9 +46,9 @@
//! - [Attestation Flow](https://hackmd.io/@enarx/SySK2_tHo)
//! - [Full Provisioning Flow](https://hackmd.io/@enarx/rJ55urrvo)
//!
//! # Licensing and Copyright
//! ## Licensing
//!
//! Contributions to this project require copyright assignment to Profian.
//! Steward is released under the Apache-2.0 license.
#![warn(rust_2018_idioms, unused_lifetimes, unused_qualifications, clippy::all)]

Expand Down

0 comments on commit 49e4293

Please sign in to comment.