Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migtd: add error status for invalid policy #121

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

gaojiaqi7
Copy link
Contributor

@gaojiaqi7 gaojiaqi7 commented Dec 27, 2023

Closes: #114

@@ -137,7 +139,8 @@ pub enum MigrationResult {
NetworkError = 5,
SecureSessionError = 6,
MutualAttestationError = 7,
MigPolicyError = 8,
PolicyUnqulifiedError = 8,
Copy link
Contributor

@jyao1 jyao1 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: should be PolicyUnqualifiedError

Suggest to use: PolicyUnsatisfiedError

@@ -72,7 +73,8 @@ pub const SERVER_AUTH: ObjectIdentifier = ObjectIdentifier::new("1.3.6.1.5.5.7.3
pub const CLIENT_AUTH: ObjectIdentifier = ObjectIdentifier::new("1.3.6.1.5.5.7.3.2");
pub const ID_EC_SIG_OID: ObjectIdentifier = ObjectIdentifier::new("1.2.840.10045.4.3.3");

pub const MIG_POLICY_ERROR: &str = "MigPolicyError";
pub const MIG_POLICY_UNQULIFIED_ERROR: &str = "PolicyUnqualifiedError";
Copy link
Contributor

@jyao1 jyao1 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: should be MIG_POLICY_UNQUALIFIED_ERROR

Suggest to use MIG_POLICY_UNSATISFIED_ERROR

@gaojiaqi7 gaojiaqi7 force-pushed the 1226/add_invalid_policy_status branch from 91b5a10 to 7eabcb9 Compare January 3, 2024 11:22
@gaojiaqi7
Copy link
Contributor Author

Changed to unsatisfied.

@jyao1 jyao1 merged commit 36d2fa2 into intel:main Jan 3, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need to return different error code for invalid policy data and policy mismatch
2 participants