underhill_confidentiality/
lib.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! A source of information for Underhill confidentiality configuration.
5
6#![forbid(unsafe_code)]
7#![no_std]
8
9#[cfg(feature = "std")]
10extern crate std;
11#[cfg(feature = "std")]
12mod getters;
13#[cfg(feature = "std")]
14pub use getters::*;
15
16/// The name of the environment variable that indicates whether the current VM is a confidential VM.
17pub const OPENHCL_CONFIDENTIAL_ENV_VAR_NAME: &str = "OPENHCL_CONFIDENTIAL";
18
19/// The legacy name of the environment variable that indicates whether the
20/// current VM is a confidential VM.
21pub const LEGACY_CONFIDENTIAL_ENV_VAR_NAME: &str = "UNDERHILL_CONFIDENTIAL";
22
23/// The name of the environment variable that indicates whether confidential debugging is enabled.
24pub const OPENHCL_CONFIDENTIAL_DEBUG_ENV_VAR_NAME: &str = "OPENHCL_CONFIDENTIAL_DEBUG";
25
26/// The legacy name of the environment variable that indicates whether
27/// confidential debugging is enabled.
28pub const LEGACY_CONFIDENTIAL_DEBUG_ENV_VAR_NAME: &str = "UNDERHILL_CONFIDENTIAL_DEBUG";